@@ -44,11 +44,11 @@ func (r *RoutingTable) distributePrimaryCopies(partID uint64) []discovery.Member
4444 r .log .V (6 ).Printf ("[DEBUG] Failed to find %s in the cluster: %v" , owner , err )
4545 owners = append (owners [:i ], owners [i + 1 :]... )
4646 i --
47- r .log .V (6 ).Printf ("[INFO] Member: %s has been deleted from the primary owners list of PartID: %v" , owner .String (), partID )
47+ r .log .V (3 ).Printf ("[INFO] Member: %s has been deleted from the primary owners list of PartID: %v" , owner .String (), partID )
4848 continue
4949 }
5050 if ! owner .CompareByID (current ) {
51- r .log .V (4 ).Printf ("[WARN] One of the partitions owners is probably re-joined: %s" , current )
51+ r .log .V (3 ).Printf ("[WARN] One of the partitions owners is probably re-joined: %s" , current )
5252 owners = append (owners [:i ], owners [i + 1 :]... )
5353 i --
5454 continue
@@ -61,17 +61,16 @@ func (r *RoutingTable) distributePrimaryCopies(partID uint64) []discovery.Member
6161 cmd := protocol .NewLengthOfPart (partID ).Command (r .ctx )
6262 rc := r .client .Get (owner .String ())
6363 err := rc .Process (r .ctx , cmd )
64- // TODO: improve logging
6564 if err != nil {
66- r .log .V (3 ).Printf ("[ERROR ] Failed to check key count on backup " +
65+ r .log .V (6 ).Printf ("[DEBUG ] Failed to check key count on backup " +
6766 "partition: %d: %v" , partID , err )
6867 // Pass it. If the node is down, memberlist package will send a leave event.
6968 continue
7069 }
7170
7271 count , err := cmd .Result ()
7372 if err != nil {
74- r .log .V (3 ).Printf ("[ERROR ] Failed to check key count on backup " +
73+ r .log .V (6 ).Printf ("[DEBUG ] Failed to check key count on backup " +
7574 "partition: %d: %v" , partID , err )
7675 // Pass it. If the node is down, memberlist package will send a leave event.
7776 continue
@@ -170,16 +169,15 @@ func (r *RoutingTable) distributeBackups(partID uint64) []discovery.Member {
170169 cmd := protocol .NewLengthOfPart (partID ).SetReplica ().Command (r .ctx )
171170 rc := r .client .Get (backup .String ())
172171 err := rc .Process (r .ctx , cmd )
173- // TODO: improve logging
174172 if err != nil {
175- r .log .V (3 ).Printf ("[ERROR ] Failed to check key count on backup " +
173+ r .log .V (6 ).Printf ("[DEBUG ] Failed to check key count on backup " +
176174 "partition: %d: %v" , partID , err )
177175 // Pass it. If the node is down, memberlist package will send a leave event.
178176 continue
179177 }
180178 count , err := cmd .Result ()
181179 if err != nil {
182- r .log .V (3 ).Printf ("[ERROR ] Failed to check key count on backup " +
180+ r .log .V (6 ).Printf ("[DEBUG ] Failed to check key count on backup " +
183181 "partition: %d: %v" , partID , err )
184182 // Pass it. If the node is down, memberlist package will send a leave event.
185183 continue
0 commit comments