aweisberg commented on code in PR #2982:
URL: https://github.com/apache/cassandra/pull/2982#discussion_r1453699614
##########
src/java/org/apache/cassandra/service/accord/AccordJournal.java:
##########
@@ -1099,7 +1086,8 @@ private void doRun()
long waitForEpoch = waitForEpochs.getLong(i);
if (!node.topology().hasEpoch(waitForEpoch))
break;
- requestBuffer.addAll(delayedRequests.remove(waitForEpoch));
+ if (null == requests) requests = new ArrayList<>();
Review Comment:
This could at least be allocated to be the size of the delayed requests in
the first epoch + pending unframed requests. Basically optimistically assume
that it will be the correct size or at least closer to it.
--
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]