carloea2 opened a new pull request, #8098: URL: https://github.com/apache/texera/pull/8098
### What changes were proposed in this PR? Treat an absent or null collaboration lock holder as an unheld lock and grant it to the requester. Before: AcquireLockRequest raised NoSuchElementException and returned no event. After: the requester receives LockGrantedEvent and becomes the holder. ### Any related issues, documentation, discussions? Closes #8097 ### How was this PR tested? The unchanged localhost service timed out and logged NoSuchElementException. The fixed staged service returned LockGrantedEvent for both an absent holder entry and a null holder marker, with no server errors. A regression test was written first. Both new cases failed before the production change. The final focused suite passes all 28 tests. ``` sbt "set DAO / Compile / sourceGenerators := Seq.empty" "WorkflowExecutionService / Test / testOnly org.apache.texera.web.resource.CollaborationResourceSpec" sbt "set DAO / Compile / sourceGenerators := Seq.empty" "scalafixAll --check" sbt scalafmtCheckAll ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex, GPT-5 -- 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]
