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

Fix/stuck replication #459

Merged
merged 3 commits into from
Apr 2, 2018
Merged

Fix/stuck replication #459

merged 3 commits into from
Apr 2, 2018

Conversation

rachedbenmustapha
Copy link
Contributor

Fixes mongdb oplog consumer:

  • Un-hardcode mongodb database name
  • The mongodb transform stream would never actually emit any objects to the extensions
  • Remove use of global variable

The mongodb transform stream would never actually emit any objects
to the extensions.
Copy link
Contributor

@JianqinWang JianqinWang left a comment

Choose a reason for hiding this comment

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

🙏 thank you Rached!

const limit = params.limit || 10000;
const startIDandSeq = params.startSeq.toString().split('|');
const startSeq = parseInt(startIDandSeq[0], 10) || 0;
lastEndID = startIDandSeq[1];
const lastEndID = startIDandSeq[1];
Copy link
Contributor

@alexanderchan-scality alexanderchan-scality Apr 2, 2018

Choose a reason for hiding this comment

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

should this change the this.lastEndID? just wondering, in the the old code, the global lastEndID is reassigned.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are in 2 separate classes, and the global was removed.

@rahulreddy rahulreddy merged commit 82b4055 into master Apr 2, 2018
@rahulreddy rahulreddy deleted the fix/stuck-replication branch April 2, 2018 21:55
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.

5 participants