Lifecycle states should be thread safe
Open
triage/week-33
type/improvement
- Dominant language
- Java
- Stars
- 2k
- Forks
- 976
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 7
Description
LifeCycle states are currently not thread safe:
https://github.com/apache/bookkeeper/blob/245f0c03cdfca0c5cc2ae1aeab3d22765ec3fad0/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/component/Lifecycle.java
However, they can be accessed by both the main thread and the shutdown hook, which implies that they should be threadsafe.
Contributor guide
Assessment
This issue has not been assessed yet.