Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move IndicesService.canDeleteShardContent to use IndexSettings #15150

Closed

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented Dec 1, 2015

Just a minor cleanup/simplification

Closes #15059

@jpountz
Copy link
Contributor

jpountz commented Dec 2, 2015

LGTM

@@ -97,11 +99,12 @@ public void clusterChanged(ClusterChangedEvent event) {
}

for (IndexRoutingTable indexRoutingTable : event.state().routingTable()) {
IndexSettings indexSettings = new IndexSettings(event.state().getMetaData().index(indexRoutingTable.index()), settings, Collections.EMPTY_LIST);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Collections.emptyList() to avoid unchecked assignment warnings.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Collections.emptyList() to avoid unchecked assignment warnings.

See #15187.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack :)

On 02 Dec 2015, at 16:43, Jason Tedor notifications@github.com wrote:

In core/src/main/java/org/elasticsearch/indices/store/IndicesStore.java:

@@ -97,11 +99,12 @@ public void clusterChanged(ClusterChangedEvent event) {
}

     for (IndexRoutingTable indexRoutingTable : event.state().routingTable()) {
  •        IndexSettings indexSettings = new IndexSettings(event.state().getMetaData().index(indexRoutingTable.index()), settings, Collections.EMPTY_LIST);
    

nit: Collections.emptyList() to avoid unchecked assignment warnings.

See #15187.


Reply to this email directly or view it on GitHub.

@ywelsch
Copy link
Contributor

ywelsch commented Dec 2, 2015

LGTM

@bleskes bleskes closed this in 9930e68 Dec 3, 2015
@bleskes bleskes deleted the indices_store_parse_setting_once branch December 3, 2015 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants