translog文件夹被清空,报failed to recover from gateway错误
匿名 | 发布于2019年09月08日 | 阅读数:4268
不小心把translog文件夹清空了,请问如何解决
[2019-09-08T15:28:00,193][WARN ][o.e.i.c.IndicesClusterStateService] [node] [[file][2]] marking and sending shard failed due to [failed recovery]
org.elasticsearch.indices.recovery.RecoveryFailedException: [file][2]: Recovery failed on {node}{xVHhopcPSGi99Su-RhtUpw}{jIkjKCdATKS46xf68HYPNw}{10.140.0.7}{10.140.0.7:9300}
at org.elasticsearch.index.shard.IndexShard.lambda$startRecovery$6(IndexShard.java:2042) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:573) [elasticsearch-6.2.2.jar:6.2.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_221]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_221]
Caused by: org.elasticsearch.index.shard.IndexShardRecoveryException: failed to recover from gateway
at org.elasticsearch.index.shard.StoreRecovery.internalRecoverFromStore(StoreRecovery.java:413) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.lambda$recoverFromStore$0(StoreRecovery.java:94) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.executeRecovery(StoreRecovery.java:300) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.recoverFromStore(StoreRecovery.java:92) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.recoverFromStore(IndexShard.java:1606) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.lambda$startRecovery$6(IndexShard.java:2038) ~[elasticsearch-6.2.2.jar:6.2.2]
... 4 more
Caused by: java.nio.file.NoSuchFileException: /usr/local/elasticsearch-6.2.2/elasticsearch_data/data/nodes/0/indices/nvce76h8RO-S4E8S1xw9rw/2/translog/translog.ckp
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:?]
at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_221]
at java.nio.file.Files.newByteChannel(Files.java:407) ~[?:1.8.0_221]
at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:77) ~[lucene-core-7.2.1.jar:7.2.1 b2b6438b37073bee1fca40374e85bf91aa457c0b - ubuntu - 2018-01-10 00:48:43]
at org.elasticsearch.index.translog.Checkpoint.read(Checkpoint.java:141) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.translog.Translog.readCheckpoint(Translog.java:1682) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.translog.Translog.readGlobalCheckpoint(Translog.java:1693) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.innerOpenEngineAndTranslog(IndexShard.java:1373) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.openIndexAndRecoveryFromTranslog(IndexShard.java:1331) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.internalRecoverFromStore(StoreRecovery.java:404) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.lambda$recoverFromStore$0(StoreRecovery.java:94) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.executeRecovery(StoreRecovery.java:300) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.StoreRecovery.recoverFromStore(StoreRecovery.java:92) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.recoverFromStore(IndexShard.java:1606) ~[elasticsearch-6.2.2.jar:6.2.2]
at org.elasticsearch.index.shard.IndexShard.lambda$startRecovery$6(IndexShard.java:2038) ~[elasticsearch-6.2.2.jar:6.2.2]
... 4 more
0 个回复