Yicong-Huang opened a new issue, #4727:
URL: https://github.com/apache/texera/issues/4727

   ### What happened?
   
   
`common/workflow-core/src/main/scala/org/apache/texera/amber/util/VirtualIdentityUtils.scala::getWorkerIndex`
 only matches `workerNamePattern` with no fallback case. Passing any non-worker 
`ActorVirtualIdentity` (e.g. `CONTROLLER`, `SELF`) raises `scala.MatchError` at 
runtime. Peer methods (`getPhysicalOpId`, `toShorterString`) handle the 
unmatched case gracefully — `getWorkerIndex` should likely do the same.
   
   ### How to reproduce?
   
   ```scala
   VirtualIdentityUtils.getWorkerIndex(ActorVirtualIdentity("CONTROLLER"))
   // scala.MatchError: CONTROLLER (of class java.lang.String)
   ```
   
   ### Version
   
   1.1.0-incubating (Pre-release/Master)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to