You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2020/12/06 00:48:00 UTC

[jira] [Resolved] (RATIS-1206) Use atomic update instead of synchronized in AppenderDaemon

     [ https://issues.apache.org/jira/browse/RATIS-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

runzhiwang resolved RATIS-1206.
-------------------------------
    Resolution: Fixed

> Use atomic update instead of synchronized in AppenderDaemon
> -----------------------------------------------------------
>
>                 Key: RATIS-1206
>                 URL: https://issues.apache.org/jira/browse/RATIS-1206
>             Project: Ratis
>          Issue Type: Improvement
>          Components: server
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> In LogAppender.AppenderDaemon, it synchronized on a LifeCycle object.  Since LifeCycle is implemented using an AtomicReference, LifeCycle should provide some atomic operations to avoid external synchronization.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)