@Override void followLeader() throws InterruptedException { if (context.quitFollowing) { // reset the flag context.quitFollowing = false; LOG.info("Quit following"); return; } else { super.followLeader(); } }
public void run() { try { followerForThread.followLeader(); } catch (InterruptedException e) { LOG.info("Follower thread interrupted", e); } catch (Exception e) { LOG.warn("Unexpected exception in follower thread", e); } } };
LOG.info("FOLLOWING"); setFollower(makeFollower(logFactory)); follower.followLeader(); } catch (Exception e) { LOG.warn("Unexpected exception",e);
LOG.info("FOLLOWING"); setFollower(makeFollower(logFactory)); follower.followLeader(); } catch (Exception e) { LOG.warn("Unexpected exception",e);
LOG.info("FOLLOWING"); setFollower(makeFollower(logFactory)); follower.followLeader(); } catch (Exception e) { LOG.warn("Unexpected exception",e);
LOG.info("FOLLOWING"); setFollower(makeFollower(logFactory)); follower.followLeader(); } catch (Exception e) { LOG.warn("Unexpected exception",e);