Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yugabyte/yugabyte-db#20717] Update yb-client version to use latest changes #325

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

vaibhav-yb
Copy link
Collaborator

Problem

In context of tablet splitting, we can arrive at a situation where the YBClient can host a RemoteTablet for a parent split tablet, the RemoteTablet in such cases does not have any active tservers. So when the method getFirstTablet will return us such RemoteTablet and YBClient will try to make the RPC call to it, the call would fail with a similar error (method and service names can vary depending on context):

org.yb.client.NonRecoverableException: Too many attempts: YRpc(method=GetTabletListToPollForCDC, service=yb.cdc.CDCService, tablet=null, attempt=1800, maxAttempts=1800, maxTimeoutMs=600000, elapsedTimeMs=6964)

Solution

This diff updates the version of yb-client which has a new method getRandomActiveTablet which iterates over the list of RemoteTablet and only returns a random instance which has tservers linked to it.

This closes yugabyte/yugabyte-db#20717

@vaibhav-yb vaibhav-yb added the bug Something isn't working label Feb 13, 2024
@vaibhav-yb vaibhav-yb self-assigned this Feb 13, 2024
@vaibhav-yb vaibhav-yb merged commit b4bc524 into yugabyte:main Feb 13, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants