Skip to content

Proper catching of errors like "readTs: 60534 less than minTs: 60535 for key" #2647

@mehdiym

Description

@mehdiym

What you wanted to do

I needed to catch those occasional and unpredictable errors and retry if they happen.

What you actually did

I parsed the error message and if it matched the error string, modulo the numbers, I ran the query again.

Why that wasn't great, with examples

Parsing an error string is :

  • not efficient: It takes time to parse a string with a regexp matching
  • not durable: The string message may change in the future

Any external references to support your case

This request has been discussed in that thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions