Shawyeok commented on issue #19250:
URL: https://github.com/apache/pulsar/issues/19250#issuecomment-2009165347

   
   The ci artifact is expired 
https://github.com/apache/pulsar/actions/runs/7299672614
   
   In rocksdb, operating on a closed db will get crash, there is a related 
issue: https://github.com/facebook/rocksdb/issues/5234
   
   Below is a demo to reproduce:
   ```java
   import org.junit.rules.TemporaryFolder;
   import org.rocksdb.Options;
   import org.rocksdb.RocksDB;
   import org.rocksdb.RocksDBException;
   import org.rocksdb.RocksIterator;
   
   import java.io.IOException;
   
   class Scratch {
   
       static {
           RocksDB.loadLibrary();
       }
   
       public static void main(String[] args) throws IOException, 
RocksDBException {
           TemporaryFolder tempFolder = new TemporaryFolder();
           tempFolder.create();
           String path = tempFolder.newFolder().toString();
           Options options = new Options();
           options.setCreateIfMissing(true);
           RocksDB db = RocksDB.open(options, path);
           byte[] key = {0x1};
           byte[] value = {0x2};
           db.put(key, value);
   
           RocksIterator it = db.newIterator();
           db.close();
   
           it.value(); // crashes the JVM
       }
   }
   ```
   


-- 
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]

Reply via email to