Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIFI-4436: Fixed bug that causes a deadlock when changing version of …
…a PG. Before this patch, an update would obtain a write lock and then recurse downward through the child groups, obtaining write locks to update variable registries. At the same time, if a Processor is obtaining a Controller Service, it will obtain a Read Lock on the Process Group and then recurse upward through the ancestors, obtaining Read Lock. If the timing is right, we can have a group obtain a read lock, then try to obtain its parent's Read Lock. At the same time, an update to the group could hold the Write Lock on the Process Group and attempt to obtain a Write Lock on child (where the Processor lives), resulting in a deadlock. Signed-off-by: Matt Gilman <matt.c.gilman@gmail.com>
- Loading branch information