如何在单个负令牌范围上运行修复

时间:2017-01-30 08:41:18

标签: cassandra cassandra-2.1

使用DSC 2.1.15和256个vnode,想要重新修复由于当时重新启动其他节点而导致计划修复失败的3x单个令牌范围:

    [2017-01-27 16:39:09,722] Repair session eaa19070-e48c-11e6-9ec5-bfac298274c1 for range (3022841941952215056,3024244454843113663] failed with error java.io.IOException: Endpoint /10.3.2.3 died
    [2017-01-27 16:39:09,723] Repair session f9c7ad30-e49d-11e6-9ec5-bfac298274c1 for range (-345691793961228362,-337602087123507428] failed with error java.io.IOException: Endpoint /10.3.2.8 died
    [2017-01-27 16:39:09,723] Repair session b47183d0-e49f-11e6-9ec5-bfac298274c1 for range (1403949860533115064,1426039868590872470] failed with error java.io.IOException: Endpoint /10.3.2.9 died

只有在启动负范围时,它声称要修复3527范围而非预期1,想知道为什么我预期KS只保留通常修复的256范围 - 。提示赞赏TIA!

    nodetool repair -pr -par -st -34569179396122836 -et -337602087123507428 mykeyspc
    [2017-01-30 09:20:55,075] Starting repair command #17, repairing 3527 ranges for keyspace mykeyspc (parallelism=PARALLEL, full=true)

解决方案:

F ... cutNpaste,错误错过了开始令牌中的最后一位数字,正确地做得更好:

    nodetool repair -pr -par -st -345691793961228362 -et -337602087123507428 mykeyspc
    [2017-01-31 12:22:19,043] Starting repair command #1, repairing 1 ranges for keyspace mykeyspc (parallelism=PARALLEL, full=true) 

0 个答案:

没有答案