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

Verify which errors we should expose in API in first place #72

Open
Tracked by #73
mniewrzal opened this issue Dec 8, 2021 · 1 comment
Open
Tracked by #73

Verify which errors we should expose in API in first place #72

mniewrzal opened this issue Dec 8, 2021 · 1 comment

Comments

@mniewrzal
Copy link
Contributor

Gateway is getting a lot of errors from uplink that have no corresponding type. It's hard to map them without it. This is just list I quickly collected as a starting point. We should figure out which errors we should handle better in the first place.

uplink: stream: metaclient: metabase: pending object missing
uplink: metainfo: invalid direction 0
uplink: metaclient: metabase: conflict: object already exists
uplink: stream: metaclient: object not found: metabase: object with specified version and pending status is missing
uplink: stream: metaclient: signature verification: signature is not valid
uplink: stream: metaclient: eestream: requires 1 <= k <= n <= 256
uplink: stream: ecclient: successful puts (79) less than success threshold (80)
uplink: stream: ecclient: successful puts (1) less than or equal to repair threshold (35)
uplink: object not found: segment not found: segment missing
uplink: missing encryption base: "minisolong"/"store-entrance.mp4"
uplink: bucket: metaclient: cannot delete the bucket because it's being used by another process
uplink: stream: metaclient: metabase: unable to insert segment: ERROR: result is ambiguous (error=rpc error: code = Unavailable desc = transport is closing [exhausted]) (SQLSTATE 40003)
uplink: metainfo: metaclient: ERROR: no inbound stream connection (SQLSTATE XXUUU)
uplink: metaclient: metainfo: bucket name must contain only lowercase letters, numbers or hyphens
uplink: metaclient: metabase: size of part number 3 is below minimum threshold, got: 100.0 KiB, min: 5.0 MiB
@mniewrzal
Copy link
Contributor Author

I think the easiest would be to map:
uplink: stream: metaclient: metabase: pending object missing
uplink: metaclient: metabase: conflict: object already exists

For first maybe we can reuse already existing uplink.ErrObjectNotFound for second we will create something new like uplink.ErrObjectAlreadyExists

@mniewrzal mniewrzal mentioned this issue Dec 9, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant