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

81816 clouseau for clustered purge improvements #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

chguocloudant
Copy link

@chguocloudant chguocloudant commented Feb 16, 2017

Overview

The primary purpose of clustered purge is to clean databases that have multiple deleted tombstones or single documents that contain large numbers of conflicts. But it can also be used to purge any document (deleted or non-deleted) with any number of revisions.

With PR apache/couchdb#1187, the purge API and update on secondary index are implemented. The current PR is in charge of updating search index according to purge tree and record purge history in local purge document to make sure that the search index update is not out of date.

Testing recommendations

JIRA issue number

https://issues.apache.org/jira/browse/COUCHDB-3326

Related Issues or Pull Requests

apache/couchdb#1186
apache/couchdb#1187

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

- add 2 APIs(set_purge_seq, get_purge_seq).
- keep purge_seq in clouseau.
- adjust the commit logic to update purge seq.
- update the test code.

BugzID: 68280
    - adjust the commit logic to update purge seq.

    BugzID: 68280
- use pendingPurgeSeq in set_purge_seq and get_purge_seq.
- update purgeSeq when pengdingPurgeSeq is committed.

BugzId: 68280
- add a new api to get root dir.

BugzId: 81816
@@ -109,6 +109,8 @@ class IndexManagerService(ctx: ServiceContext[ConfigurationArgs]) extends Servic
case pid =>
('ok, pid)
}
case ('get_root_dir) =>
('ok, rootDir.getAbsolutePath())
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, it would be nice if you can provide a comment where this will be used.

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.

2 participants