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

mon: fix min_last_epoch_started tracking #2850

Merged
merged 2 commits into from Nov 10, 2014
Merged

mon: fix min_last_epoch_started tracking #2850

merged 2 commits into from Nov 10, 2014

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Nov 2, 2014

This has been broken for a long time! I think it's why we've seen some reports
of leveldb growth?

We were only invalidating the cache from the legacy apply_incremental(),
which is no longer called on modern clusters.

Fixes: #9987
Signed-off-by: Sage Weil <sage@redhat.com>
We were only invalidating the cached value from apply_incremental, which
is no longer called on modern clusters.

Fix this by storing the update epoch in the key as well (it is not part
of osd_stat_t).

Backport: giant, firefly, dumpling(?)
Fixes: #9987
Signed-off-by: Sage Weil <sage@redhat.com>
@jecluis
Copy link
Member

jecluis commented Nov 3, 2014

I think this is correct. I'm in the process of testing.

@ghost ghost added the core label Nov 5, 2014
@athanatos
Copy link
Contributor

wip-sam-testing

@jecluis
Copy link
Member

jecluis commented Nov 7, 2014

All testing I performed showed no signs of misbehaving. I wasn't however able to reproduce a state in which this would have been helpful against leveldb growth but it is logically correct and have no evidence it will cause harm -- on the contrary, it should keep things saner. I'm okay with merging.

@jecluis
Copy link
Member

jecluis commented Nov 10, 2014

went through a suite, all green.

athanatos pushed a commit that referenced this pull request Nov 10, 2014
mon: fix min_last_epoch_started tracking

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
@athanatos athanatos merged commit 18a8509 into master Nov 10, 2014
@athanatos athanatos deleted the wip-9987 branch November 10, 2014 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants