Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment receive timeout on PerMessageUnAcknowledgedRedeliveryTest #85

Merged
merged 1 commit into from
Oct 25, 2016
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 @@ -81,7 +81,7 @@ public void testSharedAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
long size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -102,7 +102,7 @@ public void testSharedAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -124,7 +124,7 @@ public void testSharedAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -140,7 +140,7 @@ public void testSharedAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
assertEquals(redelivered, 5);
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
Expand Down Expand Up @@ -178,7 +178,7 @@ public void testExclusiveAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
long size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -199,7 +199,7 @@ public void testExclusiveAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -221,7 +221,7 @@ public void testExclusiveAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -237,7 +237,7 @@ public void testExclusiveAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
assertEquals(redelivered, 10);
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
Expand Down Expand Up @@ -275,7 +275,7 @@ public void testFailoverAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
long size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -296,7 +296,7 @@ public void testFailoverAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -318,7 +318,7 @@ public void testFailoverAckedNormalTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -334,7 +334,7 @@ public void testFailoverAckedNormalTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
assertEquals(redelivered, 10);
size = ((ConsumerImpl) consumer).getUnAckedMessageTracker().size();
Expand Down Expand Up @@ -381,7 +381,7 @@ public void testSharedAckedPartitionedTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}

long size = getUnackedMessagesCountInPartitionedConsumer(consumer);
Expand All @@ -403,7 +403,7 @@ public void testSharedAckedPartitionedTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = getUnackedMessagesCountInPartitionedConsumer(consumer);
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -425,7 +425,7 @@ public void testSharedAckedPartitionedTopic() throws Exception {
while (message != null) {
String data = new String(message.getData());
log.info("Consumer received : " + data);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
size = getUnackedMessagesCountInPartitionedConsumer(consumer);
log.info(key + " Unacked Message Tracker size is " + size);
Expand All @@ -441,7 +441,7 @@ public void testSharedAckedPartitionedTopic() throws Exception {
String data = new String(message.getData());
log.info("Consumer received : " + data);
consumer.acknowledge(message);
message = consumer.receive(10, TimeUnit.MILLISECONDS);
message = consumer.receive(100, TimeUnit.MILLISECONDS);
}
assertEquals(redelivered, 5);
size = getUnackedMessagesCountInPartitionedConsumer(consumer);
Expand Down