Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohehuhu committed Mar 19, 2024
1 parent e3e0087 commit 1037e0a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,11 @@ private[v1] class AdminResource extends ApiRequestContext with Logging {
engineNodes.foreach { node =>
val nodePath = s"$engineSpace/$node"
if (forceKill) {
val refIds = discoveryClient.getServiceNodesInfo(nodePath)
.flatMap(_.attributes.get("refId"))
.filter(StringUtils.isNotBlank(_))
val refIds = node.split(";")
.flatMap(_.split("=", 2) match {
case Array("refId", value) if StringUtils.isNotBlank(value) => Some(value)
case _ => None
})

refIds.foreach(refId => {
val applicationManagerInfo = ApplicationManagerInfo(
Expand Down

0 comments on commit 1037e0a

Please sign in to comment.