在cassandra节点上运行“ nodetool scrub”和“ sstablescrub”是否安全?

时间:2018-12-28 05:07:13

标签: cassandra-3.0

我试图在生产环境中的cassandra节点上运行nodetool修复,但未成功,出现以下错误

**验证失败于/10.253.189.222(进度:0%)

调试[ReadRepairStage:99093] 2018-11-22 06:29:35,411 ReadCallback.java:234-摘要不匹配: org.apache.cassandra.service.DigestMismatchException:键DecoratedKey的不匹配(5889678124560878183,74e024839ef04bc1b14122ac99255dd6)(74aa9a679d7ddfa104c0666f277714b6 vs 9c7fadd13350462813b6ebdb035e2e9d)                 在org.apache.cassandra.service.DigestResolver.resolve(DigestResolver.java:85)〜[apache-cassandra-3.0.9.jar:3.0.9]                 在org.apache.cassandra.service.ReadCallback $ AsyncRepairRunner.run(ReadCallback.java:225)〜[apache-cassandra-3.0.9.jar:3.0.9]                 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_131]                 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_131]                 在java.lang.Thread.run(Thread.java:748)[na:1.8.0_131] **

运行“ nodetool scrub”和“ sstabletablerub”是否安全?会不会有数据丢失?请提出建议。

1 个答案:

答案 0 :(得分:0)

您可以尝试在特定的键空间和表上进行nodetool修复,因此,如果所有表都没有问题,则可以修复大多数表。另外,您可以在键空间和表上运行nodetool scrub。