litianyang created IOTDB-6258:
---------------------------------

             Summary: iotdb 1.0.0 upgrade to 1.1.0, raft-meta.conf file records 
are inconsistent
                 Key: IOTDB-6258
                 URL: https://issues.apache.org/jira/browse/IOTDB-6258
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: litianyang
         Attachments: image-2023-11-25-11-50-57-078.png

h1. iotdb 1.0.0 upgrade to 1.1.0, raft-meta.conf file records are inconsistent

*ConfigNode log:*

2023-11-23 14:37:31,648 | INFO  | [-1-impl-thread1] | -1@group-000000000000: 
set configuration 59: 
peers:[192.168.20.114_22251|rpc:192.168.20.114:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER,
 
192.168.20.181_22251|rpc:192.168.20.181:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER,
 
192.168.20.155_22251|rpc:192.168.20.155:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER]|listeners:[],
 old=null | org.apache.ratis.server.RaftServer$Division (ServerState.java:434)
2023-11-23 14:37:31,663 | INFO  | [-1-impl-thread1] | Successfully read 46 
entries from segment file 
/srv/BigData/iotdb/confignode/data/consensus/47474747-4747-4747-4747-000000000000/current/log_inprogress_59
 | org.apache.ratis.server.raftlog.segmented.LogSegment (LogSegment.java:170)
2023-11-23 14:37:31,666 | INFO  | [-1-impl-thread1] | 
-1@group-000000000000-SegmentedRaftLogWorker: flushIndex: setUnconditionally 0 
-> 104 | org.apache.ratis.server.raftlog.segmented.SegmentedRaftLogWorker 
(SegmentedRaftLogWorker.java:135)
2023-11-23 14:37:31,667 | INFO  | [-1-impl-thread1] | 
-1@group-000000000000-SegmentedRaftLogWorker: safeCacheEvictIndex: 
setUnconditionally 0 -> -1 | 
org.apache.ratis.server.raftlog.segmented.SegmentedRaftLogWorker 
(SegmentedRaftLogWorker.java:135)
2023-11-23 14:37:31,738 | INFO  | [-1-impl-thread1] | 
-1@group-000000000000-SegmentedRaftLog: commitIndex: updateToMax old=-1, 
new=103, updated? true | org.apache.ratis.server.raftlog.RaftLog 
(RaftLogBase.java:53)
2023-11-23 14:37:31,739 | INFO  | [-1-impl-thread1] | -1@group-000000000000: 
start with initializing state, conf=59: 
peers:[192.168.20.114_22251|rpc:192.168.20.114:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER,
 
192.168.20.181_22251|rpc:192.168.20.181:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER,
 
192.168.20.155_22251|rpc:192.168.20.155:22251|admin:|client:|dataStream:|priority:0|startupRole:FOLLOWER]|listeners:[],
 old=null | org.apache.ratis.server.RaftServer$Division 
(RaftServerImpl.java:348)
2023-11-23 14:37:31,739 | INFO  | [-1-impl-thread1] | -1@group-000000000000: 
changes role from      null to FOLLOWER at term 2 for startInitializing | 
org.apache.ratis.server.RaftServer$Division (RaftServerImpl.java:329)
2023-11-23 14:37:31,740 | INFO  | [-1-impl-thread1] | Successfully registered 
JMX Bean with object name 
Ratis:service=RaftServer,group=group-000000000000,id=-1 | 
org.apache.ratis.util.JmxRegister (JmxRegister.java:44)
2023-11-23 14:37:31,742 | INFO  | [-1-impl-thread1] | 
raft.server.snapshot.auto.trigger.enabled = true (custom) | 
org.apache.ratis.server.RaftServerConfigKeys (ConfUtils.java:46)
2023-11-23 14:37:31,742 | INFO  | [-1-impl-thread1] | 
raft.server.snapshot.auto.trigger.threshold = 400000 (default) | 
org.apache.ratis.server.RaftServerConfigKeys (ConfUtils.java:46)
2023-11-23 14:37:31,743 | INFO  | [-1-impl-thread1] | 
raft.server.snapshot.retention.file.num = 2 (custom) | 
org.apache.ratis.server.RaftServerConfigKeys (ConfUtils.java:46)
2023-11-23 14:37:31,744 | INFO  | [-1-impl-thread1] | 
raft.server.log.purge.upto.snapshot.index = true (custom) | 
org.apache.ratis.server.RaftServerConfigKeys (ConfUtils.java:46)
2023-11-23 14:37:31,746 | INFO  | [main] | -1: start RPC server | 
org.apache.ratis.server.RaftServer (RaftServerProxy.java:400)
2023-11-23 14:37:31,750 | ERROR | [-1@group-000000000000-StateMachineUpdater] | 
-1@group-000000000000-StateMachineUpdater caught a Throwable. | 
org.apache.ratis.server.impl.StateMachineUpdater (StateMachineUpdater.java:196)
java.lang.NumberFormatException: For input string: "192.168.20.114_22251"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at 
org.apache.iotdb.consensus.ratis.utils.Utils.fromRaftPeerProtoToNodeId(Utils.java:131)
        at 
org.apache.iotdb.consensus.ratis.utils.Utils.lambda$fromRaftProtoListAndRaftGroupIdToPeers$1(Utils.java:142)
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
        at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
        at 
org.apache.iotdb.consensus.ratis.utils.Utils.fromRaftProtoListAndRaftGroupIdToPeers(Utils.java:144)
        at 
org.apache.iotdb.consensus.ratis.ApplicationStateMachineProxy.notifyConfigurationChanged(ApplicationStateMachineProxy.java:313)
        at 
org.apache.ratis.server.impl.RaftServerImpl.applyLogToStateMachine(RaftServerImpl.java:1762)
        at 
org.apache.ratis.server.impl.StateMachineUpdater.applyLog(StateMachineUpdater.java:242)
        at 
org.apache.ratis.server.impl.StateMachineUpdater.run(StateMachineUpdater.java:184)
        at java.lang.Thread.run(Thread.java:750)
2023-11-23 14:37:31,751 | INFO  | [-1@group-000000000000-StateMachineUpdater] | 
-1@group-000000000000: shutdown | org.apache.ratis.server.RaftServer$Division 
(RaftServerImpl.java:466)
2023-11-23 14:37:31,752 | INFO  | [-1@group-000000000000-StateMachineUpdater] | 
Successfully un-registered JMX Bean with object name 
Ratis:service=RaftServer,group=group-000000000000,id=-1 | 
org.apache.ratis.util.JmxRegister (JmxRegister.java:73)
2023-11-23 14:37:31,753 | INFO  | [-1@group-000000000000-StateMachineUpdater] | 
-1@group-000000000000: closes. applyIndex: 0 | 
org.apache.ratis.server.RaftServer$Division (ServerState.java:472)
2023-11-23 14:37:31,793 | INFO  | [main] | -1: GrpcService started, listening 
on 22251 | org.apache.ratis.grpc.server.GrpcService (GrpcService.java:302)
2023-11-23 14:37:31,794 | INFO  | [JvmPauseMonitor0] | JvmPauseMonitor--1: 
Started | org.apache.ratis.util.JvmPauseMonitor (JvmPauseMonitor.java:103)
2023-11-23 14:37:31,796 | INFO  | [main] | Init ConsensusManager successfully 
when restarted | org.apache.iotdb.confignode.manager.consensus.ConsensusManager 
(ConsensusManager.java:213)
2023-11-23 14:37:31,803 | INFO  | [main] | IoTDB: start Config Node service... 
| org.apache.iotdb.commons.service.ThriftService (ThriftService.java:115)
2023-11-23 14:37:31,836 | INFO  | [main] | thrift_connections,[name, 
ConfigNodeRPC] | org.apache.iotdb.metrics.micrometer.type.MicrometerAutoGauge 
(MicrometerAutoGauge.java:47)
2023-11-23 14:37:31,838 | INFO  | [main] | new SynchronousQueue thread pool: 
ConfigNodeRPC-Processor | 
org.apache.iotdb.commons.concurrent.IoTDBThreadPoolFactory 
(IoTDBThreadPoolFactory.java:250)
2023-11-23 14:37:31,840 | INFO  | [main] | thrift_active_threads,[name, 
ConfigNodeRPC-Service] | 
org.apache.iotdb.metrics.micrometer.type.MicrometerAutoGauge 
(MicrometerAutoGauge.java:47)

 

 

*raft-meta.conf:*

!image-2023-11-25-11-50-57-078.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to