Yuta HIGUCHI

add debug log

Change-Id: I0fe955fd5a3a5916fbfb071502b415476b9af240
...@@ -386,6 +386,10 @@ public class DeviceManager ...@@ -386,6 +386,10 @@ public class DeviceManager
386 386
387 if (!myNodeId.equals(term.master())) { 387 if (!myNodeId.equals(term.master())) {
388 // something went wrong in consistency, let go 388 // something went wrong in consistency, let go
389 + log.warn("Mastership has changed after this event."
390 + + "Term Service suggests {} for {}", term, did);
391 + // FIXME: Is it possible to let go of MASTER role
392 + // but remain on STANDBY list?
389 mastershipService.relinquishMastership(did); 393 mastershipService.relinquishMastership(did);
390 applyRole(did, MastershipRole.STANDBY); 394 applyRole(did, MastershipRole.STANDBY);
391 return; 395 return;
......