Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Double-Checked locking using volatile (apache#8475)
```java private void createSystemTopicFactoryIfNeeded() { if (namespaceEventsSystemTopicFactory == null) { synchronized (this) { if (namespaceEventsSystemTopicFactory == null) { try { namespaceEventsSystemTopicFactory = new NamespaceEventsSystemTopicFactory(pulsarService.getClient()); } catch (PulsarServerException e) { log.error("Create namespace event system topic factory error.", e); } } } } } ``` The creation of `namespaceEventsSystemTopicFactory` uses double-check locking, but does not add volatile
- Loading branch information