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

Bad error handling #431

Open
vanyarock01 opened this issue Apr 9, 2024 · 0 comments
Open

Bad error handling #431

vanyarock01 opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
1sp bug Something isn't working customer

Comments

@vanyarock01
Copy link

I tried to call insert with crud with unexisted bucket_id and i get follow error:

Failed to get router replicaset: nil

I found error code: https://github.com/tarantool/crud/blob/master/crud/common/call.lua#L201

I think the route method returns table without .err key. For check it i print this value before:

err={"bucket_id":1712661972,"code":9,"type":"ShardingError","message":"Bucket 1712661972 cannot be found. Is rebalancing in progress?","name":"NO_ROUTE_TO_BUCKET"}

I think the error handling needs to be improved.

@vanyarock01 vanyarock01 added the bug Something isn't working label Apr 9, 2024
@a1div0 a1div0 self-assigned this Aug 8, 2024
@a1div0 a1div0 closed this as completed Aug 9, 2024
@a1div0 a1div0 reopened this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1sp bug Something isn't working customer
Projects
None yet
Development

No branches or pull requests

3 participants