"system is reconfigured to have %d servers, last config index: %d, this config index: %d", newConfig.getServers().size(), newConfig.getLastLogIndex(), newConfig.getLogIndex()); List<Integer> serversRemoved = new LinkedList<Integer>();
while(config.getLogIndex() > indexCommitted && config.getLastLogIndex() >= this.logStore.getStartIndex()){ config = ClusterConfiguration.fromBytes(this.logStore.getLogEntryAt(config.getLastLogIndex()).getValue()); if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() > 0 && config.getLastLogIndex() < this.logStore.getStartIndex()){ Snapshot lastSnapshot = this.stateMachine.getLastSnapshot(); if(lastSnapshot == null){ }else if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() == 0){ this.logger.error("BUG!!! stop the system, there must be a configuration at index one"); System.exit(-1);
"system is reconfigured to have %d servers, last config index: %d, this config index: %d", newConfig.getServers().size(), newConfig.getLastLogIndex(), newConfig.getLogIndex()); List<Integer> serversRemoved = new LinkedList<Integer>();
"system is reconfigured to have %d servers, last config index: %d, this config index: %d", newConfig.getServers().size(), newConfig.getLastLogIndex(), newConfig.getLogIndex()); List<Integer> serversRemoved = new LinkedList<Integer>();
while(config.getLogIndex() > indexCommitted && config.getLastLogIndex() >= this.logStore.getStartIndex()){ config = ClusterConfiguration.fromBytes(this.logStore.getLogEntryAt(config.getLastLogIndex()).getValue()); if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() > 0 && config.getLastLogIndex() < this.logStore.getStartIndex()){ Snapshot lastSnapshot = this.stateMachine.getLastSnapshot(); if(lastSnapshot == null){ }else if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() == 0){ this.logger.error("BUG!!! stop the system, there must be a configuration at index one"); this.stateMachine.exit(-1);
while(config.getLogIndex() > indexCommitted && config.getLastLogIndex() >= this.logStore.getStartIndex()){ config = ClusterConfiguration.fromBytes(this.logStore.getLogEntryAt(config.getLastLogIndex()).getValue()); if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() > 0 && config.getLastLogIndex() < this.logStore.getStartIndex()){ Snapshot lastSnapshot = this.stateMachine.getLastSnapshot(); if(lastSnapshot == null){ }else if(config.getLogIndex() > indexCommitted && config.getLastLogIndex() == 0){ this.logger.error("BUG!!! stop the system, there must be a configuration at index one"); this.stateMachine.exit(-1);