Skip to content

Conversation

@hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

This change is to log failure if there is any problem in closing RocksDB instance to investigate to memory leak like

2023-12-18 19:21:06,485 WARN [Finalizer]-org.apache.hadoop.hdds.utils.db.managed.ManagedRocksObjectUtils: Checkpoint is not closed properly
2023-12-18 19:21:06,486 WARN [Finalizer]-org.apache.hadoop.ozone.om.OmSnapshot: org.apache.hadoop.hdds.utils.db.RDBStore@4e5ac786 is not closed properly. snapshotName: snap-5griw

What is the link to the Apache JIRA

HDDS-9986

How was this patch tested?

Existing unit tests.

@hemantk-12 hemantk-12 added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Dec 21, 2023
Copy link
Member

@aswinshakil aswinshakil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch @hemantk-12. LGTM+1. Not sure why we were closing the RockDB instance silently. Since RocksDB is critical we need to have these logs incase close() throws an exception.

@hemantk-12 hemantk-12 merged commit 4cda788 into apache:master Dec 22, 2023
@hemantk-12
Copy link
Contributor Author

Thanks @aswinshakil for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants