[ https://issues.apache.org/jira/browse/RATIS-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013818#comment-18013818 ]
Tian Jiang edited comment on RATIS-2321 at 8/14/25 1:41 AM: ------------------------------------------------------------ Not very recently, maybe in half a month. Well, I am a committer from Apache IoTDB, and you know that it is required not to use any SNAPSHOT in a release by the ASF. I think I may start this discussion a week before our release. Is that okay for you? was (Author: jt2594838): Not very recently, maybe in a month or even later. Well, I am a committer from Apache IoTDB, and you know that it is required not to use any SNAPSHOT in a release by the ASF. I think I may start this discussion a week or half a month before our release. Is that okay for you? > ServerState NPE when changing leader continuously > ------------------------------------------------- > > Key: RATIS-2321 > URL: https://issues.apache.org/jira/browse/RATIS-2321 > Project: Ratis > Issue Type: Bug > Components: server > Affects Versions: 3.2.0 > Reporter: Tian Jiang > Assignee: Tian Jiang > Priority: Major > Fix For: 3.2.1 > > Attachments: image-2025-08-12-16-52-21-717.png, > image-2025-08-12-16-53-56-259.png > > Time Spent: 20m > Remaining Estimate: 0h > > Dear developers, > I encountered an NPE when using Ratis. It says: > !image-2025-08-12-16-52-21-717.png! > The related code is here (at commit RATIS-2317. Move acquire > PendingRequestPermit out of synchronized block in > RaftServerImpl#appendTransaction. (#1275)): > !image-2025-08-12-16-53-56-259.png! > When the leader changes, the lasterNoLeaderTime is set to null. > If the leader changes again, without being set to a null leader first, then > the variable `previous` will be null, which triggers an NPE. -- This message was sent by Atlassian Jira (v8.20.10#820010)