Repository navigation
GEODE-vector-pr4: Adaptive Chordal Voronoi Continuous Vector Listener with RVV Monotonicity - #8157
Draft
gouthamaenugu wants to merge 15 commits into
Draft
gouthamaenugu wants to merge 15 commits into
gouthamaenugu wants to merge 15 commits into
Conversation
added 9 commits
November 21, 2026 03:55
… with RVV monotonicity
- Implement ChordalVoronoiRouter (Theorem 1 zero-false-negative chordal Voronoi metric pruning on S^{d-1} with IEEE-754 float32 safety bound; Proposition 1 analytical M_crit crossover with dual-threshold hysteresis [0.85 M_crit, 1.15 M_crit], live add/remove, spherical k-means++, telemetry & FNR verification hooks).
- Implement RvvMonotonicVectorDispatcher and RvvClientGate (Theorem 3 RVV-stamped events sourced from Geode VersionTag/VersionStamp/RegionVersionVector, per-bucket replayable delta tail buffer bounded by V_ckpt <= V_client, promoted-bucket snapshot recovery, and client high-water deduplication & strict per-(subscriptionId, bucketId, memberId) monotonicity).
- Implement ContinuousVectorQueryService facade with Geode CacheListener and PartitionListener bridges.
- Register new Serializable classes in sanctioned-geode-lucene-serializables.txt.
- Add unit tests (ChordalVoronoiRouterTest, RvvMonotonicVectorDispatcherTest) and 4-node failover chaos DUnit test (ContinuousVectorRvvFailoverDistributedTest).
…gate cleanup, serialized callbacks, overflow signal, high-d epsilon) - PR4-B1 [CRITICAL]: Add per-bucket async primary-promotion barrier (beginAsyncPromotion / completeAsyncPromotion / cancelAsyncPromotion) in RvvMonotonicVectorDispatcher and ContinuousVectorQueryService.createPartitionListener so live post-promotion writes buffer until async tail replay completes and drain in ascending version order. - PR4-B2 [CRITICAL]: Add RvvClientGate.removeSubscription(String) and ContinuousVectorQueryService.attachClientGate/detachClientGate + compactUpTo so unregisterSubscription purges stale high-water entries and never pins V_ckpt. - PR4-B3 [HIGH]: Serialize high-water check, advance, and downstream listener delivery per (subscriptionId, bucketId, memberId) StreamState in RvvClientGate.tryAccept to guarantee strict monotonic delivery under concurrent callers. - PR4-B4 [HIGH]: Replace silent tail eviction on maxTailPerStream overflow with explicit tailOverflowCount, resyncRequired stream tracking, Log4j warn log, and TailOverflowListener callback. - PR4-B5 [MEDIUM]: Scale ChordalVoronoiRouter float32 dot-product safety epsilon linearly with dimension (max(1e-4, d * 1e-6)) and validate finiteness (reject NaN/Inf) in routeNormalized. - Add reproducing unit tests covering all 5 defects (PR4-B1..B5).
…qrt-free coupled cosine bound
…orem 1 FNR=0 until 20% churn recluster
… per-bucket RVV batch dispatch
…ronoi CoW, and Theorem 1 float64 outward rounding
1. Periodic & promotion-end per-bucket RVV watermark heartbeats:
- Add ContinuousVectorEvent.watermarkHeartbeat(...) and heartbeat flag
(sanctioned-geode-lucene-serializables.txt updated).
- Advance RvvClientGate highWaterVersion monotonically across all active
subscriptions on heartbeat without invoking match callbacks; compute
strict Theorem 3 Invariant 4 safe checkpoint across all active subscriptions.
- Emit periodic heartbeats every heartbeatIntervalEvents (default 64,
configurable, 0 disables) in RvvMonotonicVectorDispatcher and promotion
watermarks on primary failover so healthy 0%-match subscribers advance
V_ckpt without tail buffer overflow.
2. True O((M/K)d) per-cell copy-on-write in ChordalVoronoiRouter:
- Omit global O(Md) flat arrays from CHORDAL_VORONOI RouterSnapshots and
maintain subscriptionCellIndex for O(1) cell lookup on incremental remove.
- Copy only the affected VoronoiCell on live insert/remove; materialize
flat SIMD arrays only on mode switch / survival guard reversion.
3. Exact Theorem 1 float64 arithmetic margin & outward rounding:
- Add FLOAT64_UNIT_ROUNDOFF (2^-53) and computeFloat64Eta(d) = 2*gamma_{d+2}^f64 + 4*u_f64
into computeNormMargin(d).
- Round VoronoiCell.minCosineThreshold outward via
Math.nextDown(1 - 0.5*(B_k^up)^2 - epsilon_dot - 8*u_f64) (and -Infinity
when B_k^up >= 2.0).
…al reprobe, and RVV reconnect replay
…ng, reconnect scoping, d=1 & underflow bounds
…ush, and IdempotentRvvConsumer crash recovery
4 of 6 tasks
added 6 commits
November 25, 2026 10:49
…tent watermark guard, subnormal/maxCellSize hardening
…er match pending guard, and d=1/tau=1/subnormal tests
… holdback expiry coverage
…ery, staggered-ACK minimum, and |S|=0 continuity
…nd live secondary shadow tail
…ealthy admission, and multi-sub failover trace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 4: Adaptive Chordal Voronoi Continuous Vector Listener with RVV Monotonicity
feature/GEODE-vector-pr4-rvv-listenerdevelop(46643af515)d00c27af63ae414b1f157190825a3f8d665d4c94(13 files changed, +13775 / -0)geode-lucene(Apache Geode 2.1, bundled Apache Lucene9.12.3)For all changes, please confirm:
GEODE-*JIRA ticket assignment and commit prefix update.)develop)?O(|V_k|)Voronoi removal, online survival-rate SIMD guard + coalesced async RVV batch dispatch, RVV watermark heartbeats + trueO((M/K)d)per-cell Voronoi CoW + Theorem 1 float64 outward rounding, float64 max-abs norm +taustratification + periodic survival re-probe + RVV reconnect replay, equal-versionv_hdata-before-heartbeat FIFO ordering + reconnect sink scoping +d=1/binary32 underflow guards, contiguous RVV holdback + idle-tail heartbeat flush +IdempotentRvvConsumercrash recovery, oldest-uncovered trickle heartbeats + pending-intent watermark guard + subnormal/maxCellSizehardening, bounded holdback gap-closure/resync + out-of-order match pending-intent guard +d=1/tau=1/subnormal boundary coverage, sequential per-stream WAL staging + two-sided holdback expiry coverage, atomic durable intake + ordinary-reconnect recovery + staggered-ACK checkpoint minimum +|S|=0version continuity, atomic per-stream consumer execution/recovery fencing + compacted replay floorV_floorresync gate + live secondary shadow-tail buffering, andV_floor <= V_client < V_ckptexact> V_clientreplay fix + atomicS_healthyre-admission + batch-levelIdempotentRvvConsumerstaging — ready to squash on upstream submission.)gradlew buildrun cleanly? (Verified:geode-lucene:spotlessCheck,:geode-lucene:checkPom,:geode-lucene:javadoc,:geode-lucene:test --rerun,:geode-lucene:distributedTest --tests "*ContinuousVectorRvvFailoverDistributedTest*" --rerun, and:geode-lucene:integrationTest --tests "*AnalyzeLuceneSerializablesIntegrationTest*" --rerun.)Summary / Motivation
Continuous Query (CQ) in Apache Geode evaluates scalar predicates over incoming region mutations, but has no native mechanism for standing semantic similarity subscriptions (
cos(v, q_i) >= tau_i) over high-dimensional vector streams — nor a streaming failover delivery guarantee tied to Geode's Region Version Vectors (RVV).This PR introduces an adaptive continuous vector matching and RVV-monotonic dispatch subsystem in
org.apache.geode.cache.lucene.internal.vector.continuous:ChordalVoronoiRouter&VectorSubscription): Normalizes all finite non-zero float32 vectors (from all-subnormal vectors toFloat.MAX_VALUE) via direct binary32-to-binary64 widening before max-abs pre-scaling, and routes incoming vectors against standing cosine-similarity subscriptions by adaptively switching between direct linear scan (FLAT_SIMD) and Chordal Voronoi cell pruning (CHORDAL_VORONOI, using a closed-form crossover threshold with hysteresis to prevent mode oscillation). Supports heterogeneous-tauquantile stratification (thresholdStrata=4) so low-tauoutliers do not poison high-taucells, exposesgetMaxCellSize()telemetry onRouterTelemetry, and runs periodic survival-guardO(Kd)re-probing (survivalGuardReprobeInterval=4096,survivalGuardRecoveryMargin=0.10) to recoverCHORDAL_VORONOIafter workload regime shifts. Stage-1 pruning operates directly in inner-product space via precomputed float64 coupled cell thresholdss_k^min = 1 - (B_k^up)^2 / 2 - epsilon_dot(d)derived from Higham's IEEE-754 Theorem 3.1 plus the binary32 FTZ/subnormal underflow bound (d * 2^-126), eliminatingMath.sqrtfrom the hot path, safely guardingd == 1, empty clusters, and antipodal zero-sum centroids, and guaranteeing zero pruning-induced false negatives (FNR = 0relative to Stage-2 float32 scan) across all boundary dimensions (d in {1, 7, 8, 9, ..., 4096}) even attau_i = 1.0.V_floor, Live Secondary Shadow Tail & Atomic Per-Stream Consumer Fencing (RvvMonotonicVectorDispatcher,ContinuousVectorQueryService,RvvClientGate, &IdempotentRvvConsumer): Tracks per-(bucketId, memberId)RVV high-watermarks and monotonic compacted replay floorV_floor[b, m](advancing cleanly even during|S|=0empty intervals; immediately flaggingresyncRequiredif a connecting/rejoining client presentsV_client < V_floor), buffers replicated secondary vector mutations live via per-bucketBucketRegionshadow-tailCacheListeners so repeated hot-key overwrites never coalesce across failover, advancesV_ckptunconditionally tomin_{i in healthy} ack[i]across staggered multi-subscriber ACKs, enforces contiguous-version holdback sequencing (enforceContiguousVersions=true,maxHoldbackGap=128,maxHoldbackAgeMillis=5000,onNonMatchingBucketVersionfor destroys/invalidates/non-vector updates), provides age-bounded oldest-uncovered-mutation heartbeat flushing (flushIdleHeartbeats+ optional scheduler), gates live writes behind asynchronous tail replay during primary promotion, enforces equal-versionv_hdata-before-heartbeat ordering within atomic per-bucket serial FIFO batches, and providesIdempotentRvvConsumerwith single-lock atomic durable admission (v <= committedWatermark || isEffectApplied(id) || isPendingIntent(id)+stagePendingIntentIfAbsentinsidestreamStageLock, removing any unlockedRvvClientGatepre-check) plus strict per-stream execution/recovery fencing (streamExecutionFences, lock ordersorted execFences -> streamStageLock) serializing in-flight handlers against concurrent versions,recover(), andprepareForReconnect().Key Changes
Adaptive Continuous Vector Routing & Subnormal-Safe Normalization
VectorSubscription:subscriptionId,normalizedQueryVector,similarityThreshold, and derivedchordalTolerance.VectorSubscription.normalize(float[])widens binary32 inputs to binary64 ((double) v) prior to any DAZ/FTZ operation and applies unconditional max-abs pre-scaling in float64 (maxAbs,scaled = (double) v / maxAbs,normSq += scaled * scaled,invNorm = 1.0d / Math.sqrt(normSq)) so all finite non-zero float32 vectors including all-subnormal inputs (Float.MIN_VALUE,1e-19f,1e-30f) andFloat.MAX_VALUEnormalize with zero overflow/underflow.ChordalVoronoiRouter(org.apache.geode.cache.lucene.internal.vector.continuous):VectorSubscriptionregistrations with normalized query vectors and chordal tolerances, exposinggetMaxCellSize()(max_k m_k) on bothChordalVoronoiRouterandRouterTelemetry.FLAT_SIMDandCHORDAL_VORONOIrouting modes using closed-form crossoverM_critwith hysteresis band to eliminate thrashing.tauQuantile Stratification (thresholdStrata, default4): Automatically stratifies subscriptions into up tomin(thresholdStrata, K)quantiletau-bands whentauMax - tauMin >= 0.03fandK >= 4with proportionalKallocation per band, plus bound-aware incremental insert (minMemberThreshold/maxMemberThresholdonVoronoiCell) preferringtau-compatible cells so low-tauoutliers do not poison high-taucell bounds.d = 1/ Degenerate Centroid Safety:computeHighamDotEpsilon(int dim)explicitly includesdim * FLOAT32_UNDERFLOW_QUANTUM(dim * 2^-126) alongside2 * gamma_d + HIGHAM_DOT_SAFETY_FLOOR.buildSphericalVoronoiCellsandbuildSingleStratumVoronoiCellsguard empty bands,d = 1(K > |S^0|empty cluster collapse), and antipodal zero-sum centroids via deterministic fallback centroids (assignDeterministicFallbackCentroid), preserving zero pruning-induced FNR relative to the Stage-2 float32 scan across alld >= 1.B_k^up = max(||q_i - c_k||_2 + rho_i^up) + delta_norm(d)(including explicit float64 arithmetic margineta_f64(d) = 2 * gamma_{d+2}^f64 + 4 * u_f64viacomputeFloat64Eta(d), plus configurableuseCoupledBound(false)decoupled ablation toggle) and outward-rounded sqrt-free cosine thresholdss_k^min = Math.nextDown(1 - (B_k^up)^2 / 2 - epsilon_dot(d) - 8 * u_f64)(or-InfinitywhenB_k^up >= 2.0).O((M/K)d)per-cell copy-on-write live incremental add and remove inCHORDAL_VORONOImode: omits globalO(Md)flat arrays from VoronoiRouterSnapshots, maintainssubscriptionCellIndexfor O(1) cell lookup on remove, replaces only the single affectedVoronoiCell(retaining conservative cell bounds to preserve zero false negatives) with periodic spherical k-means compaction at 20% churn, and materializes flat SIMD arrays only on mode switch or survival-guard reversion.observedSurvivalRateEWMA) with configurablemaxVoronoiSurvivalRate(default0.85):computeMCritreturnsInteger.MAX_VALUEwheneverp_bar >= 1.0orp_bar >= maxVoronoiSurvivalRate, and sustained isotropic streams (p_bar_hat >= 0.85) automatically downgrade toFLAT_SIMD. When tripped, retainsprobeCellsonRouterSnapshotand runs a 16-sample (DEFAULT_SURVIVAL_GUARD_PROBE_BURST_SIZE = 16)O(Kd)re-probe burst everysurvivalGuardReprobeIntervalroutes (default4096,0disables) without alteringFLAT_SIMDresults, automatically restoringCHORDAL_VORONOIwhenp_probe <= maxVoronoiSurvivalRate - survivalGuardRecoveryMargin(default margin0.10, tracked viasurvivalGuardRecoveryCount).RVV-Monotonic Failover, Compacted
V_floorGate, Live Secondary Shadow Tail & Atomic Per-Stream FencingRvvMonotonicVectorDispatcher,ContinuousVectorQueryService,ContinuousVectorEvent,ContinuousVectorEventSink, &RvvStreamKey:RvvStreamKey), bounded replay tail buffers, checkpoint compaction (ignoring regressive ACKs), and explicit tail-buffer overflow resync signals + overflow callbacks.V_floor[b, m]), AtomicS_healthyRe-Admission & Live Secondary Shadow Tail: TracksV_floor[b, m] <= V_ckpt[b, m](getReplayFloorVersion,getReplayFloorResyncCount,ReplayFloorResyncListener,recordReplicatedCheckpoint) advancing monotonically onadvanceCheckpoint(including empty|S_healthy| == 0 && |S| == 0intervals viaunregisterSubscriberForCheckpoint) and tail overflow eviction;admitSubscriberForContinuity(...),admitAndReplayForReconnect(...)(lock ordersubscriberRegistryLock -> state), and non-nullreplayUncheckpointedForReconnect(...)immediately flagresyncRequired(0partial replay, not enrolled) wheneverV_client < V_floor, and otherwise atomically pinsubscriberIdinS_healthyatV_client(so concurrent faster ACKs cannot pushV_floorpastV_client) and replay strictly over(Math.max(V_floor[b, m], V_client[m]), V_S[b, m]](> V_clienteven whenV_floor <= V_client < V_ckpt, bounding tail retention byV_floor). Wires per-bucketBucketRegionsecondary shadow-tailCacheListenerinsidecreatePartitionListener(afterRegionCreate/afterBucketCreated/afterSecondary) with hardened secondary member-ID fallback inextractFromEntryEvent, buffering replicated vector mutation versions live on secondaries so repeated overwrites to hot keys never suffer state-store coalescing loss on primary failover.|S|=0Continuity: AddsregisterSubscriberForCheckpoint,unregisterSubscriberForCheckpoint, andacknowledgeSubscriberCheckpointadvancingV_ckptunconditionally tomin_{i in healthy} ack[i]on idle tails and subscriber exit without regression, plus|S|=0empty-subscription version continuity (getLastDispatchedVersion,getNextExpectedVersion, and zero tail overflow across empty intervals).enforceContiguousVersions, defaulttrue): Holds out-of-orderregionVersion > nextExpectedentries inholdbackByMember(up tomaxHoldbackGap=128and ageDEFAULT_MAX_HOLDBACK_AGE_MILLIS=5000, configurable viasetMaxHoldbackAgeMillis) and drains contiguous ready versions strictly in ascending order; exposesonNonMatchingBucketVersion(bucketId, memberId, regionVersion)wired intoContinuousVectorQueryService.createCacheListener(afterDestroy,afterInvalidate, null/non-vector updates).flushExpiredHoldbackGaps(...)(also integrated intoflushIdleHeartbeats/scheduler) deterministically closes stalled gaps exceedingmaxHoldbackGapormaxHoldbackAgeMillis, marksresyncRequiredStreams, notifiesHoldbackGapListener, incrementsholdbackGapClosedCount, and drains ready successors contiguously so a missing predecessor can never stall delivery indefinitely (while gaps repaired before expiry preserveresyncRequired=false).oldestUncoveredMutationTimeMsByMember(set only wheneventsSinceHeartbeattransitions0 -> 1and cleared on heartbeat reset) andlastDispatchedVersionByMember, firingflushIdleHeartbeats(long nowMillis, long maxAgeMillis)(andstartIdleHeartbeatScheduler/stopIdleHeartbeatScheduler) whenevereventsSinceHeartbeat > 0and(nowMillis - oldestUncoveredMs) >= maxAgeMillis, preventing heartbeat starvation under both idle tails and steady sub-interval zero-match trickles.(bucketId, memberId)RVV watermark heartbeats (ContinuousVectorEvent.watermarkHeartbeat(..., replayed)) periodically everyheartbeatIntervalEventsprimary mutations (default64, configurable,0disables) and at the end of primary-promotion and reconnect replays.v_hData-Before-Heartbeat Ordering & Serial Per-Bucket FIFO: When a mutation atv_hproduces both match events andemitHeartbeat == true,evaluateAndDispatchplaces all match events forv_hstrictly beforewatermarkHeartbeat(..., v_h)in one atomicPendingDispatchBatchenqueued ontoBucketState.pendingDispatchBatches. Both synchronous and multi-threaded async executors drain each bucket serially (dispatchDrainingCAS +drainOwnerThreadreentrancy guard) without concurrent overlapping sink dispatches.admitAndReplayForReconnect(...)andreplayUncheckpointedForReconnect(int bucketId, Map<String, Long> clientHighWaterByMember[, ContinuousVectorEventSink targetSink, Runnable onReplayedUnderLock])undersynchronized (state), pushing replayed batches strictly over(Math.max(V_floor[b, m], clientHighWaterByMember[m]), V_S[b, m]]across all retained streamsm(both pre-crashm_Pand post-promotionm_S, including(V_client, V_ckpt]whenV_floor <= V_client < V_ckpt) and trailing replayed watermark heartbeats onto the same per-bucket serial FIFO queue BEFORE invokingonReplayedUnderLockand releasingsynchronized (state)(tracked viatotalReconnectReplaysHandled).RvvClientGate&IdempotentRvvConsumer:RvvClientGateenforces strictly monotonic per-(subscriptionId, bucketId, memberId)delivery across out-of-order and multi-subscription streams (tryAcceptandtryAcceptBatch), serializes concurrent callbacks on the same stream, advanceshighWaterVersionmonotonically on watermark heartbeats without invoking match listeners, enforces strict Theorem 3 Invariant 4 safe checkpoint bounds across all active subscriptions, exposesgetSafeHighWaterByMember(int bucketId)for slow-reconnect handoff, and documents its gate-delivery contract in Javadoc.IdempotentRvvConsumerkeys durable delivery strictly by(subscriptionId, bucketId, memberId, regionVersion)(EventDeliveryId), overridesonEventBatch(List<ContinuousVectorEvent>)->processEventBatch(atomically staging all matches in a batch intoPENDINGbefore any effect or trailing covering heartbeat executes), addsadmitAndReconnectReplay(...), eliminates any unlockedRvvClientGatepre-check prior toPENDINGstaging (v <= committedWatermark || isEffectApplied(id) || isPendingIntent(id)+stagePendingIntentIfAbsent(event, id)atomically insidestreamStageLock,durableAdmissionsCount,CrashPhase.BEFORE_DURABLE_PENDING_STAGE), and enforces a strict per-stream execution/recovery fence (streamExecutionFences, lock ordersorted execFences -> streamStageLock) serializing in-flight handler execution against concurrent versions,recover(), andprepareForReconnect(bucketId)alongsideDurableDeliveryStore(PENDINGWAL +APPLIEDledger +advanceContiguousCommittedWatermarkLocked+lowestPending > verguard), guaranteeing zero lost, overlapping, or duplicate notifications/effects across ordinary connection loss and client crashes at all persistence boundaries.New Unit & Distributed Chaos Tests (52 Unit + 12 Failover DUnit)
ChordalVoronoiRouterTest(20 tests): zero-FNR verification across thousands of random and boundary vectors, unconditional max-abs float64 widening/normalization across all-subnormal/extreme vectors (Float.MIN_VALUE,1e-19f,1e-30f,Float.MAX_VALUE) +d=1/tau=1.0+ boundaryd in {1, 7, 8, 9}+ exactdot == tauthreshold equality +getMaxCellSize()telemetry withFNR == 0, heterogeneous-tauquantile stratification + bound-aware incremental insert outlier isolation withFNR == 0, periodic survival-guard 16-sampleO(Kd)re-probe restoringCHORDAL_VORONOIafter isotropic-to-clustered regime shift withFNR == 0,d == 1cluster collapse + antipodal zero-sum centroid fallback +(1,1)attau=1.0zero pruning FNR + binary32 underflow boundd * 2^-126, sqrt-free Higham cosine bound adversarial verification atx == c_k == q_iwithtau_i in {1.0, 1 - 1e-7, 0.9999}acrossd in {128, 1536, 4096}, Theorem 1eta_f64(d)+8 * u_f64+Math.nextDownoutward rounding verification nearB_k^up >= 2.0and antipodal pairs withtau = 1.0, trueO((M/K)d)per-cell CoW verification, coupledB_k^upvs decoupledR_k + rho_k^maxtightness, incremental removal until 20% churn,computeMCritsurvival-ceiling handling, online EWMA survival-rate guard reversion toFLAT_SIMD, 4096-D safety epsilon, high-selectivity pruning efficiency, closed-formM_crit+ hysteresis anti-oscillation, live add/remove/recluster safety, and invalid input rejection.RvvMonotonicVectorDispatcherTest(32 tests): failover replay exactly-once monotonic delivery, out-of-order holdback ordering65,66strictly behind delayed64+ non-vector destroy/gap without drops, temporary predecessor gap repaired before expiry preserving contiguous delivery without resync, delayed predecessor exceedingmaxHoldbackAgeMillisclosing gap + emittingHoldbackGapListenerresync notification + unblocking zero-match checkpoints, staggered ACKs from multiple healthy subscribers advancingV_ckptto exactmin_i ack[i]on idle tails,|S|=0empty-subscription version continuity with zero tail overflow, subscriber rejoin below compactedV_floorimmediately flaggingresyncRequired,V_floor <= V_client < V_ckptexact> V_clientreplay (V_floor=60, V_client=63, V_ckpt=64-> replays[64..70]with atomicS_healthypin +V_client=59-> immediateresyncRequired,reconnectBetweenFloorAndCheckpointReplaysIntermediateVersionsAndBelowFloorTriggersResync), multi-subscription (sub-A/sub-B) repeated-key promotion + delayed match pinned below coveringHB(63)+ lagging reconnect (multiSubscriptionRepeatedKeyPromotionCoveringHeartbeatAndLaggingReconnect), promotion + slow consumer + pending checkpoint atC_tail - 1vsC_tail + 1(C_tail=64andDEFAULT_MAX_TAIL_PER_STREAM=100,000), repeated-key failover preserving every per-version(b, m, v)notification without coalescing loss, timed idle-tail heartbeat flush advancingV_ckptafter 63 zero-match mutations, steady zero-match trickle (40 msinterval) firing age-bounded heartbeats without starvation,IdempotentRvvConsumercrash-injection, ordinary-reconnect per-stream execution/recovery fencing (ordinaryReconnectFencesInFlightHandlerAndPreventsDuplicateAdmissionOrOverlap), and durability boundary verification (BEFORE_DURABLE_PENDING_STAGE,AFTER_WATERMARK_PERSIST_BEFORE_EFFECT,AFTER_EFFECT_BEFORE_WATERMARK_COMMIT, connection loss after durablePENDINGstaging before effect retires, out-of-order match commit pending-intent guard, delayedPENDINGintent blocking later matches and heartbeats through restart recovery), slow client reconnect replaying both pre-crashm_Pand post-promotionm_Sretained streams with trailing heartbeats under concurrency, match-on-mutation-64 (v_h) delivering matches strictly beforev_hwatermark while advancing 0%-match client watermark, slow reconnect with 4-thread async executor + concurrent livem_Swrites + two clients atV_client_A != V_client_B, healthy 0%-match subscriber advancingV_ckptacross5 * maxTailwrites + failover replay via periodic & promotion RVV watermark heartbeats with 0 tail overflows and 0 spurious match callbacks, async replay barrier gating live writes, coalescedonEventBatch+ async per-bucket serial FIFO dispatch preserving strict RVV monotonicity across live writes & primary failover, concurrenttryAcceptcallback serialization, client gate multi-subscription ordering, checkpoint compaction + regressive ACK handling, unsubscription gate cleanup + tail compaction, tail-buffer overflow resync signaling, and service facade lifecycle/telemetry.ContinuousVectorRvvFailoverDistributedTest(12 multi-node failover chaos DUnit tests): kills the primary server mid-ingestion on a real Geode cluster withenforceContiguousVersions=true, realafterDestroynon-matching version tracking, matching subscriptions, and a healthy 0%-match orthogonal subscriber, slow reconnect after primary kill with concurrent post-promotionm_Swrites, slow reconnect with 4-thread async executor + two clients + exact mutation GEODE-649: add more logging to see the reason of future failure. #64 boundary, steady-trickle + idle-tail age-bounded heartbeat flush advancing checkpoints across the cluster, two-phase holdback gap behavior (repaired before expiry vs exceedingmaxHoldbackAgeMillis), connection loss after durablePENDINGstaging before effect retires, staggered multi-subscriber ACKs +|S|=0empty-subscription interval continuity across the cluster, ordinary reconnect fencing an in-flight handler against duplicate admission/overlap, 3-server promotion atC_tail - 1(0 resync) vsC_tail + 1overflow + rejoin belowV_floorimmediate rejection, 3-server repeated-key livekill -9failover delivering exact 32/32 per-version(b, m, v)notifications across 4 hot keys, 3-server reconnect betweenV_floorandV_ckptreplaying intermediate versions +< V_floorimmediate resync (reconnectBetweenFloorAndCheckpointReplaysIntermediateVersionsAndBelowFloorTriggersResync), and 3-server multi-subscription (sub-A/sub-B) repeated-keykill -9promotion + delayed match pinned below coveringHB(63)+ lagging reconnect delivering152/152(subId, b, m, v)effects on both consumers with 0 misses, 0 duplicates, and 0 resyncs (multiSubscriptionRepeatedKeyPromotionCoveringHeartbeatAndLaggingReconnect).Backward Compatibility & Serialization Notes
+13775 / -0across 13 files) underorg.apache.geode.cache.lucene.internal.vector.continuousandsanctioned-geode-lucene-serializables.txt. Zero existing production classes are modified.ChordalVoronoiRouter$RoutingMode,ContinuousVectorEvent(includingheartbeat:boolean),IdempotentRvvConsumer$CrashPhase,RvvStreamKey, andVectorSubscriptioninsanctioned-geode-lucene-serializables.txt, verified viaAnalyzeLuceneSerializablesIntegrationTest(6/6 PASS).Exact Gradle Verification Commands & Pass Counts
:geode-lucene:test --rerunChordalVoronoiRouterTest20/20,RvvMonotonicVectorDispatcherTest32/32)ContinuousVectorRvvFailoverDistributedTest(multi-node failover +V_floor<=V_client<V_ckpt+ multi-sub repeated-key +C_tail +/- 1)AnalyzeLuceneSerializablesIntegrationTest:geode-lucene:spotlessCheck,:checkPom,:javadoc