HDFS-10932. Ozone: fix XceiverClient slow shutdown. Contributed by Chen Liang.

This commit is contained in:
Anu Engineer 2016-09-30 17:12:43 -07:00 committed by Owen O'Malley
parent 4c95c3d6ab
commit d0422a74ea

View File

@ -36,6 +36,7 @@
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
/**
* A Client for the storageContainer protocol.
@ -96,7 +97,7 @@ public void connect() throws Exception {
@Override
public void close() {
if(group != null) {
group.shutdownGracefully();
group.shutdownGracefully(0, 0, TimeUnit.SECONDS);
}
if (channelFuture != null) {