devinbost commented on issue #6224: Possible race condition: ReaderTest.testReadMessageWithBatchingWithMessageInclusive:148 expected [true] but found [false] URL: https://github.com/apache/pulsar/issues/6224#issuecomment-582214395 In a passing test, in: ``` private boolean hasMoreMessages(MessageId lastMessageIdInBroker, MessageId lastDequeuedMessage) { if (lastMessageIdInBroker.compareTo(lastDequeuedMessage) > 0 && ((MessageIdImpl)lastMessageIdInBroker).getEntryId() != -1) { return true; } else { // Make sure batching message can be read completely. return lastMessageIdInBroker.compareTo(lastDequeuedMessage) == 0 && incomingMessages.size() > 0; } } ``` incomingMessages.size() has the expected value, and lastMessageIdInBroker.compareTo(lastDequeuedMessage) == 0 evaluates to true.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
