Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

pooh avatar image
pooh asked ·

关于使用cassandra reaper 做repair的问题

使用cassandra reaper 做repair的时候,执行一张20G的表就一直卡住了。

应该是token分区修复的吧,执行速度特别慢


repair线程数设置为3


日志是报这个:

postponed repair segment xxxxx because one of the hosts (xx.xx.xx.xx) was already involved in a repair

Cannot run segment xxxx for repair xxxx at the moment. Will try again later


这个能怎么解决呢?

repair
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

wdeng avatar image
wdeng answered ·

跟The Last Pickle的对reaper很熟的专家问了一下,这是他给的解决方案:

we want to know if the segment is in a STARTED state.Please check the state of segment in the segments view in the Reaper UI.

If the segment is in a STARTED state there is a known bug in Reaper where a segment can be in a STARTED state, stalls and never completes. There is a patch coming to fix this in the latest version of Reaper. The state of the segment can be fixed in two possible ways.

Abort the repair
You can fix this issue by clicking the “Abort” button on the repair with the stalled segment.

This would terminate repairs on any segments that are yet to be completed. You would need to start a new repair which would commence repairing from the start again.

The other way to fix this is more manual, and might take a full article to explain.

完整的解决方案见附件里的PDF文件。reaper stalled issue and solution.pdf


If they are running into the STARTED segment issue, an upgrade will fix their problem.

In this case they will need to upgrade to at least 2.0.4

https://github.com/thelastpickle/cassandra-reaper/releases/tag/2.0.4

The latest release is 2.0.5

https://github.com/thelastpickle/cassandra-reaper/releases/tag/2.0.5


1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

repairs是RUNNING状态,但是里面的segments确实一直没有新的任务在跑,日志上对应的segment id就一直在刷Will try again later。


目前的reaper版本为2.0.2,我先更新版本按照第一个方式重新执行repair


不行的话再按第二种方式手动操作试试。

0 Likes 0 · ·
1601264550514.png (32.2 KiB)
1601264503908.png (14.1 KiB)