Skip to content

Commit 8b20e57

Browse files
committed
Update to Elasticsearch 0.90.3
Closes #31.
1 parent 2c38604 commit 8b20e57

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
88
-----------------------------------------------
99
| AWS Cloud Plugin | ElasticSearch |
1010
-----------------------------------------------
11-
| 1.13.0-SNAPSHOT (master) | 0.90 -> master |
11+
| 1.13.0-SNAPSHOT (master) | 0.90.3 -> master |
1212
-----------------------------------------------
13-
| 1.12.0 | 0.90 -> master |
13+
| 1.12.0 | 0.90 -> 0.90.2 |
1414
-----------------------------------------------
15-
| 1.11.0 | 0.90 -> master |
15+
| 1.11.0 | 0.90 -> 0.90.2 |
1616
-----------------------------------------------
1717
| 1.10.0 | 0.19 |
1818
-----------------------------------------------

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</parent>
3232

3333
<properties>
34-
<elasticsearch.version>0.90.1</elasticsearch.version>
34+
<elasticsearch.version>0.90.3</elasticsearch.version>
3535
</properties>
3636

3737
<repositories>

src/main/java/org/elasticsearch/cloud/aws/network/Ec2NameResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
package org.elasticsearch.cloud.aws.network;
2121

22+
import org.apache.lucene.util.IOUtils;
2223
import org.elasticsearch.ExceptionsHelper;
2324
import org.elasticsearch.cloud.aws.AwsEc2Service;
2425
import org.elasticsearch.common.component.AbstractComponent;
25-
import org.elasticsearch.common.io.Closeables;
2626
import org.elasticsearch.common.network.NetworkService.CustomNameResolver;
2727
import org.elasticsearch.common.settings.Settings;
2828

@@ -117,7 +117,7 @@ public InetAddress resolve(Ec2HostnameType type, boolean warnOnFailure) {
117117
}
118118
return null;
119119
} finally {
120-
Closeables.closeQuietly(in);
120+
IOUtils.closeWhileHandlingException(in);
121121
}
122122
}
123123

src/main/java/org/elasticsearch/cloud/aws/node/Ec2CustomNodeAttributes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
package org.elasticsearch.cloud.aws.node;
2121

22+
import org.apache.lucene.util.IOUtils;
2223
import org.elasticsearch.ExceptionsHelper;
2324
import org.elasticsearch.cloud.aws.AwsEc2Service;
2425
import org.elasticsearch.cluster.node.DiscoveryNodeService;
2526
import org.elasticsearch.common.collect.Maps;
2627
import org.elasticsearch.common.component.AbstractComponent;
27-
import org.elasticsearch.common.io.Closeables;
2828
import org.elasticsearch.common.settings.Settings;
2929

3030
import java.io.BufferedReader;
@@ -69,7 +69,7 @@ public Map<String, String> buildAttributes() {
6969
} catch (IOException e) {
7070
logger.debug("failed to get metadata for [placement/availability-zone]: " + ExceptionsHelper.detailedMessage(e));
7171
} finally {
72-
Closeables.closeQuietly(in);
72+
IOUtils.closeWhileHandlingException(in);
7373
}
7474

7575
return ec2Attributes;

src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import com.amazonaws.services.ec2.AmazonEC2;
2323
import com.amazonaws.services.ec2.model.*;
24+
import org.elasticsearch.Version;
2425
import org.elasticsearch.cluster.node.DiscoveryNode;
2526
import org.elasticsearch.common.Strings;
2627
import org.elasticsearch.common.collect.ImmutableMap;
@@ -179,7 +180,7 @@ public List<DiscoveryNode> buildDynamicNodes() {
179180
// we only limit to 1 addresses, makes no sense to ping 100 ports
180181
for (int i = 0; (i < addresses.length && i < UnicastZenPing.LIMIT_PORTS_COUNT); i++) {
181182
logger.trace("adding {}, address {}, transport_address {}", instance.getInstanceId(), address, addresses[i]);
182-
discoNodes.add(new DiscoveryNode("#cloud-" + instance.getInstanceId() + "-" + i, addresses[i]));
183+
discoNodes.add(new DiscoveryNode("#cloud-" + instance.getInstanceId() + "-" + i, addresses[i], Version.CURRENT));
183184
}
184185
} catch (Exception e) {
185186
logger.warn("failed ot add {}, address {}", e, instance.getInstanceId(), address);

src/main/java/org/elasticsearch/discovery/ec2/Ec2Discovery.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package org.elasticsearch.discovery.ec2;
2121

22+
import org.elasticsearch.Version;
2223
import org.elasticsearch.cloud.aws.AwsEc2Service;
2324
import org.elasticsearch.cluster.ClusterName;
2425
import org.elasticsearch.cluster.ClusterService;
@@ -43,7 +44,7 @@ public class Ec2Discovery extends ZenDiscovery {
4344
public Ec2Discovery(Settings settings, ClusterName clusterName, ThreadPool threadPool, TransportService transportService,
4445
ClusterService clusterService, NodeSettingsService nodeSettingsService, ZenPingService pingService,
4546
DiscoveryNodeService discoveryNodeService, AwsEc2Service ec2Service) {
46-
super(settings, clusterName, threadPool, transportService, clusterService, nodeSettingsService, discoveryNodeService, pingService);
47+
super(settings, clusterName, threadPool, transportService, clusterService, nodeSettingsService, discoveryNodeService, pingService, Version.CURRENT);
4748
if (settings.getAsBoolean("cloud.enabled", true)) {
4849
ImmutableList<? extends ZenPing> zenPings = pingService.zenPings();
4950
UnicastZenPing unicastZenPing = null;

0 commit comments

Comments
 (0)