Fix line length in org.elasticsearch.get (#37071)
Remove the line suppression for this package and fix offedning lines relates #34844
This commit is contained in:
parent
450d3014f6
commit
15c4d5b184
|
@ -59,7 +59,6 @@
|
|||
<suppress files="server[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]threadpool[/\\]ThreadPool.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]aliases[/\\]IndexAliasesIT.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]explain[/\\]ExplainActionIT.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]get[/\\]GetActionIT.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]indexing[/\\]IndexActionIT.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]monitor[/\\]jvm[/\\]JvmGcMonitorServiceSettingsTests.java" checks="LineLength" />
|
||||
<suppress files="server[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]rest[/\\]BytesRestResponseTests.java" checks="LineLength" />
|
||||
|
|
|
@ -617,7 +617,10 @@ public class GetActionIT extends ESIntegTestCase {
|
|||
FlushResponse flushResponse = client().admin().indices().prepareFlush("my-index").setForce(true).get();
|
||||
if (flushResponse.getSuccessfulShards() == 0) {
|
||||
StringBuilder sb = new StringBuilder("failed to flush at least one shard. total shards [")
|
||||
.append(flushResponse.getTotalShards()).append("], failed shards: [").append(flushResponse.getFailedShards()).append("]");
|
||||
.append(flushResponse.getTotalShards())
|
||||
.append("], failed shards: [")
|
||||
.append(flushResponse.getFailedShards())
|
||||
.append("]");
|
||||
for (DefaultShardOperationFailedException failure: flushResponse.getShardFailures()) {
|
||||
sb.append("\nShard failure: ").append(failure);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue