apache / apache/bookkeeper

Lifecycle states should be thread safe

Open
#1,188 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.