You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/04/22 12:43:45 UTC

[GitHub] [ignite-3] sashapolo commented on a diff in pull request #790: IGNITE-16890 Fix JVM crash

sashapolo commented on code in PR #790:
URL: https://github.com/apache/ignite-3/pull/790#discussion_r856190524


##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/storage/impl/RocksDbSharedLogStorage.java:
##########
@@ -532,11 +548,13 @@ private void addConfBatch(LogEntry entry, WriteBatch batch) throws RocksDBExcept
      */
     private boolean executeBatch(WriteBatchTemplate template) {
         this.readLock.lock();
-        if (this.db == null) {
+
+        if (stopped) {

Review Comment:
   I would prefer moving this part under the try-finally block



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org