Repository: ignite Updated Branches: refs/heads/master 1e77c3b0d -> ed9c1377c
IGNITE-10300 Fixed incorrect error message after authentication retries - Fixes #5425. Signed-off-by: Alexey Goncharuk <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ed9c1377 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ed9c1377 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ed9c1377 Branch: refs/heads/master Commit: ed9c1377c0d38bb1bb3352b2b943e69e776d917c Parents: 1e77c3b Author: Pavel Voronkin <[email protected]> Authored: Tue Dec 11 16:40:07 2018 +0300 Committer: Alexey Goncharuk <[email protected]> Committed: Tue Dec 11 16:43:10 2018 +0300 ---------------------------------------------------------------------- .../apache/ignite/internal/commandline/CommandHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/ed9c1377/modules/core/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java b/modules/core/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java index da6495f..2a71800 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java @@ -2704,8 +2704,13 @@ public class CommandHandler { tryConnectMaxCount--; } - else + else { + if (tryConnectMaxCount == 0) + throw new GridClientAuthenticationException("Authentication error, maximum number of " + + "retries exceeded"); + throw e; + } } } return EXIT_CODE_OK;
