mirror of https://github.com/apache/lucene.git
add comment for no pauses in writeBytes (#1014)
This commit is contained in:
parent
dd4e8b82d7
commit
c06b98262c
|
@ -70,6 +70,10 @@ public final class RateLimitedIndexOutput extends IndexOutput {
|
|||
public void writeBytes(byte[] b, int offset, int length) throws IOException {
|
||||
bytesSinceLastPause += length;
|
||||
checkRate();
|
||||
// The bytes array slice is written without pauses.
|
||||
// This can cause instant write rate to breach rate limit if there have
|
||||
// been no writes for enough time to keep the average write rate within limit.
|
||||
// See https://issues.apache.org/jira/browse/LUCENE-10448
|
||||
delegate.writeBytes(b, offset, length);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue