Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-11444 [full-gc] Save document id and empty properties names before deletion #2038

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

daniancu
Copy link

@daniancu daniancu commented Jan 30, 2025

Introduce a FullGcBin class as a wrapper around DocumentStore that expose two methods used to clean garbage from NODES collection

public int remove(Map<String, Long> orphanOrDeletedRemovalMap)
public List<NodeDocument> findAndUpdate(List<UpdateOp> updateOpList)

When enabled
Each methods saves the document ID or empty properties names (that will be deleted) to a separate _bin collection as a BinDocument then delegates deletion to DocumentStore

When disabled (default)
Each method delegates directly to DocumentStore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant