Skip to content

Commit 72c1f6f

Browse files
committed
update retry exception
1 parent 43af5ba commit 72c1f6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/rm/service/impl

linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/rm/service/impl/DefaultResourceManager.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package org.apache.linkis.manager.rm.service.impl
1919

2020
import com.google.common.collect.Lists
2121
import org.apache.linkis.common.ServiceInstance
22+
import org.apache.linkis.common.exception.LinkisRetryException
2223
import org.apache.linkis.common.utils.{Logging, Utils}
2324
import org.apache.linkis.governance.common.conf.GovernanceCommonConf
2425
import org.apache.linkis.manager.common.conf.RMConfiguration
@@ -590,7 +591,7 @@ class DefaultResourceManager extends ResourceManager with Logging with Initializ
590591
labelContainer.setCurrentLabel(label.asInstanceOf[Label[_]])
591592
val locked = resourceLockService.tryLock(labelContainer, timeOut)
592593
if (!locked) {
593-
throw new RMWarnException(110022, s"try to lock resource label ${labelContainer.getCurrentLabel} over $timeOut ms, please wait a moment and try again!")
594+
throw new LinkisRetryException(110022, s"try to lock resource label ${labelContainer.getCurrentLabel} over $timeOut ms, please wait a moment and try again!")
594595
}
595596
case _ =>
596597
}

0 commit comments

Comments
 (0)