Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,11 @@ public void testSharedSingleAckedPartitionedTopic() throws Exception {
}

// 4. Receive messages
Message<byte[]> message1 = consumer1.receive();
Message<byte[]> message2 = consumer2.receive();
// Use timeouts on the initial receives — with a Shared subscription the broker may
// dispatch all messages to a single consumer (receiverQueueSize is larger than the
// number of messages per partition), and a blocking receive() would hang.
Message<byte[]> message1 = consumer1.receive(5000, TimeUnit.MILLISECONDS);
Message<byte[]> message2 = consumer2.receive(5000, TimeUnit.MILLISECONDS);
int messageCount1 = 0;
int messageCount2 = 0;
int ackCount1 = 0;
Expand Down
Loading