public void close() {
    rocksDB.close();
    guavaCache.cleanUp();
    if (writeRocksDBService != null) {
      writeRocksDBService.shutdown();
      writeRocksDBService = null;
    }
    closed.set(true);
    if (lookupRecordsQueue != null) {
      lookupRecordsQueue.clear();
      lookupRecordsQueue = null;
    }
  }
Closes the RocksDB instance and cleans up the Guava cache.

<p>Additionally, it shuts down the write-service and clears the RocksDB record queue if they
exist.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/lookup/RocksDBCacheState.java