Repository navigation
Conversation
Motivation: Existing expiry coverage checks a single Replicator. It does not show that a successful read renews the key on another replica, or detect expiry followed by a gossip refill. Modification: Drive two real Replicators over loopback TCP. Read one of two keys on the peer, observe the unread key expire, and verify the origin retained the read key without any intervening removal or refill. Observe eventual expiry on both replicas. Result: The focused suite passed on JDK 17 with Scala 2.13.18 and 3.3.9, with no skips, using the current DData module and released dependencies for other Pekko modules. Dropping the read timestamp and dropping peer timestamp consumption both failed the test as intended. Scoped formatting and repository header checks passed. No production change or full sbt test run is claimed. References: ReplicatorReadRenewalSpec and the DData expiry behavior introduced in apache#2733.
Motivation: The new test's case alignment was not checked by scalafmt before the file was tracked. Modification: Apply the formatter's one-space adjustment to the existing case. Keep the test logic and ASF header unchanged. Result: The tracked file passed the repository formatter and format check. This is a whitespace-only change. References: Pekko apache#3862 and ReplicatorReadRenewalSpec.
Motivation: Single-replica expiry and ordinary deletion tests do not establish that a replicated tombstone prevents writes until both replicas expire it, or that the key can then be reused without an old counter value. Modification: Add an isolated real two-replica test. Observe deletion and rejected updates at both replicas, wait for both to expire the tombstone, then recreate the key from the peer and assert the fresh value on both. Result: The corrected parent and child suites passed 2/2 each on Scala 2.13.18 and 3.3.9 with JDK 17 and real TCP loopback. In the child test, suppressing replicated deletion or retaining the tombstone each failed its intended assertion. Scoped formatting and ASF header checks passed. This covers two connected in-memory replicas, not a durable store or full sbt runtime matrix. References: Pekko apache#3862 and ReplicatorTombstoneExpirySpec.
Motivation: The Classic Remoting CI job disables Artery, leaving both replica systems competing for the default TCP port. Modification: Configure a loopback hostname and an ephemeral port for Classic Netty alongside the existing Artery configuration. Result: The previous fixture reproduces the bind failure. The renewal and tombstone tests pass with both transports on Scala 2.13 and 3.3. References: apache#3862, apache#3864
Motivation: The tombstone test shares the renewal fixture and fails on the same fixed Classic TCP port before exercising expiry. Modification: Merge the corrected parent branch into the tombstone branch without rewriting either history. Result: The tombstone test still contains the only child-layer change and passes with both transports on Scala 2.13 and 3.3. References: apache#3862, apache#3864
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.
Motivation
Single-replica expiry and ordinary deletion tests do not establish that a replicated tombstone prevents writes until both replicas expire it, or that the key can then be reused without an old counter value.
Modification
Add an isolated real two-replica test. Observe deletion and rejected updates at both replicas, wait for both to expire the tombstone, then recreate the key from the peer and assert the fresh value on both.
Result
The corrected parent and child suites passed 2/2 each on Scala 2.13.18 and 3.3.9 with JDK 17 and real TCP loopback. In the child test, suppressing replicated deletion or retaining the tombstone each failed its intended assertion. Scoped formatting and ASF header checks passed. This covers two connected in-memory replicas, not a durable store or full sbt runtime matrix.
References
mainbecause the direct parent branch is only available in the fork.