captainzmc commented on PR #667: URL: https://github.com/apache/ratis/pull/667#issuecomment-1262400818
Hi @szetszwo, I wonder if we can achieve this PR in another way. For example, we still call [statemachine.Initialize](https://github.com/apache/ratis/pull/667/files#diff-62ccf21408c07a3fcfe1c3e3f7d5cdff22a8efbcdea9eacae3fe14351c404af3L140) in the ServerState constructor. However, we can release the lock after using it in RaftStorageImpl's Initialize. At the [start](https://github.com/apache/ratis/pull/667/files#diff-ad3a60b7e17aef8c1e813168c5ebc591dc7259b2427d8870a95a77c010e5692dR304) we can reacquire the directory lock. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
