@@ -49,7 +49,7 @@ func newInternalRpcServer(grpcProvider container.GrpcProvider, bindAddress strin
4949 assignmentDispatcher : assignmentDispatcher ,
5050 healthServer : health .NewServer (),
5151 log : log .With ().
52- Str ("component" , "coordination -rpc-server" ).
52+ Str ("component" , "internal -rpc-server" ).
5353 Logger (),
5454 }
5555
@@ -100,7 +100,7 @@ func (s *internalRpcServer) NewTerm(c context.Context, req *proto.NewTermRequest
100100 log .Warn ().Err (err ).Msg ("NewTerm failed: could not get follower controller" )
101101 return nil , err
102102 }
103- log .Warn ().Err (err ).Msg ("Node is not follower, getting leader" )
103+ log .Debug ().Err (err ).Msg ("Node is not follower, getting leader" )
104104
105105 // If we don't have a follower, fallback to checking the leader controller
106106 } else {
@@ -208,6 +208,7 @@ func (s *internalRpcServer) Replicate(srv proto.OxiaLogReplication_ReplicateServ
208208
209209 log := s .log .With ().
210210 Int64 ("shard" , shardId ).
211+ Str ("namespace" , namespace ).
211212 Str ("peer" , common .GetPeer (srv .Context ())).
212213 Logger ()
213214
@@ -245,11 +246,13 @@ func (s *internalRpcServer) SendSnapshot(srv proto.OxiaLogReplication_SendSnapsh
245246
246247 s .log .Info ().
247248 Int64 ("shard" , shardId ).
249+ Str ("namespace" , namespace ).
248250 Str ("peer" , common .GetPeer (srv .Context ())).
249251 Msg ("Received SendSnapshot request" )
250252
251253 if follower , err := s .shardsDirector .GetOrCreateFollower (namespace , shardId ); err != nil {
252254 s .log .Warn ().Err (err ).
255+ Str ("namespace" , namespace ).
253256 Int64 ("shard" , shardId ).
254257 Str ("peer" , common .GetPeer (srv .Context ())).
255258 Msg ("SendSnapshot failed: could not get follower controller" )
@@ -258,6 +261,7 @@ func (s *internalRpcServer) SendSnapshot(srv proto.OxiaLogReplication_SendSnapsh
258261 err2 := follower .SendSnapshot (srv )
259262 if err2 != nil {
260263 s .log .Warn ().Err (err2 ).
264+ Str ("namespace" , namespace ).
261265 Int64 ("shard" , shardId ).
262266 Str ("peer" , common .GetPeer (srv .Context ())).
263267 Msg ("SendSnapshot failed" )
0 commit comments