1、集群内大量节点出现索引文件损坏的问题如何可以快速的解决,恢复集群功能?
2、索引文件损坏就只能够删除对应的索引文件了吗?
[2021-07-27 16:30:14,736] WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (/tmp/kafka-logs/test-10/00000000003208766580.index) has non-zero size but the last offset is 3208766580 which is no larger than the base offset 3208766580.}. deleting /tmp/kafka-logs/test-10/00000000003208766580.timeindex, /tmp/kafka-logs/test-10/00000000003208766580.index, and /tmp/kafka-logs/test-10/00000000003208766580.txnindex and rebuilding index... (kafka.log.Log)
是的,
/tmp
目录会被linux自行回收了,导致数据缺失了。所以,一定不要放在
/tmp
下。好的,就是不放在tmp下面的话也得需要删除日志内提示的文件才可以吗?
嗯,已经损坏了。
你的答案