mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-05-25 11:10:20 +00:00
less logs
This commit is contained in:
@@ -166,10 +166,10 @@ func (k *KafkaGoClient) ConsumeWithGroup(topicName, groupID string, expectedCoun
|
||||
for attempt := 0; attempt < 3; attempt++ {
|
||||
commitErr = reader.CommitMessages(ctx, msg)
|
||||
if commitErr == nil {
|
||||
k.t.Logf(" ✓ Committed offset %d (attempt %d)", msg.Offset, attempt+1)
|
||||
k.t.Logf(" Committed offset %d (attempt %d)", msg.Offset, attempt+1)
|
||||
break
|
||||
}
|
||||
k.t.Logf(" × Commit attempt %d failed for offset %d: %v", attempt+1, msg.Offset, commitErr)
|
||||
k.t.Logf(" Commit attempt %d failed for offset %d: %v", attempt+1, msg.Offset, commitErr)
|
||||
// brief backoff
|
||||
time.Sleep(time.Duration(50*(1<<attempt)) * time.Millisecond)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ func NewFilerDiscoveryService(masters []pb.ServerAddress, grpcDialOption grpc.Di
|
||||
func (fds *FilerDiscoveryService) discoverFilersFromMaster(masterAddr pb.ServerAddress) ([]pb.ServerAddress, error) {
|
||||
// Convert HTTP master address to gRPC address (HTTP port + 10000)
|
||||
grpcAddr := masterAddr.ToGrpcAddress()
|
||||
glog.Infof("FILER DISCOVERY: Connecting to master gRPC at %s (converted from HTTP %s)", grpcAddr, masterAddr)
|
||||
|
||||
conn, err := grpc.Dial(grpcAddr, fds.grpcDialOption)
|
||||
if err != nil {
|
||||
@@ -70,17 +69,12 @@ func (fds *FilerDiscoveryService) discoverFilersFromMaster(masterAddr pb.ServerA
|
||||
return nil, fmt.Errorf("failed to list filers from master %s: %v", masterAddr, err)
|
||||
}
|
||||
|
||||
glog.Infof("FILER DISCOVERY: ListClusterNodes returned %d nodes from master %s", len(resp.ClusterNodes), masterAddr)
|
||||
|
||||
var filers []pb.ServerAddress
|
||||
for _, node := range resp.ClusterNodes {
|
||||
glog.Infof("FILER DISCOVERY: Found filer HTTP address %s", node.Address)
|
||||
// Return HTTP address (lock client will convert to gRPC when needed)
|
||||
filers = append(filers, pb.ServerAddress(node.Address))
|
||||
}
|
||||
|
||||
glog.Infof("FILER DISCOVERY: Returning %d filers from master %s", len(filers), masterAddr)
|
||||
|
||||
return filers, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user