Merge branch 'develop/2.5.1'
This commit is contained in:
commit
f2a57fd6a7
@ -85,7 +85,12 @@ public abstract class AbstractTbQueueConsumerTemplate<R, T extends TbQueueMsg> i
|
||||
subscribed = true;
|
||||
}
|
||||
|
||||
List<R> records = doPoll(durationInMillis);
|
||||
List<R> records;
|
||||
if (partitions.isEmpty()) {
|
||||
records = Collections.emptyList();
|
||||
} else {
|
||||
records = doPoll(durationInMillis);
|
||||
}
|
||||
if (!records.isEmpty()) {
|
||||
List<T> result = new ArrayList<>(records.size());
|
||||
records.forEach(record -> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user