Skip to content

Commit a7e137c

Browse files
committed
correct
1 parent 647d769 commit a7e137c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

quixstreams/state/rocksdb/timestamped.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def set_for_timestamp(
144144
to the parent `set` method. The parent method internally serializes these
145145
into a combined key before storing the value in the update cache.
146146
147+
Additionally, it triggers the expiration logic.
148+
147149
:param timestamp: Timestamp associated with the value in milliseconds.
148150
:param value: The value to store.
149151
:param prefix: The key prefix.

quixstreams/state/rocksdb/windowed/metadata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
LATEST_DELETED_VALUE_CF_NAME = "__value-deletion-index__"
88
LATEST_DELETED_VALUE_TIMESTAMP_KEY = b"__value_deleted_start_gt__"
99

10-
LATEST_TIMESTAMPS_CF_NAME = "__latest-timestamps__"
11-
LATEST_TIMESTAMP_KEY = b"__latest_timestamp__"
12-
1310
GLOBAL_COUNTER_CF_NAME = "__global-counter__"
1411
GLOBAL_COUNTER_KEY = b"__global_counter__"
1512

quixstreams/state/rocksdb/windowed/partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
from quixstreams.state.recovery import ChangelogProducer
55

6+
from ..metadata import LATEST_TIMESTAMPS_CF_NAME
67
from ..partition import RocksDBStorePartition
78
from ..types import RocksDBOptionsType
89
from .metadata import (
910
GLOBAL_COUNTER_CF_NAME,
1011
LATEST_DELETED_VALUE_CF_NAME,
1112
LATEST_DELETED_WINDOW_CF_NAME,
1213
LATEST_EXPIRED_WINDOW_CF_NAME,
13-
LATEST_TIMESTAMPS_CF_NAME,
1414
VALUES_CF_NAME,
1515
)
1616
from .transaction import WindowedRocksDBPartitionTransaction

quixstreams/state/rocksdb/windowed/transaction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
from quixstreams.state.metadata import DEFAULT_PREFIX, SEPARATOR
1010
from quixstreams.state.recovery import ChangelogProducer
1111
from quixstreams.state.rocksdb.cache import CounterCache, TimestampsCache
12+
from quixstreams.state.rocksdb.metadata import (
13+
LATEST_TIMESTAMP_KEY,
14+
LATEST_TIMESTAMPS_CF_NAME,
15+
)
1216
from quixstreams.state.serialization import (
1317
DumpsFunc,
1418
LoadsFunc,
@@ -25,8 +29,6 @@
2529
LATEST_DELETED_WINDOW_TIMESTAMP_KEY,
2630
LATEST_EXPIRED_WINDOW_CF_NAME,
2731
LATEST_EXPIRED_WINDOW_TIMESTAMP_KEY,
28-
LATEST_TIMESTAMP_KEY,
29-
LATEST_TIMESTAMPS_CF_NAME,
3032
VALUES_CF_NAME,
3133
)
3234
from .serialization import (

0 commit comments

Comments
 (0)