Skip to content

Commit 94a4a41

Browse files
Remove printlns
1 parent 0dee700 commit 94a4a41

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

describegroups.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ func (c *Client) DescribeGroups(
131131
}
132132

133133
for _, member := range apiGroup.Members {
134-
fmt.Println("Decoding member metadata")
135134
decodedMetadata, err := decodeMemberMetadata(member.MemberMetadata)
136135
if err != nil {
137136
return nil, err
138137
}
139-
fmt.Println("Decoding member assignments")
140138
decodedAssignments, err := decodeMemberAssignments(member.MemberAssignment)
141139
if err != nil {
142140
return nil, err

reader_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io"
77
"math/rand"
88
"net"
9+
"os"
910
"reflect"
1011
"strconv"
1112
"sync"
@@ -571,6 +572,14 @@ func BenchmarkReader(b *testing.B) {
571572
}
572573

573574
func TestCloseLeavesGroup(t *testing.T) {
575+
if os.Getenv("KAFKA_VERSION") == "2.3.1" {
576+
// There's a bug in 2.3.1 that causes the MemberMetadata to be in the wrong format and thus
577+
// leads to an error when decoding the DescribeGroupsResponse.
578+
//
579+
// See https://issues.apache.org/jira/browse/KAFKA-9150 for details.
580+
t.Skip("Skipping because kafka version is 2.3.1")
581+
}
582+
574583
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
575584
defer cancel()
576585

0 commit comments

Comments
 (0)