-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[davinci] Fix a NullPointerException when SIT processes a consumer ac…
…tion (#1346) * [davinci] Fix a NullPointerException when SIT processes a consumer action A NPE can happen when: 1. A store received standby to leader transition, but yet finished, thus VeniceWriterLazyRef remains null. 2. Later, it receives LEADER to STANDBY transition and today's code can hit this NPE. This fix add a NPE check and also mark VeniceWriterLazyRef to volatile for visibility across threads.
- Loading branch information
Showing
3 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters