Starrocks的FE报元数据丢失的解决方案

时间:2023-01-13 11:13:53
2023-01-13 09:50:07,603 ERROR (main|1) [BDBEnvironment.setup():233] error to open replicated environment. will exit.
com.sleepycat.je.EnvironmentFailureException: (JE 7.3.7) 10.179.110.250_9015_1653712213325(-1):/opt/starRocks/fe/meta/bdb recoveryTracker should overlap or follow on disk last VLSN of 41,084,319 recoveryFirs
t= 41,084,321 UNEXPECTED_STATE_FATAL: Unexpected internal state, unable to continue. Environment is invalid and must be closed.
at com.sleepycat.je.EnvironmentFailureException.unexpectedState(EnvironmentFailureException.java:443) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.vlsn.VLSNIndex.merge(VLSNIndex.java:1573) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.vlsn.VLSNIndex.init(VLSNIndex.java:1483) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.vlsn.VLSNIndex.<init>(VLSNIndex.java:422) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.impl.RepImpl.preRecoveryCheckpointInit(RepImpl.java:567) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.java:461) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.dbi.EnvironmentImpl.finishInit(EnvironmentImpl.java:841) ~[je-7.3.7.jar:7.3.7]t
at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:222) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:267) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.Environment.<init>(Environment.java:252) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:607) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:466) ~[je-7.3.7.jar:7.3.7]
at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:540) ~[je-7.3.7.jar:7.3.7]
at com.starrocks.journal.bdbje.BDBEnvironment.setup(BDBEnvironment.java:185) [starrocks-fe.jar:?]
at com.starrocks.journal.bdbje.BDBJEJournal.open(BDBJEJournal.java:272) [starrocks-fe.jar:?]
at com.starrocks.persist.EditLog.open(EditLog.java:841) [starrocks-fe.jar:?]
at com.starrocks.catalog.Catalog.initialize(Catalog.java:884) [starrocks-fe.jar:?]
at com.starrocks.StarRocksFE.start(StarRocksFE.java:110) [starrocks-fe.jar:?]
at com.starrocks.StarRocksFE.main(StarRocksFE.java:65) [starrocks-fe.jar:?]

方案:

进入此目录
cd /opt/starRocks/fe/meta/bdb
清空所有的元数据
rm -rf *
重新从FE的master拉取元数据
./start_fe.sh --helper 10.170.120.110:9015 --daemon