client-java icon indicating copy to clipboard operation
client-java copied to clipboard

fix KeyException no retry & no detail error msg

Open jackjeyis opened this issue 2 years ago • 0 comments

Bug Report

1. Describe the bug

KeyException is known problem no need retry & no detail error msg

private boolean retryableException(Exception e) { return e instanceof TiClientInternalException || e instanceof KeyException || e instanceof RegionException || e instanceof StatusRuntimeException; }

public KeyException(Kvrpcpb.KeyError keyErr) { super("Key exception occurred"); this.keyErr = keyErr; }

2. Minimal reproduce step (Required)

3. What did you see instead (Required)

4. What did you expect to see? (Required)

private boolean retryableException(Exception e) { return e instanceof TiClientInternalException || e instanceof RegionException || e instanceof StatusRuntimeException; }

public KeyException(Kvrpcpb.KeyError keyErr) { super("Key exception occurred " + keyErr.toString()); this.keyErr = keyErr; }

5. What are your Java Client and TiKV versions? (Required)

  • Client Java: 3.3.5
  • TiKV:

jackjeyis avatar Jan 18 '24 06:01 jackjeyis