Skip to content

Conversation

Spikhalskiy
Copy link
Contributor

@Spikhalskiy Spikhalskiy commented Aug 17, 2021

What was changed

Fixed unsafe publishing and access to WorkflowThreadImpl#thread by refactoring it out and using WorkflowThreadContext#currentThread

WorkflowThreadContext#currentThread is published and exposed in a thread-safe way

Deadlock detection code checks the thread status after waking up to ensure that it's in a correct state and the state didn't change between the wait timeout and acquiring the lock back.

  1. Closes NPE during performance testing #641

Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks for digging into this.

@Spikhalskiy Spikhalskiy merged commit 6d98270 into temporalio:master Aug 17, 2021
@Spikhalskiy Spikhalskiy deleted the issue-641 branch April 15, 2022 20:14
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

Successfully merging this pull request may close these issues.

NPE during performance testing

2 participants