Skip to content

Commit

Permalink
Remove printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
yolken-segment committed Oct 1, 2021
1 parent 0dee700 commit 94a4a41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions describegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ func (c *Client) DescribeGroups(
}

for _, member := range apiGroup.Members {
fmt.Println("Decoding member metadata")
decodedMetadata, err := decodeMemberMetadata(member.MemberMetadata)
if err != nil {
return nil, err
}
fmt.Println("Decoding member assignments")
decodedAssignments, err := decodeMemberAssignments(member.MemberAssignment)
if err != nil {
return nil, err
Expand Down
9 changes: 9 additions & 0 deletions reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io"
"math/rand"
"net"
"os"
"reflect"
"strconv"
"sync"
Expand Down Expand Up @@ -571,6 +572,14 @@ func BenchmarkReader(b *testing.B) {
}

func TestCloseLeavesGroup(t *testing.T) {
if os.Getenv("KAFKA_VERSION") == "2.3.1" {
// There's a bug in 2.3.1 that causes the MemberMetadata to be in the wrong format and thus
// leads to an error when decoding the DescribeGroupsResponse.
//
// See https://issues.apache.org/jira/browse/KAFKA-9150 for details.
t.Skip("Skipping because kafka version is 2.3.1")
}

ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

Expand Down

0 comments on commit 94a4a41

Please sign in to comment.