szetszwo commented on PR #4866:
URL: https://github.com/apache/ozone/pull/4866#issuecomment-1585538596
@adoroszlai , how about we clear the cache in `close`? Then, it will also
work for OM, datanodes and other cases.
```java
+++
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBBatchOperation.java
@@ -350,6 +350,7 @@ public void commit(RocksDatabase db, ManagedWriteOptions
writeOptions)
@Override
public void close() {
debug(() -> String.format("%s: close", name));
+ opCache.clear();
writeBatch.close();
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]