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

hammer: mon: MonitorDBStore: get_next_key() only if prefix matches #5361

Merged
2 commits merged into from Nov 4, 2015

Conversation

jecluis
Copy link
Member

@jecluis jecluis commented Jul 27, 2015

get_next_key() had a bug in which we would always return the first key
from the iterator, regardless of whether its prefix had been specified
to the iterator.

Fixes: #11786

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 2cc7aee)
@ghost ghost removed the needs-qa label Jul 28, 2015
@ghost ghost self-assigned this Jul 28, 2015
ghost pushed a commit that referenced this pull request Jul 29, 2015
@ghost
Copy link

ghost commented Aug 18, 2015

@jecluis
Copy link
Member Author

jecluis commented Aug 19, 2015

@dachary I don't think so, but feel free to test without it.

Besides, the stack trace in the tracker issue feels a lot more related with memory issues rather than the store itself, but I may be wrong.

@ghost
Copy link

ghost commented Aug 19, 2015

@jecluis thanks for taking a look. Running the upgrade suite again to figure out if it's a permanent error or something else. http://pulpito.ceph.com/loic-2015-08-19_12:26:39-upgrade:hammer-hammer-backports---basic-vps/

@ghost ghost changed the title mon: MonitorDBStore: get_next_key() only if prefix matches DNM: mon: MonitorDBStore: get_next_key() only if prefix matches Aug 24, 2015
@ghost
Copy link

ghost commented Aug 29, 2015

@jecluis running the hammer upgrade suite after removing this commit works. It's easy to reproduce, it fails all upgrade jobs.

@ghost
Copy link

ghost commented Sep 7, 2015

Also cherry-pick #5834 to make it work

@jecluis
Copy link
Member Author

jecluis commented Sep 9, 2015

patch to be cherry-picked is 70d3108

We introduced a significant bug with 2cc7aee, when we fixed issue #11786.
Although that patch would fix the problem described in #11786, we
managed to not increment the iterator upon returning the current key.
This would have the iterator iterating over the same key, forever and
ever.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 70d3108)
@jecluis
Copy link
Member Author

jecluis commented Sep 9, 2015

Patch has been cherry-picked. Okay to test.

@ghost ghost removed the needs-qa label Sep 9, 2015
@ghost ghost changed the title DNM: mon: MonitorDBStore: get_next_key() only if prefix matches mon: MonitorDBStore: get_next_key() only if prefix matches Sep 9, 2015
@ghost
Copy link

ghost commented Sep 9, 2015

@jecluis thanks !

ghost pushed a commit that referenced this pull request Oct 2, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 7, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 8, 2015
… prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 4, 2015
mon: MonitorDBStore: get_next_key() only if prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost merged commit cad1cfb into hammer Nov 4, 2015
ghost pushed a commit that referenced this pull request Nov 17, 2015
mon: MonitorDBStore: get_next_key() only if prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
mon: MonitorDBStore: get_next_key() only if prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
mon: MonitorDBStore: get_next_key() only if prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
mon: MonitorDBStore: get_next_key() only if prefix matches

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost changed the title mon: MonitorDBStore: get_next_key() only if prefix matches hammer: mon: MonitorDBStore: get_next_key() only if prefix matches Feb 18, 2016
@liewegas liewegas deleted the wip-11786.hammer branch November 23, 2016 20:12
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants