Repository navigation
Expand file tree
/
Copy pathChangeLog
More file actions
2669 lines (2339 loc) · 152 KB
/
Copy pathChangeLog
File metadata and controls
2669 lines (2339 loc) · 152 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
========================== Release 0.7.5.1 =============================
2026-11-23 Yury Kirsanov
* [upgrade] 0.7.5 to 0.7.5.1 is a rolling restart: both speak
cluster wire epoch 4, so restart members first and the master
last, one node at a time, each once its
stats.cluster.restart.safe says so. Do not create, drop or
rename a collection while the fleet is mixed: a 0.7.5 member
still checks every collection name a peer holds, and a change
made mid-roll can make it refuse the node that made it. From
0.7.4.x it is still the whole-fleet stop 0.7.5 needs.
* [upgrade] perfcli load, which imports the node's snapshot into
every collection, now needs a privileged connection, as
create, drop and rename do: run perfcli -E <enable> load, and
through libperfd call perfd_enable before perfd_load. Without
it the load is refused with the answer the other privileged
verbs give; it was open to any client holding the client
secret. A second load while one runs is refused as already
running, and a client write that lands during the import is
kept instead of being overwritten by the snapshot's older
copy.
* [upgrade] A read through a node that does not hold the key,
whose owner does not answer within pull_timeout_ms, is now
refused as retryable - RESP -TRYAGAIN, a native 'cluster busy'
error, PERFD_E_REFUSED in libperfd - and caches nothing. GET,
EXISTS, TTL and the rest answered absent and set the negative
cache, and hash and document reads answered 'holder timed
out', so a frozen or briefly unreachable owner looked like a
real miss. After a holder dies its keys read this way for up
to about 6 s, until it is dropped from the fleet, and are
misses after that: a client that took a dead holder for a miss
must retry. A read-through collection's lost pull still
answers its upstream error.
* [upgrade] resp_allow and http_allow take an IPv4 entry only as
a full dotted quad with an optional /prefix. The short forms
(10/8, 172.16/12, 192.168/16), an octet with a leading zero
(010.0.0.0/8), a bare number, and several addresses in one
entry separated by blanks instead of commas are now config
errors, refused by perfcached -C and at start. 0.7.5 read
10/8 as 0.0.0.0/8 and 192.168/16 as 192.0.0.0/16, a leading
zero as octal, and stopped at the first blank, so the intended
clients were refused and another network admitted. Check both
lists before upgrading. IPv6 entries keep their usual
compressed forms (2001:db8::/32, [::1]). An entry with host
bits set past its prefix (10.1.2.3/8) is still taken as its
network, now with one WARNING naming it.
* [upgrade] [cluster] tombstone_acks = yes now works in a mixed
fleet and in one all on yes. On 0.7.5 a node switched to yes
among members on no asked the origins for every delete it had
missed; those a newer delete of the same key had superseded
were reported lost, so it floored, asked for a rebuild and
rejoined about every 4 s, for good. A node on yes now keeps
the time rule while any member is on no, and an origin asks
for a rebuild only when a delete in the range was really lost,
so a restart in an all-yes fleet under re-deleted keys no
longer rejoins either. To switch a fleet from no to yes, run
0.7.5.1 on every node first (a 0.7.5 origin still asks for
those rebuilds), then change one node at a time. The page's
negative cache card says "numbered deletes (kept by time)"
while the fleet does not confirm deletes.
* [security] Cluster: two masters at one term ranked on the
member count the other's beacon claimed, so anyone holding the
cluster secret could claim a large count and take mastership;
equal terms now fall to the address alone. A frame the replay
table could not track (its sender table or window budget full)
was let through; it is now refused, counted and logged, and a
sender silent for 60 s gives up its slot. One inbound lane
connection, before it had authenticated anything, could hold
the lane thread and fill the receive queue every member
shares; a lane is now read 64 frames a pass and holds a
bounded share of the queue.
* [security] perfcli upgrade: a crafted release tarball with a
member named like a tar option (--checkpoint-action=...) ran a
command. The member list goes to tar after --, a name
beginning with '-' is refused, and the switch hook is run with
an argument vector, not through a shell. The dashboard
buffered a whole POST body, up to stage_max_mb, before it
checked the session; the session and the declared size are now
judged first. Its lockout table now has a lock: parallel
wrong secrets from one address lost counts.
* [security] Secrets: the query log wrote AUTH's password as the
key (hashed by default, in full with query_log_keys = full);
it now leaves it out. An empty [secrets] http was taken as a
configured token that an empty bearer or Basic password
matched; it is refused like any other empty secret. A reload,
-C and -H wipe and free the enable secrets and the RESP
password. libperfd refuses to send enable on an authenticated
plaintext link from every path - the replay after a failover
onto a plaintext standby, and perfd_command("enable"), sent it
in the clear - and drops a sealed UDP datagram older than its
64-message window instead of delivering it, which let a
captured message be replayed.
* [security] Hostile input: one client without the RESP password
could take every command stats row of a worker and plant CR LF
or non-UTF-8 names in INFO and /metrics; a row is now named
only for a command the door implements, run after AUTH,
everything else counts as "unknown", names keep printable
ASCII, and /metrics escapes a line feed and any byte outside
printable ASCII in a label. CLIENT SETNAME refuses a space, a
newline or a byte outside ! to ~ (a name could forge fields
and rows in CLIENT LIST). The snapshot loader and load bound
every record's lengths as -R does (a crafted file stored a key
of length -1 or a value read past its buffer), the WAL scan
checks a record's length without a 32-bit wrap, and the JSON
validator checks a document's structure (separators, the eight
escapes, four hex digits after \u), not only its primitives.
* [security] Daemon crashes: a push from any peer at an address
the Redis topology names, on a sentinel or cluster discovery
connection, crashed the daemon; it is dropped. A COMMAND INFO
key step near INT_MAX from the upstream made the write-through
writer read far outside its arguments. Two probe verbs on two
workers at once could dereference NULL; a probe now runs one
at a time. A destroyed connection left on the io_uring
starved list was used after it was freed.
* [upstream] Write-through: a value too large for one record
(key, value and a 28-byte header past 262,080 bytes, so a
value of about 256 KB) is refused as value too large before
Redis applies it, for SET, SETNX, SETEX, PSETEX, GETSET,
APPEND, MSET, MSETNX, HSET, HMSET and HSETNX, and a read-back
past a record drops the copy here. Redis took such a write
and the client got OK while the fleet could not hold it: an
older copy kept answering until tracking invalidated it (for
good with upstream_tracking = off), then reads failed as too
large.
* [upstream] Write-through records no longer lose their
write-through mark. Four paths left a record without it: an
invalidation racing a fresh copy of the key (a peer's eager
push or this node's own read-back), a rejoin's resync, a local
drop replayed to a rejoining peer as a delete, and a read that
missed the record while a write landed - the write stores its
record and then its mark, and the read took the mark for one
left without a record and dropped it. Such a key read as one
the fleet owned before write-through, so
/stats upstream.write_through.fleet_owned and the page's
upfill warning counted keys without cause.
* [cluster] The tombstone catch-up to a member back from a
silence ends. Behind deletes and expiries planted faster than
about 300 a second, the replay to a member silent for longer
than about 90 s never caught up: it replayed each retained
delete and expiry just before it aged out, for good, and the
member re-planted and counted every one, so one eager node
could sit at tombstone_retain_max and drop tombstones early.
Restarting that node did not help, since the replay lived on
its peers. A member that went silent while a catch-up was
still owed to it (a new member's first one) was also replayed
to twice on its return. Both now end after one replay.
* [cluster] /stats tombstones_retained.noted and noted_expiries,
and their win_ figures, count only tombstones new to the node.
A delete or an expiry it already holds at that version or
newer (a peer's catch-up replay, a delete heard twice) is no
longer counted again nor retained longer, and a member back
from a silence is no longer handed its own replay back. On a
quiet fleet the figures do not change.
* [cluster] Fixes from the 0.7.5 known issues. A node rejoining
while a reconcile pass was open could report ready before its
copy of the fleet's state had finished and answer a key
deleted while it was away, or an older value; it now stays
recovering until the pass first rules. A collection change
from the fleet (a resize, an autoscale or a mode change), the
mastership term and the cluster id were written and synced on
the cluster thread, so slow storage stalled the pulls and
forwards it answers and a routed read could answer as a miss;
the maintenance thread writes them now, the collections file
only when it changes. A collection created at run time
changed the creator's config digest before its announce
reached the others, so a keepalive in that gap made every peer
refuse the creator: members now compare only the collections
their configs name.
* [cluster] Records lost or left behind by moving data. A
migration walk removed a record before it asked whether the
batch had room, so a large value that did not fit was gone
from the old owner and never sent. Shard and proxy walks
started at bucket 0 each tick, so on a table one tick could
not finish a joiner's keys past that point read as misses. A
walk that could not run counted as a clean cycle; the
migration ack pump ignored the TCP lane, so a peer reached
only by the lane timed out every run; and a sweep whose target
left mid-run sent the rest to the newcomer on its slot. A
member promoted while still pulling its bootstrap reported
ready holding part of the keyspace or none.
* [cluster] Links: a lane to a host lost without a reset stayed
up for about 15 minutes, or for ever when idle; lanes now use
TCP keepalive and a 6 s user timeout, a connect still in
flight no longer reads as up, and frames for a peer that is
gone age out instead of reconnecting for ever. A frame queued
behind a connect in flight could wait for an unrelated write,
and a receiver's idle close went unnoticed by the sender.
Past 256 workers two threads shared a relay lane and the peer
dropped one's frames as duplicates, and a lane's receive
window had two unlocked writers. A keepalive from a member
that cannot speak the committed wire epoch is refused before
it is taken in. A member admitted by an earlier master and
held while connecting no longer closes the admission gate for
good, a duplicate-claim record no longer refuses a host weeks
later, and a failed open of the term file other than a missing
file now refuses startup instead of writing term 0 over the
fleet's.
* [verbs] Writes that answered success, or no such key, when
they had failed: mset and the JSON writes on a FAILED or
HEALING node were acknowledged and kept in memory only; a
refused delete or expire (FAILED, HEALING, an upstream
refusal, a full parked table, a failed forward) answered false
or :0; a shard delete whose forward could not start answered
deleted false while the owner kept the key; and a proxy write
whose fleet probe could not park, or whose key was 256 bytes
or longer, placed a second copy here. Each now answers as set
does, and a long key is probed like any other. A RESP command
parked on the fleet completed on a collection named after its
SELECT index. create, rename and drop say persisted: false
when the collections file could not be written.
* [verbs] Numbers and expiries: INCR past int64 wrapped and
replicated the wrapped value; it answers increment or
decrement would overflow, a stored number outside int64 is not
an integer, and JSON.NUMINCRBY refuses both. A TTL past
2^31-1 seconds was cut to 32 bits (EX 4294967296 stored a key
already expired); it answers invalid expire time at both
doors, and restore refuses such an expiry. A record past its
deadline that the sweep had not reaped is absent to INCR,
EXPIRE and DEL too, as to a read: INCR counted on from the
dead value and DEL answered 1. JSON.SET at the root honours
NX and XX, JSON.ARRAPPEND of several values applies all or
none, a new member counts toward a document's size limit, and
a \u surrogate pair decodes as one character.
* [table] Deletes during a resize: a delete of a key written
after the copier's last pass answered absent and left it (no
WAL delete, no tombstone), a delete racing the copier was
undone by the copy, an expired key's older copy in the table
being filled came back at the swap, and an expired newer copy
in the drained table let the value before it answer again. A
cursored SCAN that met a split could end early with keys
unseen. A drop during a resize leaked the resize's other
table into the slot's next collection, a create could shadow a
live collection of the same name, and a peer could apply a
stale drop to a live collection fleet-wide.
* [durability] The WAL's durable watermark could pass a record
still in a ring, a sync after a full ring dropped the newest
record timed out, a recycled segment's stale bytes could be
read as the log's tail, and a ring whose size was not a power
of two misplaced records after 4 GiB. With a WAL, a rename
only logged a record and a snapshot taken after it named a
collection the restarted node did not have, dropping every
later write; renames are now written at once and replayed
through. A snapshot write that failed spun the snapshot
thread for ever; it now fails the save.
* [upstream] The bridge: a DEL or UNLINK of more than 64 keys,
or an unknown command naming them, left the fleet serving old
copies of keys Redis had deleted or changed; an error reply
other than WRONGTYPE to a fetch (LOADING, BUSY, MASTERDOWN,
NOAUTH, NOPERM) was cached as a miss; a declined first command
still had its EXPIRE or PERSIST applied; a drain sweep skipped
a pattern whose first page failed and failed on one value over
1 MiB; a stop during a drain sweep hung; and the ownership
checks a plain write starts are bounded at 4,096 a collection,
past which the key is taken as the fleet's. Under
upstream_on_error = miss an owner answers a peer's failed pull
as absent at once; under error the asker answers the upstream
error.
* [daemon] Start and stop: a thread that could not be created
gave a ready daemon missing a worker, its maintenance or its
WAL thread (writes acknowledged and never written); the start
now fails. A clustered node with 495 or more workers wrote
past its thread table; such a run is refused before any thread
starts. A reload asked during a slow recovery ended the
daemon. A stop during a boot copy crashed, and the WAL pump's
last sync could run before the workers' last acknowledged
writes reached it. An EINTR in an epoll worker could end it
silently, and a worker that leaves its loop unasked stops the
daemon. The WAL's FAILED could be overwritten by a READY
decided a moment before.
* [daemon] Memory: an apply thread with apply_threads 2 or more
never let dropped or resized tables go back to the arena; an
exited thread's free cells never went back, and one thread
could hoard 64 MB of free 256 KB cells; a slot punched by
give-back kept arena_used at its peak; records over 64 KB
counted 0 bytes in the budget; INCR of an existing counter
failed at the arena ceiling; and the memory guard took a real
0 of available memory for no figure. /metrics was cut
silently at 256 KB, the slow log missed workers past the
fourth once their rings were full, and the five-minute
window's max left out the minute in progress. A host.link
alert stayed raised when the link speed could not be read, and
a relayed clear was not mailed when its raise was.
* [lib] libperfd 0.7.6.1: the same soname and every 0.7.6
symbol. perfd:// URLs (perfd_url_parse, perfd_url_free,
perfd_url_apply and getters):
perfd://[user[:secret]@]host:port[,...]/collection[?options],
with IPv6 seeds in [ ] and the reason for a refusal in the
caller's buffer. perfd_url_connect starts at a seed chosen by
the pid, logs a seed's failure once until it answers again,
and after a dial no seed answered fails at once with
PERFD_E_BACKOFF for 1 s, doubling to 30 s. perfd_apool, an
async pool for event loops that watch one descriptor per
request: perfd_apool_new from a URL or perfd_apool_new_seeds,
perfd_apool_get answers the descriptor of the GET's own handle
(pinned to the key's owner with route_keys), and
perfd_apool_ready, perfd_apool_wait and perfd_apool_cancel
finish it. perfd_exec (its reply freed by perfd_reply_free)
sends the RESP door's keyed data commands over the native
door, the reply shaped as the door's. perfd_jset_ex
(JSON.SET's NX and XX), perfd_keys_ex (a listing that covers
only the answering node's share says so), perfd_describe and
perfd_fleet_changes. An async handshake the node closes on
fails as PERFD_E_AUTH, and perfd_secret_index names the secret
tried, so an event-loop caller can dial again with the next.
* [lib] libperfd fixes: after a failover a request could be
answered with a reply parked from the dead link, and any id
the node sent was parked; a notify hook that called its own
handle recursed or corrupted the read (now refused with
PERFD_E_STATE inside a call); a callback of perfd_hgetall that
used the handle corrupted the rest; a signal during a
plaintext read poisoned a healthy link; writes raised SIGPIPE
in the host program; a failover could block far past the io
timeout, which now bounds it whole; a failed dial left the
handle's secrets in memory unwiped; a value over 1 MiB is
refused with PERFD_E_ARG instead of dropping the link and
marking the node down; and a standby counts only once the node
says it serves.
* [cluster] A restarted eager node whose peers hold more records
than it ever will (records no client reads) no longer asks its
peers on every miss for good: once, 2 minutes after it settles,
1,000 of its pulls' answers show the peers hold nothing it lacks,
its misses are final again. Before, each miss waited on a pull
for the life of the process - 50-230 ms reads through it.
* [cluster] A node that restarts and drops its records written
through to the upstream (the tracking gap) now gets them back
from its peers at once, marked: it asks each live peer for
the collection whole, three times 3 s apart, as a peer that
does not yet count the restarted node live drops the ask.
Before, they came back only key by key as clients read them,
and the node never caught up.
* [store] A delete that arrived while its collection was being
resized could come back: the delete reached only the old
table, and the copy the resize had already made in the new
table stayed. It now reaches both tables.
* [tools] perfcli upgrade: the lost-records gate summed no
collection's entries, and on a shard fleet it now compares
the fleet's sum, as a peer holds an absent owner's records
only until it returns; a node still on its old build after a
switch timeout is not reverted; a roll reverts a node only
once the fleet is restart-safe and stops if a peer cannot be
reached; resume does not switch again a node already on its
target; rollback takes back every rolled node and says done
only once each runs its old build. perfcli -A with -e no
longer sends the enable secret as the client secret, a session
line over 512 words is refused instead of cut, and pasted
lines are no longer lost.
* [tools] perfdump's READY guard never fired, so a starting or
draining node was dumped from; it now refuses, --force dumps
anyway and the manifest records the node's state. perfdump
and perfload read manifests of more than about 6,900 files.
perfload no longer marks done a chunk whose records were
refused or whose reply did not parse (the run exits 1),
matches perfload.done by target and mode, and fails a job
whose thread could not start. The dashboard dials a member
without holding the fleet lock, so one unreachable host no
longer stalls every page, and shows a member that left the
fleet as 'left' after 5 passes and stops dialling it.
* [asterisk] func_perfd needs libperfd 0.7.6.1 or later and
refuses to build against an older one. The binary transport
dials through perfd_url_connect, one URL per pooled
connection, with no process-wide lock across a dial, and backs
off after a failed dial instead of making each call wait its
turn. The resp transport bounds a whole call by
call_timeout_ms (default 2 x (connect + 2 x io)) and refuses
at once a bulk declared more than 64 KiB past max_value. A
load declined for its config clears libperfd's log hook, which
was left pointing into the unloaded module.
* [php] php-perfcached 0.2.0: setNx, setIfEq, delIfEq, publish,
subscribe and psubscribe, jget, jset, jdel and jincr, and a
Symfony Lock store (PerfcachedLockStore). keys() takes a
by-reference complete flag; the Symfony adapter's clear()
answers false with a warning on a sharded collection, or a
shard node whose peers are down, instead of true. A ttl the
daemon cannot hold is a ValueError before anything is sent,
and subscribe tries each configured secret in turn.
* [dashboard] Behind a proxy that spreads requests over several
perfcached-dashboard instances, the page showed whichever
node the instance answering each poll defaulted to, and a
fleet card linked the node's own HTTP door instead of the
dashboard. A page opened without ?node= now keeps the node
its first answer named (the address bar says ?node=N), and a
card opens ?node=N through the same proxy.
* [page] A fleet card names its member's build beside the
version, by the first 7 digits of its git rev: v0.7.5.1
(2a03d3b). /members lists each member's rev; a member older than 0.7.5.1 reports
none and its card shows the version alone.
* [asterisk] func_perfd ships a patch for each supported Asterisk
branch: 22.12.0, 23.6.0 and 24.0.0, each built clean under
--enable-dev-mode against libperfd 0.7.6.1.
=========================== Release 0.7.5 ==============================
2026-11-22 Yury Kirsanov
* [upgrade] 0.7.5 speaks cluster wire epoch 4 alone and refuses
a 0.7.4 node by name: from 0.7.4.x stop every node (perfcli -E
<enable> fleetstop), install 0.7.5 everywhere and start them
all - no roll. The state is kept; the WAL and the snapshot
did not change. A node-epoch file from an earlier release is
noted once and rewritten. libperfd 0.7.6 routes by key
against 0.7.5 alone, and an older one not against 0.7.5: a
route_keys handle on the other side sends every request
through the forward hop, which refuses values over 58,000
bytes - move such clients with the fleet. perfload refuses a
dump from an earlier perfdump (the format is version 2): take
it again.
* [lib] libperfd 0.7.6: the same soname and every symbol, plus
perfd_opts_init_sz(). perfd_opts_init() zeroed this library's
whole perfd_opts, so a program built against an older libperfd
that filled its own struct with it had the bytes past that
struct zeroed - 16 with libperfd 0.7.5 under a 0.6.x program.
The header now passes the caller's size (perfd_opts_init_sz),
and the plain function, which such programs call, touches only
the struct libperfd 0.6 had. A program built before
perfd_opts.encrypt existed stays encrypted past the handshake,
as its library did. Rebuild a program built against 0.7.5
that sets perfd_opts.name or worker_balance after
perfd_opts_init(): until then this library reads them as
unset.
* [lib] A write a FAILED or HEALING node refuses moves to
another member at once; it and the daemon's "forward failed"
are PERFD_E_REFUSED, not PERFD_E_SERVER - nothing was applied.
A link quiet for 100 ms is looked at before a send, so one a
restart closed is replaced first, and a routed perfd_add or
perfd_sub whose standby dies mid-request fails rather than
going again on the active link, where it could apply twice.
Handles leave a FAILED or HEALING node on the next beat.
perfd_opts.pin keeps a handle on the node it dialled (perfcli
pins), and a handle that moves raises privilege again before
the re-send, also after an enable sent through
perfd_command().
* [tls] TLS on the RESP and HTTP doors: resp = <addr:port> tls,
http = <addr:port> tls, with [listen] tls_cert, tls_key and
tls_min; a reload reads the pair again. /stats tls, the
page's tls card and the alert tls.cert (inside 14 days of
expiry) watch the certificate; auth_needs_tls = yes refuses
AUTH and the HTTP token in the clear off loopback. rediss://
upstreams, checked against upstream_tls_ca and the URL's host
or upstream_tls_name, with an optional client certificate
(upstream_tls_cert, upstream_tls_key). OpenSSL is linked when
pkg-config finds it (PC_TLS=auto); perfcached -V says whether.
* [upstream] Discovery. A listed master's ROLE replicas become
upstreams (upstream_discover = auto, the default), except
behind a proxy or for a write-through collection. A Redis
Sentinel as the upstream is never read: the master and
replicas it watches are, its events are followed at once, and
a write-through writer follows the master it names
(upstream_sentinel_master, upstream_sentinel_password). What
was learned is kept in state_dir for a start with the seed
down, the page says who named each upstream, and upstream
takes 32 servers.
* [upstream] A Redis Cluster as the upstream, from one node: the
slot map from CLUSTER SHARDS (SLOTS before Redis 7) every 10 s
and after a MOVED, each read to its slot's shard (a replica
after READONLY), MOVED and ASK followed, each write through to
its slot's master (CROSSSLOT refused), the drain sweep by
shard; /stats redis_cluster.
* [cluster] Fleets form in order. A node that hears no master
founds after a settle window of 3 to 10 s, the lowest identity
first, and a joiner told the fleet is electing waits; two
that found at once still end as one fleet. The master admits
joiners from a queue, one at a time (four above 16 members).
An admitted node is connecting - live, but holding no share,
standing for no election and refusing client data as not
READY (recovering or connecting) - until every link between it
and each member has answered both ways, the TCP paths in use
included; after 10 s the log names the missing links,
cluster.admission_stuck is raised and the queue moves on. A
member list past max_datagram goes in parts. A fleet started
all at once could stay without a master (one that yielded kept
beaconing) or give one node id to two nodes; neither now.
* [cluster] Eager: two writes of one key through two nodes at
one version left each replica with whichever came first, for
good. Every replica now keeps the same one, and the repair
sweep compares values as well as versions.
* [table] A resize whose copy of a record found no room in the
arena skipped it, and the closing drain dropped the only copy
(0.7.3 and 0.7.4.4 too). The resize now waits for room, the
old table answering, and closes only once every record moved.
* [cluster] Reads through a node that does not hold the key: a
read-only read-through collection in shard or spread answered
nil for keys another member owns (since 0.7.1), hash reads and
JSON GET could answer empty, and EXISTS, TYPE, TTL and PTTL
answered as if the key were absent. All now reach the key at
its owner or a holder, as GET does.
* [upstream] A read whose fetched copy found no room in the
arena answered nil; it now answers the fetched value, and a
change to such a key is refused, naming the arena, while there
is still no room. A read whose record a write's echo dropped
is fetched again even while its mark lingers (read_lost_spent
counts what is still lost).
* [cluster] Spread: surplus copies left after a member restarts
went only about 100 s after the fleet settled, then 64 a node
every 10 s, answering local reads meanwhile; now from 30 s
after, every second while any are left. After a short
partition a key written through a node holding no copy could
stay at one copy: the first holder now keeps it as its own
write, on its WAL, and its sweep repairs the other holder.
* [cluster] After a whole-fleet restart a node could bootstrap
from a peer that came back empty while the records' author was
still replaying its log, and stay short; a bootstrap now waits
for a peer still loading that reports records. A member short
of deletes its origin had forgotten kept those keys until
their TTL: the rebuild a floor asks for walked no record.
* [cluster] A mastership term a node followed but could not
write to its state directory is no longer claimed again when
that node next takes mastership - it claimed the last term it
had written plus one, which the master it followed had used.
Until the term is on disk the node follows and serves but
takes no mastership, retries every beat and raises the
critical alert cluster.term_unpersisted (/stats
cluster.term_unpersisted). The term, the cluster id, the
identity and the node salt count as written only once their
directory is synced: a refused directory sync was ignored.
* [security] A cluster frame reaches the replay window only
after the sender checks and only from the host its header
names (/stats cluster.replay.host), under a budget of 4,096
streams; the relay port's TCP receiver grows a buffer with
what arrives, not to the length announced. A RESP or HTTP
door off loopback with no password or token is warned about
at -C and at start.
* [stats] /stats collections[].keeps (ephemeral, recoverable,
fleet-delete-safe) and copies, and a start line for each. The
start warns when the NIC has fewer receive queues than workers
or all interrupts on one CPU (alerts.host.link: rx_queues,
irqs, irq_cpus, tcp_retrans_s). [memory] pin = no runs the
arena unlocked (doc/config.md, "Two ways to run the memory").
* [tools] perfdump and perfload carry every record type (a hash
came back a string) and records over 64 KB; perfcli jget
prints valid JSON; upgrade plan prints -h HOST -p PORT;
perfcli reads a config's inline # notes as the daemon does;
the dashboard's default config is the packaged one; CLIENT
LIST names IPv6 clients.
* [php] php-perfcached 0.1.1: the seeds' second pass shares one
connect_timeout_ms; a secret holding a NUL is a ValueError;
the secrets file is warned about when its group or others have
any access; the Symfony adapter's clear() escapes glob
characters in its namespace, which could clear another's keys.
* [debian] An apt upgrade leaves perfcached running until you
restart it; it stopped the daemon and started the new build.
[alpine] The licence field is GPL-2.0-or-later AND MIT.
========================== Release 0.7.4.4 =============================
2026-11-05 Yury Kirsanov
* [lib] libperfd 0.7.5, with no change of ABI. A handle with a
spreading policy now follows the fleet while it is connected:
when a member comes up, one handle in N moves to it at its next
call, and a handle leaves a member that stops serving. The
default policy stays where it connected.
* [lib] A member that took the connection and then said nothing,
as a frozen daemon's kernel does, held a caller for the whole
I/O timeout on every re-dial, and could stall a pool of processes
for as long as it stayed frozen. A standby's dial no longer
holds a caller. connect_timeout_ms now bounds the handshake as
well as the TCP connect, and no answer is reported as a transport
error, not as a wrong secret.
* [wal] A snapshot taken while another thread deleted keys could
miss a record: the delete moved the bucket's last record into a
slot the snapshot had passed. The record's log entry was below
the snapshot's marker, so a restart lost an acknowledged write.
The snapshot now re-reads such a bucket under its lock.
* [page] An upstream master's tooltip said "not used (a master)"
beside a row saying writes go there. It meant the reads: it now
says "writes go here, not read (replicas only)", or "not read
(replicas only)" where writes go elsewhere.
* [php] lang/php: an extension for PHP 8.3 NTS over libperfd, with
a list of seeds and one handle a worker under PHP-FPM, a Symfony
cache adapter, and the Debian package php8.3-perfcached.
2026-11-02 Yury Kirsanov
* [upgrade] From 0.7.4.3, one node at a time. From 0.7.3, the
fleet moves together, as for 0.7.4.3 below.
* [wal] A snapshot taken while a table resized could miss
records: it read the live table alone, and the resize emptied
the old one under it. Those records were in neither the
snapshot nor the log replayed after it, so a restart lost
acknowledged writes. The snapshot now reads both tables and
holds the resize's swap and its end while it reads; a 0.7.4.3
node loads its files as before.
* [cluster] A member whose numbering an origin floored (the
origin no longer held deletes the member had not counted) took
the rebuild it was then asked for as an absence of 49 days: it
went back to recovering after it had said ready and pulled the
fleet's whole state, refusing requests meanwhile. It now
reconciles the records in question and stays ready.
* [cluster] A key deleted while a node was away could stay
readable on that node after it came back: the node asked about
each key once, and one live peer that did not answer in time
left the key kept, with nothing asking again. The node now
waits for the answers and walks again, up to three more times,
while any key has no verdict; what is still undecided after
that is kept, logged and counted (reconcile_unruled).
* [cluster] A handover (master_prefer), or any promotion, could
leave the fleet without a master for about ten seconds: the old
master's last keepalive, landing before the new master's first
map, made the new master yield to it while the old one yielded
to the new one, and each then waited on the other. A new
master now ranks a keepalive against the term it claimed.
* [cluster] A member short of deletes from a node that then
restarted could never catch up: cluster.acks_stuck stayed up for
good, and if the member had not restarted itself, keys deleted
in that gap stayed readable on it. After 30 s the member now
skips what nobody can resend and reconciles its records with
the fleet (acks.gap_dead counts it).
* [dashboard] A write-through collection's title says
read/write-through, not read-through.
========================== Release 0.7.4.3 =============================
2026-11-01 Yury Kirsanov
* [upgrade] The cluster header changed (version 6): a 0.7.3 node
and a 0.7.4.3 node cannot talk, so the fleet moves to 0.7.4.3
together - stop every node (perfcli -E ... fleetstop), install,
start them. Clients of 0.7.3 keep working.
* [security] Every sealed cluster frame is taken once. It names
its sender, the sending thread's stream and its place in it,
inside the authenticated header; a copy taken before, one too
far behind its stream, or one from the sender's previous
process is dropped and counted in /stats cluster.replay. A
forwarded INCR the network doubled or someone sent again used
to apply twice.
* [security] The cluster seal is XChaCha20-Poly1305: its 24-byte
nonces stay unique however many frames one fleet key seals.
* [security] [secrets] cluster_accept: a second cluster secret
frames are also opened with, never sealed with, so the secret
changes in three rolling restarts instead of a flag day.
* [cluster] perfcli -E ... master_prefer <node>, on the master,
hands mastership to that member once it holds the synced
state: it promotes and the old master steps down, with no
interval without a master - for moving mastership before a
restart. master_auto cancels one still pending. An election
prefers the map's live standby.
* [cluster] The bulk plane reads only from a member's host and
wants a connection's first message within a second; an idle
connection from anywhere held it for five, with bootstrap
pulls and transfers queued behind it.
* [cluster] A member ignores a master beacon from a term older
than its map's, a master steps down on a newer one and follows
its sender at once, and the standby is the member an election
would promote. A datagram that does not authenticate is named
by its source, once a minute. [cluster] max_datagram is part
of the fleet's configuration fingerprint.
* [cluster] A member asked for deletes the origin no longer
holds is told where to floor its numbering and rebuilds - a
hole wider than the origin keeps left it acks_stuck for good.
* [cluster] After a peer comes back, a miss asks only that peer,
and only when it may hold something new (back from a
partition, or with a recovered log); a node not yet caught up
still asks every peer. Every return of any peer used to send
every miss to every peer for 30 s.
* [cluster] The membership push carries each member's state, and
a state event goes out when it changes; libperfd routes to a
member only once it is ready, and an async handle learns the
fleet again every refresh.
* [cluster] The relay's TCP receiver accepts only a member's
host, its send queues are bounded together, and its UDP sends
never block.
* [wal] An EXPIRE that lapsed within the second it was set was
not logged, and after a crash its key came back.
* [table] While a resize drains, a key's newer copy in the old
table answers, not an older one copied before the swap.
========================== Release 0.7.4.1 =============================
2026-10-31 Yury Kirsanov
* [cluster] Eager replication's write pushes ride the relay
port when a peer answers on it: a worker sends its group from
a socket of its own and the peer's relay threads apply it,
instead of one thread receiving every cluster datagram. The
relay threads take one sending thread each - the sender's lane
rides in the datagram's header and a socket filter picks the
thread (Linux) - rather than the kernel's hash, which left one
of two threads full and the other a quarter busy. A peer on
an older build, or one with apply_threads of 2 or more, gets
its pushes on the cluster port as before; /stats
cluster.repl_plane_* count both paths.
* [cluster] A set and a delete of one key that arrive together
on two threads end as they would on one: the set re-reads the
delete after its store and takes a superseded copy back.
* [table] While a resize drains, the new table answers for the
keys the old one still holds: a miss reads the old table, and
a write that finds the key absent (set, add, TTL change)
carries its record over first, so an increment counts on and
a delete is never undone. A key written just before the swap
read as a miss until the drain reached it. A write the new
table takes drops the old table's copy, so a key given a
shorter TTL during the drain no longer reads its old value
again once the new one expires.
* [wal] A full log makes the writer wait under every fsync
policy, instead of dropping the record and refusing writes
while the node heals: a connection that writes is held,
unread, while its worker serves the others (/stats among
them), and a log with no free segment waits for the
snapshot it asks for rather than overwrite one. [wal]
on_full = heal keeps the old behaviour. /stats
wal.writer_pauses, full_waits, full_wait_ms. On io_uring a
held connection keeps what its receive took off the socket
before the hold: a pipelined burst of more than 1 MB used to
close it, logged as "peer closed".
* [perf] A SET costs 7% less CPU: the write skips the negative
cache once every entry in it has expired, a slot's owner is
looked up once per map version per thread instead of hashed
over every node on each command, the map-placement counter
is per thread, and the RESP door finds a command's stats row
from the last four it ran. 207, one node, 8 workers, RESP SET
200 B: 1.59-1.61 against 1.47-1.50 us of CPU a SET.
* [libperfd] An encrypted async handle seals what it has queued
once per write, not once per request: a pipeline of 32 is one
record where it was 32. 207, encrypted over loopback, 8
workers: SET 32 B 4.8M -> 6.7M/s (server 1.67 -> 1.19 us of
CPU a request, the client 1.34 -> 0.92), GET 5.4M -> 7.7M/s,
SET 200 B 3.0M -> 4.5M/s. Any server reads it. /stats
native.binary.records counts the records opened.
* [security] The native door carries requests in the clear
by default, authenticated as before: the client secret's
Noise handshake still opens every connection, then libperfd
asks for plaintext, the node grants it, and the client's first
record proves it holds the session's keys (a replayed
handshake cannot). [listen] encrypt = yes keeps a door
encrypted - for all its listeners, or per listener with
"tcp = <addr:port> encrypt=yes"; libperfd's
perfd_opts.encrypt = 1 and perfcli --encrypt keep a
connection encrypted. enable needs an encrypted connection
(perfcli -E and -e imply --encrypt). The cluster plane is
unchanged. Older nodes and older clients keep encrypting.
The node says at start which doors anyone on the network
can read and alter; /stats native.plain.conns counts the
connections.
* [wal] The log is written a batch at a time from one buffer,
not a record per write vector: on Linux 6.12 the kernel
spent most of the pump's time faulting in each record's
pages. 207, 200 B SETs from another host, fsync =
everysec on RAM: 1.59M -> 3.91M SET/s. The WAL's buffers
grow by 4 MB (wal.buffer_bytes). The pump checksums three
records at once (three CRC32C chains): 3.9M -> 4.2-4.3M SET/s.
* [cluster] Replication groups longer than [cluster]
max_datagram go to the peer's relay port over TCP - a
connection per sending worker, read by the relay threads -
instead of as fragmented datagrams; max_datagram defaults to
1,232 (what IPv6 guarantees on any path; it was 1,400). On a
3-node eager fleet: SET 4.13M -> 4.90-5.05M/s, 50% GET even.
The relay port is TCP and UDP now; max_datagram = 0 sends
everything as datagrams. The multicast socket receives its
own group only. pubsub_rx_threads stops at 15, the lanes
there are.
* [security] perfload and perfdump run zstd without a shell
and open a dump's files only by plain names in its
directory: a file name with a quote in a dump's manifest
ran a command.
* [memory] Under a cgroup limit that can never hold the
memory floor, the arena and the process, the node refuses
to start and says the sum; perfcached -C says it
beforehand. The client guard's log lines name the limit -
under a cgroup with its usage and inactive file pages - and
clients.refused is raised while it refuses.
* [cluster] /members shows a build's fourth version number.
* [cluster] A heartbeat fits the smallest IPv6 path (1,232
bytes of UDP): it carries 8 collections' figures a beat,
rotating through the first 16, and peers keep each until it
goes unsaid for 5 s. It was up to 1,448 bytes sealed.
* [dashboard] The enable secret is taken only over the
tool's own TLS or from its own host: a session asked for over
plain HTTP from another host is refused (403).
* [alerts] The network link is watched: the device under the
node's address - a VLAN followed to its bond, an
active-backup bond to its active slave - read once a second
for bytes a second against its speed and drops. /stats
alerts.host.link, /metrics perfcached_link_*, and the
host.link alert at [alerts] link_warn_pct / link_crit_pct (80
/ 95) of the busier direction over a minute, raised after 5
minutes and at once, critical, when cluster datagrams drop
while the link is that full. [daemon] link_monitor = auto |
off | <device>, link_speed_mbps for a device with no speed.
Each member reports its link in its heartbeat: the
dashboard's member cards show a link bar and blink amber at
warning, red at critical.
* [wal] The log can follow the load: [wal] segments_max lets it
grow from segments (the floor) when it is half full or its
free segments would last under three snapshots - a segment
at a time, provisioned in the background - and give the
extra segments back after five quiet minutes. A 40,000 x 1
KB fill into 4 x 1 MB segments: 2.8 s fixed, 0.8 s growing.
* [wal] The "wal: FULL" line says the node heals where it does,
not that it is FAILED until restarted.
* [cluster] pubsub_rx_threads defaults to auto: half the
workers, rounded up, at most 15 (it was 2). With 12 workers
at 50% writes, 4 relay threads left 2.6% of the peers' pushes
unread and 6 left none.
2026-10-30 Yury Kirsanov
* [table] A full bucket links overflow buckets of its own,
under its own lock. The table-wide overflow area and its one
lock - walked by every miss and every new key once anything
had spilled into it - are gone; a split re-lays the bucket's
chain.
* [libperfd] Connections are spread over the daemon's workers:
after it dials, a handle asks the daemon which worker it landed
on (the new conninfo verb) and dials again while that worker
holds more than one connection beyond the least loaded one.
On by default; opts.worker_balance = -1 turns it off. Unix
sockets and perfd_connect_async are left as they land.
* [build] Builds with gcc 13 and -flto (Ubuntu 24.04's default):
a variable gcc took for maybe-uninitialised stopped -Werror.
=========================== Release 0.7.3 ==============================
2026-10-28 Yury Kirsanov
* [cli] perfcli upgrade abort no longer connects to the node it
is pointed at: the abort is a file beside the journal, and a
roll restarts that node too - an abort asked while it was down
failed with "cannot connect" and the roll ran on.
* [wal] With fsync = always, a write that finds its WAL ring
full waits for the log to drain instead of being dropped
after the client was told it succeeded. The ring depth the
probe derives was not always enough: on a fast NVMe disk a
burst still lost 9% of its writes to the log. A long sync
now shows as write latency; /stats wal.ring_waits and
ring_wait_ms count it. everysec and no are unchanged.
2026-10-27 Yury Kirsanov
* [cluster] A member back after a long absence resyncs: away
longer than resync_after_s (a day by default), or back from a
split that no peer was up long enough to witness, it drops
what it stored before and pulls the fleet's state, refusing
clients until it holds it, instead of keeping keys the fleet
deleted meanwhile. Writes it accepted after the absence began
are kept. /stats cluster.resyncs counts them.
* [cluster] A restarted node dates its absence from what it
last wrote again, not from its own restart. Since 0.4.1 the
directory lock, written at startup, was the newest file in
the WAL directory, so every restart looked like an absence of
a few seconds: a peer that had been up 30 s before the RESTART
counted as a witness of the whole outage. A clean stop now
also stamps the moment it stopped.
2026-10-26 Yury Kirsanov
* [upstream] A read straight after a delete written through no
longer answers the value just deleted. Redis's echo of the
delete took the mark that answers "gone", and the read after
it could reach a replica that had not applied the delete yet;
a delete now sends that read to the master, as a write does.
2026-10-25 Yury Kirsanov
* [cluster] Deletes are acknowledged. The node that makes a
delete numbers it, and every member says with its keepalive
how far it holds each node's deletes - once its WAL has synced
them. A node forgets a delete as soon as every member holds
it, counting the members gone for less than tombstone_retain_s
at what they last said; a member that missed one asks for it
again. tombstone_retain_s and tombstone_retain_max become how
long and how much a missing member is waited for: while the
fleet is whole the table holds a beat or two of deletes.
[cluster] tombstone_acks = no keeps the time rule, and so does
a fleet with a member on an older build.
* [cluster] An expiry in an eager collection leaves the table
10 s after it is reaped - every member reaps its own copy -
unless a write had shortened the key's TTL.
* [cluster] A member back after a silence, without a restart,
that may lack a delete nobody holds any more is asked to
rebuild: it reconciles every record it stored before it went
silent with the fleet, and keeps what it wrote since. The
alert cluster.peer_absent says so. Eager fleets.
* [cluster] A member restored from a snapshot older than deletes
the fleet has since forgotten reconciles in full: the fast
path is refused, and says why.
* [cluster] On a multicast fleet a delete goes to the group once
instead of to each peer, while the fleet confirms and the
delete fits max_datagram. [cluster] data_multicast = off
keeps one copy a peer.
* [stats] /members gives each member's mark of each node's
deletes, how far behind it is and how long it has stood still;
/stats cluster.acks.held_by says which member the kept deletes
wait for; the alert cluster.acks_stuck names a member that
stops confirming while the others go on.
=========================== Release 0.7.2 ==============================
The first release since 0.6.6. It also carries the 0.7.1 and
0.7.0 changes below, which were never released on their own.
2026-10-26 Yury Kirsanov
* [collections] rename refuses a read-through collection, its
.nofall companion, and a new name a read-through collection
has in the config. The upstream is bound to the configured
name, and a live rename stopped reading and writing through
without a word. Rename it in the config and restart every
node at once.
* [upstream] A read-through copy - a fetched value, or the mark
an EXISTS keeps - no longer answers after the upstream has
expired the key. It took the time left rounded up to whole
seconds and answered for up to a second after; a copy now
goes no later than the key.
2026-10-24 Yury Kirsanov
* [cluster] An mget across owners: the native mget and RESP MGET
look up every key this node does not hold, as a GET does, all
at once and under one deadline. Before, a key on another node
read as a miss in shard, spread, store and proxy. A key no
node answered in time is reported as unanswered (RESP:
-TRYAGAIN), never as absent.
* [config] Cache collections: [collection x] durable = no keeps a
collection off the WAL and out of the snapshot. After a
restart the peers refill it; a whole-fleet restart leaves it
empty.
* [network] IPv6 client listeners ([::1], [::], dual-stack),
IPv6 entries in resp_allow and http_allow, redis://[::1]
upstreams. Without working IPv6 on the host, names resolve to
IPv4 only and an IPv6 listener is refused with the reason.
* [cluster] A collection's autoscale mode is the fleet's: the
autoscale verb reaches every member, a member that was away
takes it when it returns, and it survives restarts. The verb
is refused while a member runs an older build; the alert
cluster.autoscale names a member holding other modes.
* [wal] The WAL's room on the page, in /stats and /metrics: its
segments, size, the share in use, how fast it fills and how
long the free space lasts against a snapshot. The alert
wal.capacity warns before the log fills.
* [wal] A segment left open by a stop without a shutdown (kill
-9, a crash) is closed at the next start. Before, it counted
as never covered by a snapshot, and one lap of the ring later
its reuse was reported as an overrun - the node went FAILED
until it healed.
* [cluster] After a restart, a member asks its peers which of
its records they hold, up to 256 keys a datagram, instead of
pulling each one (a fleet with an older member pulls, as
before).
* [cluster] Partitions: in proxy mode, a key both sides wrote
while cut apart is resolved to one value after the heal, also
when the two writes carry the same version and when a node
already remembers one side's holder. A master that steps down
no longer reuses the term it yielded to.
* [cluster] The cluster wire refuses what it used to obey or
misread: a map or keepalive at an implausible term, a value
length that wraps, a node id out of range, frames from a
sender that is not a member, and unicast datagrams meant for
another daemon on the same host.
* [resp] A command waiting on the cluster holds what was
pipelined behind it on the connection, so replies keep their
order; pull_timeout_ms is now honoured to within 25 ms (it
could take up to a second longer).
* [core] A read no longer misses a key that the overflow drain
or a table split moves at the same moment, and a sparse
class's last records are no longer moved back and forth.
* [stats] The retained-delete table counts expired keys apart
from deletes, on the page, in /stats, /metrics and the
cluster.tombstones alert; an expired key replayed to a
member back from a silence stays counted as one.
* [cluster] At the retained-delete table's cap the expired keys
go first: an expiry never pushes out a delete, so a short-TTL
collection no longer makes the table forget real deletes.
* [memory] A dropped table's index, or the one a resize
replaced, goes back to the room for records once nothing
carved after it is still in use; until then /stats reports
it as arena_free_tables, no longer as used.
* [libperfd] The connect timeout is honoured
(connect_timeout_ms, 5 s by default; standby connections
1 s). Before, a member whose host dropped the connection
attempt - gone dark, cut off by a partition - held a
client's first call for about two minutes.
* [tests] Fault-injection suites in CI in four groups, a
container fleet for partition tests, and a seeded fuzzer for
the hash table.
=========================== Release 0.7.1 ==============================
Not released: v0.7.1-rc1 to -rc11 were candidates only. These
changes ship in 0.7.2.
2026-10-20 Yury Kirsanov
* [upstream] Read-through and write-through in shard and spread:
a through collection in shard reads and writes a key at its
owner, in spread at its K holders; the drain sweep takes each
node's own share; the fleet table shows each member's copies.
* [upstream] A client reads its own write-through: inside
upstream_echo_ms of a node's own write, a fetch of the key goes
to the master, not a replica that may not have the write yet
(before, a GET right after a SET could answer nil or the value
before it). The echo of a node's own write refetches the key