Empty partitions
This commit is contained in:
		
							parent
							
								
									2407c868c1
								
							
						
					
					
						commit
						37b9311be9
					
				@ -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