mirror of https://github.com/apache/kafka.git
From Java 9 onwards, LoginContext#logout() throws an NPE if invoked multiple times due to https://bugs.openjdk.java.net/browse/JDK-8173069. KerberosLogin currently attempts logout followed by login in a background refresh thread. If login fails we retry the same sequence. As a result, a single login failure prevents subsequent re-login. And clients will never be able to authenticate successfully after the first failure, until the process is restarted. The commit checks if logout is necessary before invoking LoginContext#logout(). Also adds a test for this case. Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||