Ma77Ball opened a new issue, #9152:
URL: https://github.com/apache/texera/issues/9152

   ### What happened?
   `AmberRuntime.scheduleCallThroughActorSystem` and 
`scheduleRecurringCallThroughActorSystem` dereference `_actorSystem.scheduler` 
directly, so any call made before the runtime is started or after it has shut 
down throws a `NullPointerException`. The most visible path is 
`WorkflowLifecycleManager.registerCleanUpOnStateChange`, whose subscriber 
schedules a cleanup deadline the moment the execution state store replays its 
current state to a new subscriber. When that fires without a started runtime, 
the NPE escapes the RxJava `subscribe` (no `onError` handler) as an 
`OnErrorNotImplementedException`, surfacing as a flaky failure in suites like 
`SyncExecutionResourceSpec` that share the process-wide `AmberRuntime` 
singleton.
   
   ### How to reproduce?
   Call `AmberRuntime.scheduleCallThroughActorSystem(1.second)(())` while 
`AmberRuntime` is not started (its `_actorSystem` is null); it throws a 
NullPointerException on `_actorSystem.scheduler`. In the full amber suite it 
manifests intermittently when a prior spec shuts the shared runtime down before 
`SyncExecutionResourceSpec` runs.
   
   ### Version/Branch
   main (apache/texera), commit 7fb65b51c


-- 
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