remove nocommits; fix test case
This commit is contained in:
parent
1d46a00d43
commit
5f4afe842c
|
@ -555,7 +555,6 @@ public class IndexShard extends AbstractIndexShardComponent {
|
|||
refreshMetric.inc(System.nanoTime() - time);
|
||||
} finally {
|
||||
logger.debug("remove [{}] writing bytes for shard [{}]", new ByteSizeValue(bytes), shardId());
|
||||
// nocommit but we don't promptly stop index throttling anymore?
|
||||
writingBytes.addAndGet(-bytes);
|
||||
}
|
||||
} else {
|
||||
|
@ -1280,7 +1279,6 @@ public class IndexShard extends AbstractIndexShardComponent {
|
|||
try {
|
||||
engine.writeIndexingBuffer();
|
||||
} finally {
|
||||
// nocommit but we don't promptly stop index throttling anymore?
|
||||
writingBytes.addAndGet(-bytes);
|
||||
logger.debug("remove [{}] writing bytes for shard [{}]", new ByteSizeValue(bytes), shardId());
|
||||
}
|
||||
|
|
|
@ -330,7 +330,14 @@ public class IndexingMemoryControllerTests extends ESSingleNodeTestCase {
|
|||
@Override
|
||||
protected long getIndexBufferRAMBytesUsed(IndexShard shard) {
|
||||
return shard.getIndexBufferRAMBytesUsed();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void writeIndexingBufferAsync(IndexShard shard) {
|
||||
// just do it sync'd for this test
|
||||
shard.writeIndexingBuffer();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
|
|
Loading…
Reference in New Issue