Skip to content

Bad error handling #431

@vanyarock01

Description

@vanyarock01

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions