portworx / kvdb

Generic Key-Value interface
Apache License 2.0
40 stars 13 forks source link

Add retry on grpc.ContextDeadlineExceeded. Change RemoveMember API #63

Closed adityadani closed 5 years ago

adityadani commented 5 years ago

PR comprises of two changes

  1. Retry logic

    
    Etcd v3 returns both types of errors
  2. context.DeadlineExceeded log line: kvdb error: context deadline exceeded, retry count: 0

  3. grpc error code = DeadlineExceeded log line: cas: get after retry failed with error: rpc error: code = DeadlineExceeded desc = context deadline exceeded

  4. Add a new field ID in the MemberInfo struct.