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

Update strip_postcommit to remove all possible repl hooks. #589

Merged
merged 1 commit into from
May 23, 2014

Conversation

jonmeredith
Copy link
Contributor

Previously only the currently enabled hooks were stripped.
If a custom bucket property contained a hook for a disabled
replication mode, then it would be resurrected whenever fixups ran.

Accidentally pushed fix direct to 1.4 branch. If any issues with reviewing this we will have to fix there.

Previously only the currently enabled hooks were stripped.
If a custom bucket property contained a hook for a disabled
replication mode, then it would be resurrected whenever fixups ran.
{<<"fun">>, <<"myhook2">>}]}).
strip_postcommit_test_() ->
[?_assertEqual(
[], % remember, returns the stipped postcommit from bprops
Copy link
Contributor

Choose a reason for hiding this comment

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

little typo here because I HAD to comment on something

@cmeiklejohn
Copy link
Contributor

Should this be tagged for the 2.0-RC milestone?

@engelsanchez
Copy link
Contributor

Tagged now. I am verifying and this should be merged pretty soon.

@engelsanchez engelsanchez added this to the 2.0-RC milestone May 22, 2014
@cmeiklejohn
Copy link
Contributor

OK.

@engelsanchez engelsanchez self-assigned this May 22, 2014
@engelsanchez
Copy link
Contributor

I've tested this fix and its counterpart already in 1.4 branch (VP of oopsies). In both cases, you can see how even with everything disabled, removing mode_repl12 from the modes list makes the v2 postcommit hook reappear in the bucket properties, both default and in buckets with custom properties. With this fix, removing the mode_repl12 mode always ends up removing the v2 hook.

When I say remove, I mean effectively removed by the fixups on local rings. The raw ring still has the hooks, of course. We do not really remove them.

👍 ⛵ 💃

@engelsanchez
Copy link
Contributor

👍 572517e

borshop added a commit that referenced this pull request May 22, 2014
…moval-2.0

Update strip_postcommit to remove all possible repl hooks.

Reviewed-by: engelsanchez
@jonmeredith
Copy link
Contributor Author

@borshop merge

@borshop borshop merged commit 572517e into develop May 23, 2014
@seancribbs seancribbs deleted the bugfix/gh588-v2-postcommit-hook-removal-2.0 branch April 1, 2015 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants