When my database has lots of reads/writes, I sometimes have the following error on queries:
unexpected error: rpc error: code = Unknown desc = : readTs: 60534 less than minTs: 60535 for key: "\x00\x00\rrelation_type\x02\x06\x01\x00\x00\x00\x00\x00\x00\x00\x01"
This error is not typed, so only way to know if I deal with this error and not another one would be to parse the error message, not efficient nor durable.
For other errors like y.ErrAborted I can test the error type and retry if needed.
How can I properly know when I’m in that case?