Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,11 @@ object YarnSessionClient extends YarnClientTrait {
} catch {
case e: Exception =>
logError(s"start flink session fail in ${deployRequest.deployMode} mode")
e.printStackTrace()
throw e
} finally {
Utils.close(client, clusterDescriptor)
}
}

def shutdown(shutDownRequest: ShutDownRequest): ShutDownResponse = {
var clusterDescriptor: YarnClusterDescriptor = null
var client: ClusterClient[ApplicationId] = null
Expand Down Expand Up @@ -203,11 +201,9 @@ object YarnSessionClient extends YarnClientTrait {
} catch {
case e: Exception =>
logError(s"shutdown flink session fail in ${shutDownRequest.deployMode} mode")
e.printStackTrace()
throw e
} finally {
Utils.close(client, clusterDescriptor)
}
}

}
Loading