-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Remove remaining line length violations in o.e.cluster #34941
Conversation
Pinging @elastic/es-core-infra |
There is a merge conflict in checkstyle_suppreasions.xml
…On Fri, Oct 26, 2018, 19:35 Elastic Machine ***@***.***> wrote:
Pinging @elastic/es-core-infra
<https://github.com/orgs/elastic/teams/es-core-infra>
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#34941 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANLoq2G2poBItMZMVJyjxuCc3VVP4Ikks5uo5w4gaJpZM4X9HZ_>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few minor alignment things, otherwise LGTM.
" {\"allocate_empty_primary\" : {\"index\" : \"test\", \"shard\" : 1," + | ||
" \"node\" : \"node1\", \"accept_data_loss\" : true}}\n" + | ||
" ,{\"allocate_stale_primary\" : {\"index\" : \"test\", \"shard\" : 2," + | ||
" \"node\" : \"node1\", \"accept_data_loss\" : true}}\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you line up the opening quotes here?
@@ -110,7 +112,8 @@ public Long getShardSize(ShardRouting shardRouting) { | |||
|
|||
logger.info("now, start 8 more nodes, and check that no rebalancing/relocation have happened"); | |||
clusterState = ClusterState.builder(clusterState).nodes(DiscoveryNodes.builder(clusterState.nodes()) | |||
.add(newNode("node3")).add(newNode("node4")).add(newNode("node5")).add(newNode("node6")).add(newNode("node7")).add(newNode("node8")).add(newNode("node9")).add(newNode("node10"))) | |||
.add(newNode("node3")).add(newNode("node4")).add(newNode("node5")).add(newNode("node6")) | |||
.add(newNode("node7")).add(newNode("node8")).add(newNode("node9")).add(newNode("node10"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you line this up with the one above it?
@@ -53,7 +53,8 @@ protected Settings nodeSettings(int nodeOrdinal) { | |||
|
|||
public void testSingleShardAllocation() throws Exception { | |||
client().admin().indices().prepareCreate("test").setSettings(Settings.builder() | |||
.put("index.number_of_shards", "1").put("index.number_of_replicas", 0).put("index.routing.allocation.include.tag", "A")).execute().actionGet(); | |||
.put("index.number_of_shards", "1").put("index.number_of_replicas", 0) | |||
.put("index.routing.allocation.include.tag", "A")).execute().actionGet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you line this up with the one above it?
@@ -75,7 +76,8 @@ public void testSingleShardAllocation() throws Exception { | |||
|
|||
public void testMultipleShardsSingleNodeAllocation() throws Exception { | |||
client().admin().indices().prepareCreate("test").setSettings(Settings.builder() | |||
.put("index.number_of_shards", "4").put("index.number_of_replicas", 0).put("index.routing.allocation.include.tag", "A")).execute().actionGet(); | |||
.put("index.number_of_shards", "4").put("index.number_of_replicas", 0) | |||
.put("index.routing.allocation.include.tag", "A")).execute().actionGet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one too?
relates #34923, #34884