Skip to content

Commit

Permalink
HBASE-27185 Addendum fix TestShadeSaslAuthenticationProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Jul 28, 2022
1 parent a3eeab8 commit 811f0e7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.apache.hadoop.hbase.security.NettyHBaseRpcConnectionHeaderHandler;
import org.apache.hadoop.hbase.security.NettyHBaseSaslRpcClientHandler;
import org.apache.hadoop.hbase.security.SaslChallengeDecoder;
import org.apache.hadoop.hbase.util.NettyFutureUtils;
import org.apache.hadoop.hbase.util.Threads;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.yetus.audience.InterfaceAudience;
Expand Down Expand Up @@ -216,8 +217,9 @@ private void saslNegotiate(final Channel ch) {
failInit(ch, e);
return;
}
ch.pipeline().addFirst(new SaslChallengeDecoder(), saslHandler);
saslPromise.addListener(new FutureListener<Boolean>() {
ch.pipeline().addFirst("SaslDecoder", new SaslChallengeDecoder()).addAfter("SaslDecoder",
"SaslHandler", saslHandler);
NettyFutureUtils.addListener(saslPromise, new FutureListener<Boolean>() {

@Override
public void operationComplete(Future<Boolean> future) throws Exception {
Expand Down

0 comments on commit 811f0e7

Please sign in to comment.