[
https://issues.apache.org/jira/browse/RATIS-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rui Wang resolved RATIS-2803.
-----------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
> Change GrpcLogAppender.appendEntriesIndex to volatile and drop the readlock
> ---------------------------------------------------------------------------
>
> Key: RATIS-2803
> URL: https://issues.apache.org/jira/browse/RATIS-2803
> Project: Ratis
> Issue Type: Improvement
> Components: server
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
> Fix For: 3.4.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Change `GrpcLogAppender.appendEntriesIndex` to `volatile` and drop the
> readlock.
> We can do it because the getter is only used in testing, and the testing only
> needs to see the latest written complete value.
> This will make the code cleaner.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)