ES報錯IOException: failed to read(_state/state-42.s)

ES報錯IOException: failed to read(_state/state-42.s)

4) Error injecting constructor, ElasticsearchException[java.io.IOException: failed to read [id:42, legacy:false, file:/data03/es/nodes/0/indices/7OnVKVcGQieslgR7mvZ4QQ/_state/state-42.st]];
 nested: IOException[failed to read [id:42, legacy:false, file:/data03/es/nodes/0/indices/7OnVKVcGQieslgR7mvZ4QQ/_state/state-42.st]]; nested: IllegalStateException[class org.apache.lucene.store.BufferedChecksumIndexInput cannot seek backwards (pos=-16 getFilePointer()=0)];  at org.elasticsearch.gateway.GatewayMetaState.<init>(Unknown Source)
  while locating org.elasticsearch.gateway.GatewayMetaState
Caused by: ElasticsearchException[java.io.IOException: failed to read [id:42, legacy:false, file:/data03/es/nodes/0/indices/7OnVKVcGQieslgR7mvZ4QQ/_state/state-42.st]]; nested: IOException[
failed to read [id:42, legacy:false, file:/data03/es/nodes/0/indices/7OnVKVcGQieslgR7mvZ4QQ/_state/state-42.st]]; nested: IllegalStateException[class org.apache.lucene.store.BufferedChecksumIndexInput cannot seek backwards (pos=-16 getFilePointer()=0)];

解決辦法:
刪除file:/data03/es/nodes/0/indices/7OnVKVcGQieslgR7mvZ4QQ/_state/state-42.st

 find /data*/es/nodes/0/indices/ -type f -name state-*.st -exec rm -rf {} \; 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章