Skip to content

Commit

Permalink
refactor: update BaseOffset in cluster metadata serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Oct 4, 2024
1 parent dc05e88 commit 87dd6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/serializer/cluster_metadata_binspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func writeClusterMetadataBinSpec(path string, directoryUUID string, logger *logg
}

recordBatch1 := kafkaapi.RecordBatch{
BaseOffset: 1,
BaseOffset: 0,
PartitionLeaderEpoch: 1,
Attributes: 0,
LastOffsetDelta: 0, // len(records) - 1
Expand All @@ -95,7 +95,7 @@ func writeClusterMetadataBinSpec(path string, directoryUUID string, logger *logg
}

recordBatch4 := kafkaapi.RecordBatch{
BaseOffset: int64(0 + 0),
BaseOffset: 1,
PartitionLeaderEpoch: 1,
Attributes: 0,
LastOffsetDelta: 2, // len(records) - 1
Expand Down

0 comments on commit 87dd6c2

Please sign in to comment.