Skip to content

[raft/memstore] Use now from context - #1535

Merged
mickmis merged 1 commit into
interuss:masterfrom
Orbitalize:memstore_use_time_from_context
Jul 30, 2026
Merged

[raft/memstore] Use now from context #1535
mickmis merged 1 commit into
interuss:masterfrom
Orbitalize:memstore_use_time_from_context

Conversation

@the-glu

@the-glu the-glu commented Jun 16, 2026

Copy link
Copy Markdown
Member

This PR is part of a new chain, implementing memstore.

#1525 (Generic raftstore) -> #1527 (Base memstore) -> #1529 (Aux memstore) -> #1530 (Snapshots) -> #1534 (Rid memstore) -> #1535 (Correct use of now) -> #1539 (Checkpoint) -> #1542 (Scd memstore) -> #1528 (First PR with raft using memstore)


It uses the helper from timestamp to use now from context, if available, to ensure consistent time in the raft context.

@MariemBaccari MariemBaccari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@barroco barroco added the dss-raft Relating to the application-layer consensus implemenation based on raft label Jun 17, 2026
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch from 6b7c7a4 to 3ca9a8a Compare June 18, 2026 08:29
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch from 3ca9a8a to b55295d Compare June 19, 2026 13:27
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch 2 times, most recently from 6622fd6 to d5e48e1 Compare June 29, 2026 07:04
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch 4 times, most recently from 2b6994d to 0269e18 Compare July 1, 2026 09:20
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch from 0269e18 to 65c0949 Compare July 13, 2026 08:58

@mickmis mickmis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • if available, add linter guarding against use of time.Now(), at least in those directories as a start?

Otherwise LGTM modulo comments about UTC.

Comment thread pkg/aux_/store/memstore/dss.go Outdated
Comment thread pkg/aux_/store/memstore/dss.go Outdated
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch 2 times, most recently from b58e623 to f5b49d4 Compare July 30, 2026 13:17
@the-glu
the-glu requested a review from mickmis July 30, 2026 13:18

@mickmis mickmis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I have a suggestion, LMK what you think of it and if you agree whether you would do it in this PR or a follow-up one.

Comment thread pkg/aux_/store/memstore/dss.go Outdated
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch from f5b49d4 to 0301ea5 Compare July 30, 2026 14:14
@the-glu
the-glu requested a review from mickmis July 30, 2026 14:14
@the-glu
the-glu force-pushed the memstore_use_time_from_context branch from 0301ea5 to 2307844 Compare July 30, 2026 14:17

@mickmis mickmis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mickmis
mickmis merged commit 080a4f2 into interuss:master Jul 30, 2026
12 checks passed
@mickmis
mickmis deleted the memstore_use_time_from_context branch July 30, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dss-raft Relating to the application-layer consensus implemenation based on raft

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants