Skip to content

ft: ARSN-65 oplog pattern library #1719

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

Open
wants to merge 1 commit into
base: development/7.10
Choose a base branch
from

Conversation

vrancurel
Copy link
Contributor

Snapshot-scan-oplog pattern with state persistence for applications
requiring reading the oplog

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2022

Codecov Report

Merging #1719 (ef81d96) into development/8.1 (0dbdff3) will decrease coverage by 0.08%.
The diff coverage is 64.70%.

❗ Current head ef81d96 differs from pull request most recent head 144f713. Consider uploading reports for the commit 144f713 to get more accurate results

Impacted file tree graph

@@                 Coverage Diff                 @@
##           development/8.1    #1719      +/-   ##
===================================================
- Coverage            60.16%   60.08%   -0.09%     
===================================================
  Files                  192      193       +1     
  Lines                12254    12409     +155     
===================================================
+ Hits                  7373     7456      +83     
- Misses                4881     4953      +72     
Impacted Files Coverage Δ
lib/storage/metadata/oplog/OplogInterface.js 26.78% <26.78%> (ø)
lib/storage/metadata/oplog/PersistMemInterface.js 73.68% <73.68%> (ø)
...ib/storage/metadata/oplog/BucketdOplogInterface.js 78.74% <78.74%> (ø)
lib/algos/set/SortedSet.js
lib/algos/set/ArrayUtils.js
lib/models/ObjectMD.js 83.05% <0.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b45124...144f713. Read the comment docs.

@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch from 5edb748 to 95e70fc Compare February 17, 2022 02:29
@vrancurel
Copy link
Contributor Author

Obviously need to unit test PersistFile, PersistMem and MongoOplogInterface

@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch 4 times, most recently from 028e908 to e99867c Compare February 18, 2022 01:27
Copy link
Contributor

@tmacro tmacro left a comment

Choose a reason for hiding this comment

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

Found some stray comments but looks good overall

@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch 3 times, most recently from ef81d96 to 144f713 Compare March 8, 2022 21:56
@vrancurel vrancurel changed the base branch from development/8.1 to development/7.10 March 8, 2022 21:56
@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch from 144f713 to fc0a643 Compare March 8, 2022 22:00
@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch from fc0a643 to f2aeccd Compare March 14, 2022 21:53
return cb(errors.NotImplemented);
}
const filterName = filter.filterName;
async.waterfall([
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use async await now

const _item = {};
_item.bucketName = seqs[i].db;
_item.key = seqs[i].entries[j].key;
if (seqs[i].entries[j].type !== undefined &&
Copy link
Contributor

Choose a reason for hiding this comment

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

This block is tabbed over quite a bit, could we break this out or maybe use some guard clauses here? I can't even tell what is going on anymore.

@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch 3 times, most recently from 8b8122e to 1266746 Compare April 12, 2022 00:42
Snapshot-scan-oplog pattern with state persistence for applications
requiring reading the oplog
@vrancurel vrancurel force-pushed the ft/ARSN-65-oplog-pattern-library branch from 1266746 to 108b1b3 Compare April 12, 2022 01:13
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.

4 participants