obkv-table-client-java icon indicating copy to clipboard operation
obkv-table-client-java copied to clipboard

fix(client): address issues with tablet ID changes during splits

Open maochongxin opened this issue 1 year ago • 0 comments

Summary

This update resolves several critical issues encountered in client operations
when tablet IDs change due to partition splits:

  1. Resolved an issue where the Put operation failed to detect updated tablet
    information, resulting in persistent write failures. The fix ensures that
    the client properly updates and handles new tablet configurations.

  2. Implemented a safer retry mechanism for batch operations. After refreshing
    the routing table, batch operations recalculate their grouping based on the
    new partitions, preventing writes to incorrect partitions and ensuring data
    integrity.

  3. Fixed the scan logic where holding onto outdated routing information led
    to infinite retries on illegal partitions. The updated scan logic now supports
    both forward and reverse scan directions, enhancing its robustness and
    flexibility in dynamically changing partition environments.

Solution Description

maochongxin avatar Aug 04 '24 15:08 maochongxin