Skip to content

Commit

Permalink
HBASE-24747 Log an ERROR if HBaseSaslRpcServer initialisation fails w…
Browse files Browse the repository at this point in the history
…ith an uncaught exception (apache#2079)

Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Josh Elser <[email protected]>
  • Loading branch information
wchevreuil authored Jul 17, 2020
1 parent 1781185 commit bd42c75
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,14 @@ public void saslReadAndProcess(ByteBuff saslToken) throws IOException,
byte[] replyToken;
try {
if (saslServer == null) {
saslServer =
try {
saslServer =
new HBaseSaslRpcServer(provider, rpcServer.saslProps, rpcServer.secretManager);
} catch (Exception e){
RpcServer.LOG.error("Error when trying to create instance of HBaseSaslRpcServer "
+ "with sasl provider: " + provider, e);
throw e;
}
RpcServer.LOG.debug("Created SASL server with mechanism={}",
provider.getSaslAuthMethod().getAuthMethod());
}
Expand Down

0 comments on commit bd42c75

Please sign in to comment.