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

switch_epoch()で不正な値が指定されたときの動作 #71

Open
umegane opened this issue Dec 5, 2024 · 0 comments
Open

switch_epoch()で不正な値が指定されたときの動作 #71

umegane opened this issue Dec 5, 2024 · 0 comments

Comments

@umegane
Copy link
Contributor

umegane commented Dec 5, 2024

switch_epochに指定するepoch_idには以下の制約がある。

1. 単調増加する値である必要がある。
2. ラップアラウンドすることは許されない。
3. epoch_id = UINT64_MAX が特別な値として予約されているため使用できない

1,2についてはログに警告がでるが、ログの内容は1しか想定していなさそう。

  • 1.が現状のままで良いのか、議論が必要
  • 2.については、DBを停止すべき致命的な例外として扱うべきでないか。
    • 1, 3を区別可能なのかという問題もある。
  • 3.にうちても2.に準じた処理で良いと考える。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant