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

Rgw lifecycle testing #11131

Merged
merged 2 commits into from Sep 21, 2016
Merged

Rgw lifecycle testing #11131

merged 2 commits into from Sep 21, 2016

Conversation

dang
Copy link
Contributor

@dang dang commented Sep 19, 2016

No description provided.

@dang dang added the rgw label Sep 19, 2016
@@ -73,6 +73,9 @@ void *RGWLC::LCWorker::entry() {
}

void RGWLC::initialize(CephContext *_cct, RGWRados *_store) {
#define COOKIE_LEN 16
char buf[COOKIE_LEN + 1];

Copy link
Contributor

Choose a reason for hiding this comment

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

the for loop below has a char buf[32]; that shadows this one. could you either rename this, or move its declaration down to gen_rand_alphanumeric() so their scopes don't overlap?

The lifecycle config lock was not setting a cookie.  This means that all
instances of that lock conflict, causing errors to be returned to the
client.

Set a unique cookie on each lock instance.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Add new config option - rgw_lc_debug_interval - that modifies the
lifecycle algorithm.  It treats days as being the configured number of
seconds.  This allows lifecycle to be tested in minutes, rather than
days.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants