KAFKA-15823: disconnect from controller on AuthenticationException
This PR changes the handling of authenticationException on a request from the node to the controller.
We disconnect controller connection and invalidate the cache so that the next run of the thread will establish a connection with the (potentially) updated controller.
CC: @hachikuji since you've looked into the response handler recently. Can you please review this PR?
This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch)
If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.
This still needs a review from a committer.
@mimaison @mumrah @rondagostino @showuon
Failed tests are unrelated.