599166320 commented on issue #15177:
URL: https://github.com/apache/druid/issues/15177#issuecomment-1765738367
The following test code can reproduce this exception:
```
@Test
public void testAskBufferFailed() throws Exception
{
final TestCommitterSupplier<Integer> committerSupplier = new
TestCommitterSupplier<>();
Assert.assertNull(driver.startJob(null));
for (int i = 0; i < 2080890; i++) {
char [] c = new char[1024];
char [] arr = UUID.randomUUID().toString().toCharArray();
for (int j = 0; j < arr.length; j ++) {
c[j] = arr[j];
}
committerSupplier.setMetadata(i + 1);
InputRow row = new MapBasedInputRow(
DateTimes.of("2000T01"),
ImmutableList.of("dim2"),
ImmutableMap.of(
"dim2",
new String(c),
"met1",
2.0
)
);
final AppenderatorDriverAddResult addResult = driver.add(row, "dummy",
committerSupplier, false, true);
Assert.assertTrue(addResult.isOk());
}
final SegmentsAndCommitMetadata published = driver.publish(
makeOkPublisher(),
committerSupplier.get(),
ImmutableList.of("dummy")
).get(PUBLISH_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
while (driver.getSegments().containsKey("dummy")) {
Thread.sleep(100);
}
final SegmentsAndCommitMetadata segmentsAndCommitMetadata =
driver.registerHandoff(published)
.get(HANDOFF_CONDITION_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
}
```
The error message is as follows:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]