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

ARTEMIS-4065 Non Persistent Page Counters #4265

Merged
merged 1 commit into from Dec 15, 2022

Conversation

clebertsuconic
Copy link
Contributor

Instead of relying on the journal to store the value of the counters, and have it eventually getting out of sync we should just use real counters from reading the pages on startup.

In a test performed, reading 700 files didn't take more than 1 minute in a modest laptop. And besides the data will be available while the rebuild is being done.

@clebertsuconic
Copy link
Contributor Author

I stil have both versions of the counters in the codebase. I am going to remove the other implementation of the PageCounter and only keep the non persistent.

This PR is for a draft only.. and I will finish after fixing the testsuite

(the built server would work fine though)

@clebertsuconic clebertsuconic force-pushed the page-counter branch 8 times, most recently from 9826735 to e994c51 Compare October 23, 2022 16:18
@clebertsuconic clebertsuconic force-pushed the page-counter branch 2 times, most recently from 7320153 to 21e2942 Compare December 5, 2022 14:49
@clebertsuconic
Copy link
Contributor Author

I updated this PR with a new commit. From now on we save snapshots of the counter upon shutdown.

@clebertsuconic clebertsuconic force-pushed the page-counter branch 6 times, most recently from 8116f5c to e289d3f Compare December 6, 2022 16:24
@clebertsuconic clebertsuconic marked this pull request as ready for review December 6, 2022 16:25
@clebertsuconic clebertsuconic force-pushed the page-counter branch 8 times, most recently from b6b84d6 to 53d5d26 Compare December 8, 2022 20:08
@clebertsuconic clebertsuconic force-pushed the page-counter branch 5 times, most recently from 8bd24b5 to 120d102 Compare December 12, 2022 20:54
@clebertsuconic
Copy link
Contributor Author

@gemmellr I will do some testing to make sure it's solid and I should merge it.. unless you have any other concerns.

@gemmellr
Copy link
Member

@clebertsuconic still need to look over the rest, plus whatever changed since yesterday.

@clebertsuconic clebertsuconic force-pushed the page-counter branch 8 times, most recently from 7ce9e7f to eb075e2 Compare December 14, 2022 21:45
- From now on we will save snapshots of page-counters on the journal (basically for compatibility with previous verions).
  And we will recount the records on startup.

- While the rebuild is being done the value from the previous snapshot is still available with current updates.
@clebertsuconic
Copy link
Contributor Author

I had a few successful run with this PR over the full CI now.

@clebertsuconic clebertsuconic merged commit af9bd7b into apache:main Dec 15, 2022
@clebertsuconic clebertsuconic deleted the page-counter branch May 8, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants