kafka/core
Rajini Sivaram eaa14a8a68
KAFKA-12730; Avoid duplicate logout if Kerberos login fails (#10611)
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>
2021-04-29 14:32:50 +01:00
..
src KAFKA-12730; Avoid duplicate logout if Kerberos login fails (#10611) 2021-04-29 14:32:50 +01:00
.gitignore