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

Remove remaining line length violations in o.e.cluster #34941

Merged
merged 4 commits into from
Oct 30, 2018

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Oct 26, 2018

relates #34923, #34884

@rjernst rjernst added >non-issue :Core/Infra/Core Core issues without another label v7.0.0 v6.6.0 labels Oct 26, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@nik9000
Copy link
Member

nik9000 commented Oct 27, 2018 via email

Copy link
Member

@nik9000 nik9000 left a 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" +
Copy link
Member

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")))
Copy link
Member

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();
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

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

This one too?

@rjernst rjernst merged commit 5dda2b0 into elastic:master Oct 30, 2018
@rjernst rjernst deleted the cluster_linelength2 branch October 30, 2018 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants