|
@@ -190,7 +190,7 @@ func TestPartitionOffsetManagerNextOffset(t *testing.T) {
|
|
|
pom := initPartitionOffsetManager(t, om, coordinator, 5, "test_meta")
|
|
pom := initPartitionOffsetManager(t, om, coordinator, 5, "test_meta")
|
|
|
|
|
|
|
|
offset, meta := pom.NextOffset()
|
|
offset, meta := pom.NextOffset()
|
|
|
- if offset != 6 {
|
|
|
|
|
|
|
+ if offset != 5 {
|
|
|
t.Errorf("Expected offset 5. Actual: %v", offset)
|
|
t.Errorf("Expected offset 5. Actual: %v", offset)
|
|
|
}
|
|
}
|
|
|
if meta != "test_meta" {
|
|
if meta != "test_meta" {
|
|
@@ -215,7 +215,7 @@ func TestPartitionOffsetManagerMarkOffset(t *testing.T) {
|
|
|
pom.MarkOffset(100, "modified_meta")
|
|
pom.MarkOffset(100, "modified_meta")
|
|
|
offset, meta := pom.NextOffset()
|
|
offset, meta := pom.NextOffset()
|
|
|
|
|
|
|
|
- if offset != 101 {
|
|
|
|
|
|
|
+ if offset != 100 {
|
|
|
t.Errorf("Expected offset 100. Actual: %v", offset)
|
|
t.Errorf("Expected offset 100. Actual: %v", offset)
|
|
|
}
|
|
}
|
|
|
if meta != "modified_meta" {
|
|
if meta != "modified_meta" {
|
|
@@ -252,7 +252,7 @@ func TestPartitionOffsetManagerMarkOffsetWithRetention(t *testing.T) {
|
|
|
pom.MarkOffset(100, "modified_meta")
|
|
pom.MarkOffset(100, "modified_meta")
|
|
|
offset, meta := pom.NextOffset()
|
|
offset, meta := pom.NextOffset()
|
|
|
|
|
|
|
|
- if offset != 101 {
|
|
|
|
|
|
|
+ if offset != 100 {
|
|
|
t.Errorf("Expected offset 100. Actual: %v", offset)
|
|
t.Errorf("Expected offset 100. Actual: %v", offset)
|
|
|
}
|
|
}
|
|
|
if meta != "modified_meta" {
|
|
if meta != "modified_meta" {
|