Browse Source

Merge pull request #982 from Shopify/consumer/fix-last-stable-offset

consumer: don't check LastStableOffset
Evan Huus 8 năm trước cách đây
mục cha
commit
0f6b831794
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      consumer.go

+ 0 - 5
consumer.go

@@ -546,11 +546,6 @@ func (child *partitionConsumer) parseRecords(block *FetchResponseBlock) ([]*Cons
 		} else {
 			incomplete = true
 		}
-
-		if child.offset > block.LastStableOffset {
-			// We reached the end of closed transactions
-			break
-		}
 	}
 
 	if incomplete || len(messages) == 0 {