logger.trace not logger.debug; fix test to verify bytes-sized index buffer size in node settings on node init took
This commit is contained in:
parent
698da29573
commit
2edf9cf82d
|
@ -207,10 +207,10 @@ public class IndexingMemoryController extends AbstractLifecycleComponent<Indexin
|
||||||
indexShard.markAsInactive();
|
indexShard.markAsInactive();
|
||||||
} catch (EngineClosedException e) {
|
} catch (EngineClosedException e) {
|
||||||
// ignore
|
// ignore
|
||||||
logger.debug("ignore EngineClosedException while marking shard [{}][{}] as inactive", indexShard.shardId().index().name(), indexShard.shardId().id());
|
logger.trace("ignore EngineClosedException while marking shard [{}][{}] as inactive", indexShard.shardId().index().name(), indexShard.shardId().id());
|
||||||
} catch (FlushNotAllowedEngineException e) {
|
} catch (FlushNotAllowedEngineException e) {
|
||||||
// ignore
|
// ignore
|
||||||
logger.debug("ignore FlushNotAllowedException while marking shard [{}][{}] as inactive", indexShard.shardId().index().name(), indexShard.shardId().id());
|
logger.trace("ignore FlushNotAllowedException while marking shard [{}][{}] as inactive", indexShard.shardId().index().name(), indexShard.shardId().id());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,8 @@ public class IndexingMemoryControllerIT extends ESIntegTestCase {
|
||||||
public void testIndexBufferNotPercent() throws InterruptedException {
|
public void testIndexBufferNotPercent() throws InterruptedException {
|
||||||
// #13487: Make sure you can specify non-percent sized index buffer and not hit NPE
|
// #13487: Make sure you can specify non-percent sized index buffer and not hit NPE
|
||||||
createNode(Settings.builder().put(IndexingMemoryController.INDEX_BUFFER_SIZE_SETTING, "32mb").build());
|
createNode(Settings.builder().put(IndexingMemoryController.INDEX_BUFFER_SIZE_SETTING, "32mb").build());
|
||||||
|
// ... and that it took:
|
||||||
|
assertEquals(32*1024*1024, internalCluster().getInstance(IndexingMemoryController.class).indexingBufferSize().bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createNode(Settings settings) {
|
private void createNode(Settings settings) {
|
||||||
|
|
Loading…
Reference in New Issue