Cancel retry if the error is autheticate failed (#8058)

---

Fixes #7929

*Motivation*

We shouldn't retry to connect to the server if the client has authenticate error.
1 file changed
tree: 9b31cc892d0c04d754df249d2f79dcedd1dad4aa
  1. distribution/
  2. docker/
  3. tests/