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

MANTA-4932 rebalancer should not start jobs if snaplinks are enabled #59

Merged
merged 18 commits into from
Mar 10, 2020

Conversation

rjloura
Copy link
Contributor

@rjloura rjloura commented Feb 28, 2020

I still have some testing to do but I wanted to get this posted so people can start to familiarize themselves with the change.

@rjloura rjloura requested a review from rhb2 February 28, 2020 20:18
rhb2
rhb2 previously approved these changes Mar 2, 2020
Copy link
Contributor

@rhb2 rhb2 left a comment

Choose a reason for hiding this comment

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

Still wrapping my head around the entirety of this change. Looks pretty good. I had some questions mostly. Also, if I'm understanding it correctly, it looks like most of this is really about being able to reload config information in a running process whenever changes are received. The actual code to address MANTA-4932 is relatively small. Is that right?

manager/Cargo.toml Outdated Show resolved Hide resolved
manager/src/config.rs Outdated Show resolved Hide resolved
manager/src/config.rs Outdated Show resolved Hide resolved
manager/src/config.rs Show resolved Hide resolved
manager/src/config.rs Outdated Show resolved Hide resolved
manager/src/config.rs Outdated Show resolved Hide resolved
@rjloura rjloura force-pushed the MANTA-4932_snaplinks branch from 1dbae13 to 4243943 Compare March 9, 2020 16:18
Comment on lines +208 to +218

trace!("Got picker response: {:#?}", response);

// Storinfo, or our connection to it, is sick. So instead of
// breaking out of the loop and possibly returning partial results we
// return an empty Vec.
if response.status() != StatusCode::OK {
error!("Could not contact storinfo service {:#?}", response);
return vec![];
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the part that was added for "MANTA-4961 rebalancer job should not start if storinfo is unavailable"

@rjloura rjloura requested a review from rhb2 March 9, 2020 16:21
rhb2
rhb2 previously approved these changes Mar 9, 2020
@rjloura rjloura merged commit 726db93 into master Mar 10, 2020
@rjloura rjloura deleted the MANTA-4932_snaplinks branch March 10, 2020 15:36
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