删除data/meta/nebula/0/data/CURRENT文件后重启,space信息查询不到

  • nebula 版本:2.6.1
  • 部署方式: 单机
  • 安装方式:源码编译
  • 是否为线上版本:Y / N
  • 硬件信息
    • 磁盘( 推荐使用 SSD)
    • CPU、内存信息
  • 问题的具体描述
    手动删除data/meta/nebula/0/data/CURRENT文件后重启,原有的space信息查询不到


I20220916 12:45:38.443025  3391 compiler_depend.ts:63] Init thrift server for raft service, port: 9560
I20220916 12:45:38.443619  3522 compiler_depend.ts:94] Starting the Raftex Service
I20220916 12:45:38.481674  3522 compiler_depend.ts:84] Starting the Raftex Service on 9560
I20220916 12:45:38.481714  3522 compiler_depend.ts:106] Start the Raftex Service successfully
I20220916 12:45:38.481855  3391 compiler_depend.ts:84] Scan the local path, and init the spaces_
I20220916 12:45:38.481937  3391 compiler_depend.ts:90] Scan path "/opt/huawei/l00579656/nebula_run/nebula/data/meta/nebula/0"
I20220916 12:45:38.513008  3391 compiler_depend.ts:142] open rocksdb on /opt/huawei/l00579656/nebula_run/nebula/data/meta/nebula/0/data
I20220916 12:45:38.513038  3391 compiler_depend.ts:114] Load space 0 from disk
I20220916 12:45:38.513068  3391 compiler_depend.ts:142] Need to open 1 parts of space 0
I20220916 12:45:38.624328  3496 compiler_depend.ts:66] [Port: 9560, Space: 0, Part: 0] lastLogId in wal is 1307881, lastLogTerm is 18, path is /opt/huawei/l00579656/nebula_run/nebula/data/meta/nebula/0/wal/0/0000000000001253286.wal
I20220916 12:45:38.624547  3496 compiler_depend.ts:299] [Port: 9560, Space: 0, Part: 0] There are 0 peer hosts, and total 1 copies. The quorum is 1, as learner 0, lastLogId 1307881, lastLogTerm 18, committedLogId 1307881, committedLogTerm 18, term 18
I20220916 12:45:38.624717  3496 compiler_depend.ts:146] Load part 0, 0 from disk
I20220916 12:45:38.624761  3391 compiler_depend.ts:161] Load space 0 complete
I20220916 12:45:38.624799  3391 compiler_depend.ts:170] Init data from partManager for "127.0.0.1":9559
I20220916 12:45:38.624825  3391 compiler_depend.ts:265] Data space 0 has existed!
I20220916 12:45:38.624835  3391 compiler_depend.ts:305] [Space: 0, Part: 0] has existed!
I20220916 12:45:38.624876  3391 compiler_depend.ts:77] Register handler...
I20220916 12:45:38.624886  3391 compiler_depend.ts:104] Waiting for the leader elected...
I20220916 12:45:38.624893  3391 compiler_depend.ts:116] Leader has not been elected, sleep 1s
I20220916 12:45:39.569434  3498 compiler_depend.ts:1018] [Port: 9560, Space: 0, Part: 0] Start leader election, reason: lastMsgDur 1046, term 18
I20220916 12:45:39.569499  3498 compiler_depend.ts:1184] [Port: 9560, Space: 0, Part: 0] Sending out an election request (space = 0, part = 0, term = 19, lastLogId = 1307881, lastLogTerm = 18, candidateIP = 127.0.0.1, candidatePort = 9560), isPreVote = 1
I20220916 12:45:39.569515  3498 compiler_depend.ts:1139] [Port: 9560, Space: 0, Part: 0] Partition win prevote of term 19
I20220916 12:45:39.569545  3498 compiler_depend.ts:1184] [Port: 9560, Space: 0, Part: 0] Sending out an election request (space = 0, part = 0, term = 19, lastLogId = 1307881, lastLogTerm = 18, candidateIP = 127.0.0.1, candidatePort = 9560), isPreVote = 0
I20220916 12:45:39.569553  3498 compiler_depend.ts:1141] [Port: 9560, Space: 0, Part: 0] Partition is elected as the new leader for term 19
I20220916 12:45:39.625089  3391 compiler_depend.ts:143] Get meta version is 3
I20220916 12:45:39.625125  3391 compiler_depend.ts:160] Nebula store init succeeded, clusterId 5910483749134832870
I20220916 12:45:39.625133  3391 compiler_depend.ts:151] Start http service
I20220916 12:45:39.625348  3391 compiler_depend.ts:168] Starting Meta HTTP Service
I20220916 12:45:39.625362  3391 compiler_depend.ts:70] Web service has been started.
I20220916 12:45:39.625481  3391 compiler_depend.ts:61] JobManager initialized
I20220916 12:45:39.625496  3391 compiler_depend.ts:181] Check and init root user
I20220916 12:45:39.625504  5781 compiler_depend.ts:116] JobManager::runJobBackground() enter
I20220916 12:45:39.625527  3391 compiler_depend.ts:28] Root user exists
I20220916 12:45:39.631305  3391 compiler_depend.ts:216] The meta daemon start on "127.0.0.1":9559
I20220916 12:45:39.756165  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9779, role = STORAGE
E20220916 12:45:39.756554  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:45:39.902736  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9669, role = GRAPH
E20220916 12:45:39.902968  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:45:49.768141  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9779, role = STORAGE
E20220916 12:45:49.768497  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:45:49.913898  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9669, role = GRAPH
E20220916 12:45:49.914160  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:45:59.779002  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9779, role = STORAGE
E20220916 12:45:59.779433  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:45:59.924872  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9669, role = GRAPH
E20220916 12:45:59.925110  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:46:09.790030  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9779, role = STORAGE
E20220916 12:46:09.790393  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:46:09.935825  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9669, role = GRAPH
E20220916 12:46:09.936064  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:46:19.800827  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9779, role = STORAGE
E20220916 12:46:19.801126  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND
I20220916 12:46:19.946894  5818 compiler_depend.ts:33] Receive heartbeat from "127.0.0.1":9669, role = GRAPH
E20220916 12:46:19.947146  5818 compiler_depend.ts:303] Get last update time failed, error: E_KEY_NOT_FOUND

数据库文件删了,找不到不是很正常吗 :slightly_smiling_face:

1 个赞

话说为什么要主动删 CURRENT

1 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。