File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -821,11 +821,12 @@ def _parse_fetched_data(self, completed_fetch):
821
821
" offset %d to buffered record list" , tp ,
822
822
position )
823
823
unpacked = list (self ._unpack_message_set (tp , records ))
824
- parsed_records = self .PartitionRecords (fetch_offset , tp , unpacked )
825
- last_offset = unpacked [- 1 ].offset
826
- self ._sensors .records_fetch_lag .record (highwater - last_offset )
827
- num_bytes = records .valid_bytes ()
828
- records_count = len (unpacked )
824
+ if unpacked :
825
+ parsed_records = self .PartitionRecords (fetch_offset , tp , unpacked )
826
+ last_offset = unpacked [- 1 ].offset
827
+ self ._sensors .records_fetch_lag .record (highwater - last_offset )
828
+ num_bytes = records .valid_bytes ()
829
+ records_count = len (unpacked )
829
830
elif records .size_in_bytes () > 0 :
830
831
# we did not read a single message from a non-empty
831
832
# buffer because that message's size is larger than
Original file line number Diff line number Diff line change 1
- __version__ = '1.4.7.post3 '
1
+ __version__ = '1.4.7.post4 '
You can’t perform that action at this time.
0 commit comments