Created
July 25, 2015 08:41
-
-
Save shijinkui/7fa0d4529d58b3c2f160 to your computer and use it in GitHub Desktop.
scala promise 中netty channel 连接断开
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val promise = Promise[ExecResult]() | |
// stop spark cluster | |
SparkUtil.stop(promise) | |
log.info("=========stopping spark cluster==========" + msg) | |
val f = promise.future | |
f onComplete { | |
case Success(x) => | |
log.info("===================2222 " + x) | |
case Failure(x) => | |
log.error("exec stop spark fail, retry, $msg") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment