GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [maintenance events] Add maintenance-notification scenario tests driven by the fault injector by ggivo · Pull Request #4707 · redis/jedis

[maintenance events] Add maintenance-notification scenario tests driven by the fault injector #4707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ggivo merged 26 commits into redis:master from ggivo:topic/ggivo/sch-scenario-fi-client-v2
Oct 13, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

[maintenance events] Add maintenance-notification scenario tests driven by the fault injector #4707

Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ec26d68
Add minimal fault-injector client with typed trigger catalog
ggivo Aug 24, 2026
4196092
Add notification-reception scenario test (T.1.1)
ggivo Aug 24, 2026
de887ef
Add timeout-relaxation scenario test (T.1.2 migrate/failover)
ggivo Aug 24, 2026
5587795
Add MOVING relaxed/unrelaxed timeout scenario test (T.1.2 MOVING)
ggivo Aug 24, 2026
9c90d7c
Add MOVING connection-handoff scenario test (T.2.1)
ggivo Aug 24, 2026
fbd7508
Share server-certificate capture and truststore creation in TlsUtil
ggivo Aug 26, 2026
22ddea2
Add TLS connection-handoff scenario test
ggivo Aug 26, 2026
d16eeb6
Stabilize scenario tests against stale DNS resolution
ggivo Aug 27, 2026
89ac91b
Assert handoff by resolved peer, not target string
ggivo Aug 28, 2026
b74351f
[clean up] remove redundat ssl configuration
ggivo Sep 24, 2026
5185301
Cover internal-FQDN TLS connection handoff (T.2.2)
ggivo Sep 24, 2026
a41494e
Cover maintenance-notifications config handshake (T.3.1/T.3.2)
ggivo Sep 24, 2026
0440aed
Cover none-endpoint connection handoff (connectionHandoffWithNone)
ggivo Sep 25, 2026
d04c0e5
Add traffic-continuity resiliency scenario suite
ggivo Sep 29, 2026
5b709ac
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
ggivo Sep 29, 2026
a052a37
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
ggivo Sep 30, 2026
0340ddf
Derive the minimum relaxed-probe duration from the base timeout
ggivo Oct 8, 2026
b346ea6
Assert MOVING retires the whole pool and hands out a fresh connection
ggivo Oct 8, 2026
0d5c502
Base the post-discard borrow assertion on the pool being full
ggivo Oct 8, 2026
1b8eeeb
Replace the single-value config stream with a named constant
ggivo Oct 8, 2026
f0bb06e
Extract a fault-injector database base and type the created database
ggivo Oct 12, 2026
4e50955
Split client ownership from the notification-observer toolkit
ggivo Oct 12, 2026
08de904
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
ggivo Oct 12, 2026
b2029e3
Prove relaxation by probe success and check the timeout cause
ggivo Oct 13, 2026
56921b6
Address bot review comments
ggivo Oct 13, 2026
42cbef3
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
ggivo Oct 13, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Derive the minimum relaxed-probe duration from the base timeout
The minimum is now the blocking base timeout plus a named margin
instead of a literal, so it follows the timeout it has to exceed. The
javadoc states that it must also stay below the probe delay. The value
is unchanged (2500 ms).
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
ggivo committed Oct 8, 2026
commit 0340ddf042e0d40326d285b79e6b80094d2e0f7a

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

13 changes: 10 additions & 3 deletions 13 src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,15 @@
public class MaintNotificationsIT extends MaintNotificationsScenarioBase {
Comment thread
atakavci marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.


private static final int PROBE_DELAY_SECONDS = 3;
/** Relaxed probes succeed at the server delay, never at the base timeout. */
private static final long RELAXED_SUCCESS_FLOOR_MS = 2_500;
/** Headroom above the blocking base timeout that a relaxed probe must clear. */
private static final long BASE_TIMEOUT_MARGIN_MS = 500;
/**
* Minimum duration of a successful relaxed probe: above the blocking base timeout, so only
* relaxation could have let it succeed, and below {@code PROBE_DELAY_SECONDS}, so a genuine
* success meets it.
*/
private static final long MIN_RELAXED_PROBE_DURATION_MS = CLIENT_BLOCKING_SOCKET_TIMEOUT_MS
+ BASE_TIMEOUT_MARGIN_MS;
private static final Duration PUSH_WAIT_TIMEOUT = Duration.ofSeconds(60);

private static final CommandObject<List<String>> REGULAR_PROBE = new CommandObject<>(
Expand Down Expand Up @@ -457,7 +464,7 @@ private CompletableFuture<List<ProbeContext>> runProbes() {

private static void assertProbeSucceededAtServerDelay(ProbeContext probe,
ReceivedEvents received) {
if (probe.error != null || probe.durationMillis < RELAXED_SUCCESS_FLOOR_MS) {
if (probe.error != null || probe.durationMillis < MIN_RELAXED_PROBE_DURATION_MS) {
fail(probe + " must survive to the server delay inside the relaxation window; events: "
+ received.all());
}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.