mirror of https://github.com/apache/druid.git
Fix appenderator_realtime creating shards bigger by 1 than maxRowsPerSegment (#6125)
This commit is contained in:
parent
ecee3e0a24
commit
da3a1f61ac
|
@ -322,7 +322,7 @@ public class AppenderatorDriverRealtimeIndexTask extends AbstractTask implements
|
||||||
AppenderatorDriverAddResult addResult = driver.add(inputRow, sequenceName, committerSupplier);
|
AppenderatorDriverAddResult addResult = driver.add(inputRow, sequenceName, committerSupplier);
|
||||||
|
|
||||||
if (addResult.isOk()) {
|
if (addResult.isOk()) {
|
||||||
if (addResult.getNumRowsInSegment() > tuningConfig.getMaxRowsPerSegment()) {
|
if (addResult.getNumRowsInSegment() >= tuningConfig.getMaxRowsPerSegment()) {
|
||||||
publishSegments(driver, publisher, committerSupplier, sequenceName);
|
publishSegments(driver, publisher, committerSupplier, sequenceName);
|
||||||
|
|
||||||
sequenceNumber++;
|
sequenceNumber++;
|
||||||
|
|
Loading…
Reference in New Issue