Skip to content

Commit 610bc0f

Browse files
committed
old changes
1 parent 76f59b6 commit 610bc0f

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

server/src/internalClusterTest/java/org/elasticsearch/recovery/RelocationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public void testSimpleRelocationWithIndexingPaused() throws Exception {
203203
IndexShard shard = indicesService.indexServiceSafe(resolveIndex("test")).getShard(0);
204204
shard.activateThrottling();
205205
// Verify that indexing is paused for the throttled shard
206-
assertThat(shard.isIndexingPaused(), equalTo(true));
206+
assertThat(shard.getEngineOrNull().isIndexingPaused(), equalTo(true));
207207
// Try to index a document into the "test" index which is currently throttled
208208
logger.info("--> Try to index a doc while indexing is paused");
209209
IndexRequestBuilder indexRequestBuilder = prepareIndex("test").setId(Integer.toString(20)).setSource("field", "value" + 20);

server/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,17 +2757,6 @@ public void deactivateThrottling() {
27572757
}
27582758
}
27592759

2760-
public boolean isIndexingPaused() {
2761-
Engine engine = getEngineOrNull();
2762-
final boolean indexingPaused;
2763-
if (engine == null) {
2764-
indexingPaused = false;
2765-
} else {
2766-
indexingPaused = engine.isIndexingPaused();
2767-
}
2768-
return (indexingPaused);
2769-
}
2770-
27712760
public void suspendThrottling() {
27722761
try {
27732762
getEngine().suspendThrottling();

0 commit comments

Comments
 (0)