INTEGRATION [PR#2635 > development/9.0] BB-676: Ignore bucket migration oplog operations#2640
Merged
bert-e merged 6 commits intodevelopment/9.0from Apr 8, 2025
Merged
Conversation
In the context of handling bucket migration
in SUR, we have introduced a new type of
operations that appear in the Metadata oplog
and are consumed by Backbeat.
These are “appended” operations, they appear
in the oplog in order to pass information to oplog
consumers, but do not incur any change in the database state.
The format of new operation type is (using an example):
{
"db": "some-bucket",
"method": 10,
"entries": [
{
"type": "bucket_migration_stage",
"value": "{ ... }"
}
],
"timestamp": "2025-04-03T06:36:50.401Z"
},
method: 10 is a new method type, APPEND_TO_LOG.
To make sure that Backbeat ignores these operations
and any operations added in the future
(until we excplictly want to support new operations),
this change adds a check for operations that are known
and supported by Backbeat.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 4 files with indirect coverage changes
@@ Coverage Diff @@
## development/9.0 #2640 +/- ##
===================================================
- Coverage 73.16% 73.08% -0.09%
===================================================
Files 201 201
Lines 13373 13377 +4
===================================================
- Hits 9785 9776 -9
- Misses 3578 3591 +13
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
In the context of handling bucket migration
in SUR, we have introduced a new type of
operations that appear in the Metadata oplog
and are consumed by Backbeat.
These are “appended” operations, they appear
in the oplog in order to pass information to oplog
consumers, but do not incur any change in the database state.
The format of new operation type is (using an example):
{
"db": "some-bucket",
"method": 10,
"entries": [
{
"type": "bucket_migration_stage",
"value": "{ ... }"
}
],
"timestamp": "2025-04-03T06:36:50.401Z"
},
method: 10 is a new method type, APPEND_TO_LOG.
To make sure that Backbeat ignores these operations
and any operations added in the future
(until we excplictly want to support new operations),
this change adds a check for operations that are known
and supported by Backbeat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request has been created automatically.
It is linked to its parent pull request #2635.
Do not edit this pull request directly.
If you need to amend/cancel the changeset on branch
w/9.0/improvement/BB-676, please follow thisprocedure:
$ git fetch $ git checkout w/9.0/improvement/BB-676 $ # <amend or cancel the changeset by _adding_ new commits> $ git push origin w/9.0/improvement/BB-676Please always comment pull request #2635 instead of this one.