Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CancellationException stack trace #15

Closed
mfateev opened this issue Feb 9, 2020 · 0 comments
Closed

Fix CancellationException stack trace #15

mfateev opened this issue Feb 9, 2020 · 0 comments

Comments

@mfateev
Copy link
Member

mfateev commented Feb 9, 2020

When an activity is cancelled the thrown CancellationException contains stack trace of the handleActivityTaskCanceled, not the caller of the activity:

[{"detailMessage":null,"stackTrace":"com.uber.cadence.internal.replay.ActivityDecisionContext.handleActivityTaskCanceled(ActivityDecisionContext.java:134)
com.uber.cadence.internal.replay.DecisionContextImpl.handleActivityTaskCanceled(DecisionContextImpl.java:280)
com.uber.cadence.internal.replay.ReplayDecider.processEvent(ReplayDecider.java:113)
com.uber.cadence.internal.replay.ReplayDecider.decideImpl(ReplayDecider.java:407)
com.uber.cadence.internal.replay.ReplayDecider.decide(ReplayDecider.java:359)
com.uber.cadence.internal.replay.ReplayDecisionTaskHandler.processDecision(ReplayDecisionTaskHandler.java:145)
com.uber.cadence.internal.replay.ReplayDecisionTaskHandler.handleDecisionTaskImpl(ReplayDecisionTaskHandler.java:125)
com.uber.cadence.internal.replay.ReplayDecisionTaskHandler.handleDecisionTask(ReplayDecisionTaskHandler.java:86)
com.uber.cadence.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:257)
com.uber.cadence.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:229)
com.uber.cadence.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
","suppressedExceptions":[],"class":"java.util.concurrent.CancellationException"}],
@mfateev mfateev closed this as completed Apr 7, 2020
robzienert pushed a commit to robzienert/sdk-java that referenced this issue Jul 23, 2021
…nflx-temporal-sdk:msrc-WRAPPER-RELEASE-for-master to master

* commit '23a79b74c2de5e59e104da27d50e720d11536a6d':
  Update Nebula to 7.8.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant