PumpkinDB: Problem: wall clock going back in time between restarts will break HLC guarantee

Basically, it means that after a restart values returned by HLC will be less than those generated before.

Proposed solution: let timestamp module persist last generated HLC.

Letting it store in the same database is rather intricate: there might be no write txn, the write txn might never succeed, etc. So I propose that PumpkinDB maintains a separate “meta” database within the environment with its own transactions.

Any better solution (that would involve I/O penalty?)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (20 by maintainers)

Commits related to this issue

Most upvoted comments

This would mean introducing READMETA transaction scheduler, committing to certain structures, etc.

What if we had a standard API to access metrics and different components exposed their data through it? On Tue, Feb 28, 2017 at 8:31 AM Omar Yasin notifications@github.com wrote:

I really like psql’s way, for instance with stats… But it is a matter of taste.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PumpkinDB/PumpkinDB/issues/32#issuecomment-282913408, or mute the thread https://github.com/notifications/unsubscribe-auth/AAABxJ2dhj-zUSR4NVdrK8S5e-zyWAlHks5rg3kNgaJpZM4L_LCO .