Commit Graph

87 Commits

Author SHA1 Message Date
Robert Muir 7f65196ee8 remove unnecessary prop 2015-05-11 21:26:36 -04:00
Robert Muir 53bf03fbca enable security manager in tests 2015-05-11 19:48:54 -04:00
Robert Muir df60412c29 Tests: fix compilation 2015-05-05 14:22:53 -04:00
David Pilato bee93a51fe Remove `ElasticsearchIllegalArgumentException` and `ElasticsearchIllegalStateException` in favor of the JDK one
Related to https://github.com/elastic/elasticsearch/issues/10794

Closes #51.
2015-04-29 12:26:44 +02:00
David Pilato c70e32d119 Remove component settings from AbstractComponent
Related to elasticsearch/elasticsearch#9919

Closes #50.
2015-04-24 14:37:19 +02:00
David Pilato 947569a566 Remove oss snapshot repo as defined in parent
(cherry picked from commit 20e154e)
(cherry picked from commit 994c8ef)
2015-04-24 12:41:36 +02:00
David Pilato 7efb77b24f Update to GCE API v1-rev59-1.20.0
GCE API have been updated to `v1-rev59-1.20.0`.

We now can depend only on:

```xml
<dependency>
  <groupId>com.google.apis</groupId>
  <artifactId>google-api-services-compute</artifactId>
  <version>v1-rev59-1.20.0</version>
</dependency>
```

It comes with all needed dependencies.

Closes #49.
(cherry picked from commit f95dc16)
(cherry picked from commit 4ee6c95)
2015-04-24 12:41:23 +02:00
David Pilato ebe75a33e4 Fix non working update dynamic settings
Described in https://github.com/elastic/elasticsearch/issues/10614, it's not possible with cloud discovery plugin to update dynamic settings anymore.

```sh
curl -XPUT localhost:9200/_cluster/settings -d '{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 3
    },
    "transient" : {
        "discovery.zen.minimum_master_nodes" : 3
    }
}'
```

gives

```json
{"acknowledged":true,"persistent":{},"transient":{}}
```

Closes #47.

(cherry picked from commit 9df33a3)
(cherry picked from commit a40016e)
2015-04-22 15:35:25 +02:00
David Pilato 75a8d1272e update documentation with release 2.5.0 2015-03-25 15:48:59 +01:00
David Pilato 2c94de30e9 Move to elastic owner
(cherry picked from commit d745edb)
(cherry picked from commit 8231854)
2015-03-25 15:41:08 +01:00
David Pilato d6231e2c9f Move parent after artifact coordinates 2015-03-25 15:40:58 +01:00
David Pilato 49b7eefc8d Discovery NPE when a zone has 0 nodes in it
Closes #43.
(cherry picked from commit b028910)
(cherry picked from commit fa3e157)
2015-03-25 15:37:29 +01:00
David Pilato 3fd35d2694 create `es-1.5` branch 2015-03-16 16:34:27 -07:00
David Pilato 7839cdf3c2 Depend on elasticsearch-parent
To simplify plugins maintenance and provide more value in the future, we are starting to build an `elasticsearch-parent` project. This commit is the first step for this plugin to depend on this new `pom` maven project.
2015-01-02 21:30:46 +01:00
Adrien Grand ced093fec2 Upgrade to Lucene 5.0.0-snapshot-1642891 2014-12-02 18:22:17 +01:00
David Pilato b26f92dc0f update documentation with release 2.4.1 2014-11-24 18:38:56 +01:00
David Pilato e2343d694d UnicastHostsProvider should use version.minimumCompatibilityVersion()
The UnicastHostsProvider implementation creates DiscoveryNodes that are used as an initial seed for unicast based discovery. At the moment it uses Version.CURRENT for those DiscoveryNode object, which confuses the backwards compatibility layer to think this nodes are of the latest version. This causes new nodes to fail to join old nodes as the ping serialization goes wrong. Instead we should use version.minimumCompatibilityVersion().

Closes #41.

(cherry picked from commit 9ae29c7)
2014-11-24 18:29:11 +01:00
Michael McCandless 9529d735be Upgrade to Lucene 5.0.0-snapshot-1641343 2014-11-24 05:52:16 -05:00
tlrx 554d942acf [TESTS] Upgrade randomizedtesting-runner to 2.1.10
(cherry picked from commit 87b1b25)
2014-11-12 15:05:45 +01:00
tlrx de0458ed93 update documentation with release 2.4.0 2014-11-12 14:13:53 +01:00
Michael McCandless d79ae5d39a Upgrade to Lucene 5.0.0-snapshot-1637347 2014-11-10 16:46:31 -05:00
jdyer09 0ef9028134 Update README.md for zone clarity 2014-11-10 09:51:42 +01:00
Ryan Ernst 4e520c10ea Fix constructor for ZenDiscovery's subclass 2014-11-05 15:29:23 -08:00
Robert Muir 00eeb866cf upgrade to lucene 5 snapshot (the compile is still broken as it was before, so untested...) 2014-11-05 17:56:00 -05:00
David Pilato 09f8301848 Create branch es-1.4 for elasticsearch 1.4.0 2014-09-15 14:37:42 +02:00
David Pilato d951483c4c ZenDiscovery constructor needs ElectMasterService instance
Introduced in https://github.com/elasticsearch/elasticsearch/pull/7336 (elasticsearch 1.4 and 2.0), we need to change GceDiscovery constructor.

Closes #35.
2014-09-05 16:52:23 +02:00
David Pilato 7b4fa1f0a0 update documentation with release 2.3.0 2014-08-06 23:14:47 +02:00
Simon (Big Chief) Morley 7018d04b78 Update to elasticsearch 1.4.0
Closes #34.

(cherry picked from commit e149f70)
2014-08-06 23:08:58 +02:00
Simon (Big Chief) Morley 8e8e76fa75 Add multiple zones support
Closes #27.
2014-08-06 23:02:25 +02:00
David Pilato 51c10c18ba Tests: refactor tests
We need to simplify a bit our tests.
Also, we need to mark as `@Ignore` tests as they break now due to some cluster controls after each test in elasticsearch test infra.

See [org.elasticsearch.test.ElasticsearchIntegrationTest#ensureClusterSizeConsistency()](https://github.com/elasticsearch/elasticsearch/blob/v1.3.1/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java#L974-L979)

Closes #33.
2014-08-06 22:51:21 +02:00
Simon (Big Chief) Morley 3dcc5123b1 Update to Lucene 4.9.0
Closes #32.
2014-08-06 10:02:18 +02:00
Simon (Big Chief) Morley 8bd7e42bdf Force Token URL to `http://metadata.google.internal/...`
In certain environments (such as inside a docker container) 'metadata' does not resolve.
Forcing URL to `http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token` fix this.

See https://developers.google.com/compute/docs/metadata#metadataserver

Closes #28.
Closes #30.
2014-08-05 16:23:00 +02:00
Simon (Big Chief) Morley 0db6959f71 Included notes about compute engine permissions
Closes #25.
Closes #26.
2014-08-05 16:09:27 +02:00
David Pilato b45a05f2fb fix typo 2014-08-05 14:25:07 +02:00
David Pilato 524ebda257 Docs: make the welcome page more obvious
Closes #31.

(cherry picked from commit ab3cde3)
2014-08-05 14:23:41 +02:00
David Pilato e35e51556e Fix tests
When upgrading to elasticsearch 1.2.1 test framework, some tests are not working anymore because of
`ElasticsearchIntegrationTest#ensureClusterSizeConsistency()` method which check that the number of started nodes
is the number of available nodes in the cluster.

Disabling them temporary.

Also, a new clientNode could be added (depends on seed). It adds a node more than expected.

(cherry picked from commit bcc2cd5)
2014-06-15 23:32:04 +02:00
David Pilato 81742c3c1d Update to elasticsearch 1.3.0
Closes #24.

(cherry picked from commit 9c62411)
2014-06-15 23:31:42 +02:00
David Pilato 37474b43d6 Update instructions for GCE
Some tools have changed on GCE platform.
We need to update the documentation.

Closes #23.
2014-06-15 11:00:16 +02:00
David Pilato b1e27bbb32 NPE when no tags on instance
When no tags exists on other running instances and if we try to filter by tag, we get the following error:

```
[2014-05-19 16:17:37,377][DEBUG][discovery.gce            ] [Theresa Cassidy] start building nodes list using GCE API
[2014-05-19 16:17:37,378][INFO ][cloud.gce                ] [Theresa Cassidy] starting GCE discovery service
[2014-05-19 16:17:37,592][TRACE][discovery.gce            ] [Theresa Cassidy] gce instance hadoop1 with status RUNNING found.
[2014-05-19 16:17:37,597][TRACE][discovery.gce            ] [Theresa Cassidy] start filtering instance hadoop1 with tags [elasticsearch, dev].
[2014-05-19 16:17:37,597][TRACE][discovery.gce            ] [Theresa Cassidy] comparing instance tags null with tags filter [elasticsearch, dev].
[2014-05-19 16:17:37,597][WARN ][discovery.gce            ] [Theresa Cassidy] Exception caught during discovery java.lang.NullPointerException : null
[2014-05-19 16:17:37,597][TRACE][discovery.gce            ] [Theresa Cassidy] Exception caught during discovery
java.lang.NullPointerException
    at org.elasticsearch.discovery.gce.GceUnicastHostsProvider.buildDynamicNodes(GceUnicastHostsProvider.java:157)
    at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.sendPings(UnicastZenPing.java:245)
    at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$2.run(UnicastZenPing.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
[2014-05-19 16:17:37,598][DEBUG][discovery.gce            ] [Theresa Cassidy] 0 node(s) added
[2014-05-19 16:17:37,598][DEBUG][discovery.gce            ] [Theresa Cassidy] using dynamic discovery nodes []
```

Closes #22.
2014-06-15 10:59:32 +02:00
David Pilato 7d7b2241e5 Update to Lucene 4.8.0/ elasticsearch 2.0.0
Latest changes break tests

Closes #21.
(cherry picked from commit 04c77e8)
2014-04-29 22:05:41 +02:00
David Pilato 314b146fd5 Create branch es-1.2 2014-04-29 21:59:10 +02:00
David Pilato c0d047dccb Fix tests when running mvn tests
(cherry picked from commit 1edd72e)
2014-04-16 08:01:35 +02:00
David Pilato 89c29c4404 Fix log
Related to #19.
2014-04-14 23:45:17 +02:00
David Pilato 290fb027c3 Upgrade to GCE v1-rev15-1.18.0-rc API
Closes #19.
2014-04-14 23:36:24 +02:00
David Pilato a181b711f2 Fix typo 2014-03-26 20:38:37 +01:00
David Pilato 3643233670 Update to elasticsearch master 2014-03-26 20:25:28 +01:00
David Pilato 4f04ded852 Run tests with only one JVM
(cherry picked from commit d003f39)
2014-03-26 20:09:59 +01:00
David Pilato c5a03cb448 Create branches according to elasticsearch versions
We create branches:

* es-0.90 for elasticsearch 0.90
* es-1.0 for elasticsearch 1.0
* es-1.1 for elasticsearch 1.1
* master for elasticsearch master

We also check that before releasing we don't have a dependency to an elasticsearch SNAPSHOT version.

Add links to each version in documentation
(cherry picked from commit a51926c)
2014-03-26 19:58:45 +01:00
David Pilato d71fd1f02d Disable java and maven version checking
And fix typo in email html
2014-03-19 22:16:33 +01:00
David Pilato cbca1c4838 prepare for next development iteration 2014-03-12 12:19:17 +01:00