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

Support having multiple crr locations configured in the queueProcessor #2632

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

Kerkesni
Copy link
Contributor

@Kerkesni Kerkesni commented Mar 24, 2025

QueueProcessor currently sets the destination host to the host of the last crr site in the bootstrap list, so when having multiple crr locations configured this will not work.

Issue: BB-662

@bert-e
Copy link
Contributor

bert-e commented Mar 24, 2025

Hello kerkesni,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

Copy link

codecov bot commented Mar 24, 2025

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.

Project coverage is 73.47%. Comparing base (df0d3fc) to head (b11a9f9).
Report is 17 commits behind head on development/9.1.

Files with missing lines Patch % Lines
extensions/replication/queueProcessor/task.js 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
...sions/replication/queueProcessor/QueueProcessor.js 72.94% <100.00%> (-0.03%) ⬇️
extensions/replication/tasks/CopyLocationTask.js 72.91% <100.00%> (+8.99%) ⬆️
...xtensions/replication/tasks/MultipleBackendTask.js 59.43% <100.00%> (+6.14%) ⬆️
extensions/replication/tasks/ReplicateObject.js 91.83% <100.00%> (-0.07%) ⬇️
lib/Config.js 74.40% <100.00%> (+0.20%) ⬆️
extensions/replication/queueProcessor/task.js 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Bucket Notification 75.37% <ø> (ø)
Core Library 79.42% <100.00%> (+0.02%) ⬆️
Ingestion 70.14% <ø> (ø)
Lifecycle 76.88% <ø> (ø)
Oplog Populator 85.06% <ø> (ø)
Replication 61.15% <81.25%> (+1.88%) ⬆️
Bucket Scanner 85.60% <ø> (ø)
@@                 Coverage Diff                 @@
##           development/9.1    #2632      +/-   ##
===================================================
+ Coverage            73.08%   73.47%   +0.39%     
===================================================
  Files                  201      201              
  Lines                13413    13403      -10     
===================================================
+ Hits                  9803     9848      +45     
+ Misses                3600     3545      -55     
  Partials                10       10              
Flag Coverage Δ
api:retry 9.49% <0.00%> (+<0.01%) ⬆️
api:routes 9.30% <0.00%> (+<0.01%) ⬆️
bucket-scanner 85.60% <ø> (ø)
ft_test:queuepopulator 8.91% <0.00%> (+<0.01%) ⬆️
ingestion 12.56% <0.00%> (+<0.01%) ⬆️
lib 7.34% <0.00%> (+0.01%) ⬆️
lifecycle 18.73% <0.00%> (+0.01%) ⬆️
notification 1.06% <0.00%> (+<0.01%) ⬆️
replication 18.60% <64.70%> (-0.08%) ⬇️
unit 49.29% <76.47%> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Kerkesni Kerkesni changed the title support multiple crr location in the queueProcessor Support having multiple crr locations configured in the queueProcessor Mar 24, 2025
@Kerkesni Kerkesni force-pushed the improvement/BB-662 branch 3 times, most recently from 53c9fcd to 09fd95f Compare March 27, 2025 12:37
@Kerkesni Kerkesni changed the base branch from development/9.0 to improvement/BB-647 March 27, 2025 12:37
@scality scality deleted a comment from bert-e Mar 27, 2025
Base automatically changed from improvement/BB-647 to development/9.1 March 27, 2025 13:21
@bert-e
Copy link
Contributor

bert-e commented Mar 27, 2025

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

Copy link
Contributor

@williamlardier williamlardier left a comment

Choose a reason for hiding this comment

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

Changes LGTM (codecov still reports that all lines were not covered, yet the comment says the opposite...)

@Kerkesni
Copy link
Contributor Author

The comments point to a previous run of codecov which is weird, but i added tests explicitly for those cases so they should be covered.

@scality scality deleted a comment from bert-e Mar 28, 2025
@Kerkesni Kerkesni force-pushed the improvement/BB-662 branch 4 times, most recently from 8ae0788 to 622f266 Compare April 3, 2025 16:47
@Kerkesni Kerkesni requested a review from francoisferrand April 4, 2025 06:03
Comment on lines +316 to 317
replicationEndpoint: this.bootstrapList.find(endpoint => endpoint.site === site),
};
Copy link
Contributor

Choose a reason for hiding this comment

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

probably not such a big deal today with limited number of locations, but could become one: we are looping through the whole list every time..... even though actually we are actually already looping over every site (looking at task.js)

        const bootstrapList = config.getBootstrapList();
        const siteNames = bootstrapList.map(i => i.site);

        // initialize per site destination configs
        const destConfig = {};
        siteNames.forEach(site => {
            destConfig[site] = config.getReplicationSiteDestConfig(site);
        });

probably not something we can change in the API, but when loading the config is could do some reprocessing to just linearly build just once both the list of sites and replicationEndpoints.

@Kerkesni Kerkesni force-pushed the improvement/BB-662 branch from 622f266 to 6a787b4 Compare April 8, 2025 10:48
QueueProcessor currently sets the destination host to
the host of the last crr site in the bootstrap list.
This works in the 7.x branch as we filter the bootstrap
list to only contain the relevant site. This filtering
was done in the entrypoint of the QueueProcessor (i.e
task.js) which changed in 8.x and 9.x.

Issue: BB-662
@Kerkesni Kerkesni force-pushed the improvement/BB-662 branch from 6a787b4 to b11a9f9 Compare April 8, 2025 11:48
@Kerkesni
Copy link
Contributor Author

Kerkesni commented Apr 8, 2025

/approve

@bert-e
Copy link
Contributor

bert-e commented Apr 8, 2025

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/9.1

The following branches will NOT be impacted:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.6
  • development/9.0

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve

@bert-e
Copy link
Contributor

bert-e commented Apr 8, 2025

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.1

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.6
  • development/9.0

Please check the status of the associated issue BB-662.

Goodbye kerkesni.

@bert-e bert-e merged commit 774124a into development/9.1 Apr 8, 2025
10 checks passed
@bert-e bert-e deleted the improvement/BB-662 branch April 8, 2025 12:44
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