Programmatically get migration status

Hi,

Is there any way to know if the migration/rebalacne is happening in the cluster using Java client? I am currently working on a task that tries to recover a bad record (server error 1 when read) by reading it from a random replica but it seems that I can’t read from a random replica if the migration is happening.

Thanks -Binh

Hi Binh, you could could check migration status using the Java client’s Info class to send a cluster-stable info command with ignore-migrations set to false (the default).

You could also look at the migrate_partitions_remaining metric for more per-node statistics. Hope that helps!

Thank you @aanderson, it works!

1 Like

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.