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

Conversation

@ggivo

@ggivo ggivo commented Aug 25, 2026 •
edited by cursor Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

What

Adds end-to-end scenario tests for the maintenance-notifications feature, exercised against a live
Redis Enterprise cluster through the fault-injector service, together with the minimal FI client
they run on.

Why

The existing unit tests stub the push frames. These tests validate the client against real cluster
operations — shard migration, failover, endpoint rebind — covering the test plan:
T.1.1 push-notification reception, T.1.2 timeout handling (including MOVING), and
T.2.1 new-connection establishment / handoff.

Changes

  • com.redis.test.fi — framework-free fault-injector client (JDK HTTP + gson, no jedis imports):
    two HTTP primitives, a poll helper, and the operations the tests need (discovery,
    create/delete database, trigger effect). Discovery is typed
    (Effect → Trigger → Requirement → Scenario); dbconfigs round-trip as opaque maps
    (integral fields preserved via LONG_OR_DOUBLE). Wire format covered by unit tests against an
    in-process HTTP stub.
  • MaintNotificationsScenarioBase — each test creates its own database from a fresh discovery
    call (unique name and port per call, so consecutive rebind scenarios never share an endpoint DNS
    name), waits for the endpoint to accept connections, builds the client from the create output,
    and deletes the database on teardown. Push delivery is observed on a pinned pool connection via
    PING round-trips.
  • MaintNotificationsReceptionIT (T.1.1) — asserts the exact received sequence and payloads for
    MIGRATING/MIGRATED, FAILING_OVER/FAILED_OVER, and MOVING, each produced by a real operation
    (migrate, failover, conn_drop/endpoint_rebind).
  • MaintNotificationsIT (T.1.2) — BLPOP probes with a 3 s server-side delay prove relaxation
    behaviorally: at base timeouts (1 s non-blocking / 2 s blocking, distinct so the blocking flag's
    routing is visible) probes time out; inside a maintenance window they survive to the server
    delay; base behavior is restored after the closing notification. The MOVING variant verifies
    pool-wide relaxation with no closing notification, ending only when the grace window expires.
  • MaintNotificationsIT#connectionHandoffOnMoving (T.2.1) — across an endpoint rebind,
    parameterized over external/internal IP endpoint types: in-flight commands on a pre-MOVING
    connection complete gracefully; new connections target the notification's endpoint and inherit
    the relaxed timeout; pre-MOVING connections are destroyed on return; a connection that outlives
    the window throws on use; the client keeps serving traffic through fresh connections afterwards.
    The internal-IP variant skips when the target is not routable from the test host.
  • MaintNotificationsTestSupport — test bridge recording dispatched maintenance events and
    reading the effective socket timeout; the only main-code change is widening
    Connection.currentTimeout() to package-private for it.
  • Tests are tagged scenario; the FI endpoint comes from FAULT_INJECTION_API_URL.

All tests verified green against a live env0 fault-injector setup across repeated runs.


Note

Low Risk
Almost entirely new test code and TLS test utilities; the only library change is widening Connection.currentTimeout() visibility for tests, with no behavior change.

Overview
Adds fault-injector–driven scenario tests for maintenance notifications against live Redis Enterprise topology changes, plus the small test harness and build tweaks they need.

A new com.redis.test.fi package provides a JDK HTTP + Gson client (discovery, create/delete database, trigger effects) with typed Effect → Trigger → Requirement → Scenario discovery and wire-format unit tests against an in-process stub.

Scenario ITs (@Tag("scenario")) cover handshake/config (MaintNotificationsConfigIT), push reception and payloads (MaintNotificationsReceptionIT), timeout relaxation and MOVING handoff including TLS and EndpointType.NONE (MaintNotificationsIT), and black-box hitless traffic (MaintenanceTrafficResilienceIT). Shared bases provision per-test databases via FI, shorten DNS cache for rebind tests, pin pool connections for push observation, and bootstrap TLS via extended TlsUtil (captureServerChain, temp truststores).

Production touch: Connection.currentTimeout() is widened to package-private for MaintNotificationsTestSupport. Maven: scenario failsafe fork gets -Dsun.net.inetaddr.ttl=2 (and negative TTL); formatter includes FI and maint-notification test paths. LagAwareStrategySslIT delegates truststore setup to TlsUtil.

Reviewed by Cursor Bugbot for commit 42cbef3. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@ggivo ggivo changed the title Add maintenance-notification scenario tests driven by the fault injector [maintenance events] Add maintenance-notification scenario tests driven by the fault injector Aug 25, 2026
@ggivo

ggivo commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 20 0 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 19 1 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 19 1 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@ggivo ggivo mentioned this pull request Aug 25, 2026
[maintenance events] Smart Client Handoffs (SCH): maintenance notifications support #4668
Merged
@ggivo
ggivo force-pushed the topic/ggivo/sch-scenario-fi-client-v2 branch from b16acc5 to cc4e7b1 Compare August 25, 2026 14:45
@ggivo

ggivo commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 25, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 18 2 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 19 1 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
21 19 1 1 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@ggivo
ggivo force-pushed the topic/ggivo/sch-scenario-fi-client-v2 branch from cc4e7b1 to 48e449c Compare August 25, 2026 16:45
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Aug 25, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48e449c4d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsScenarioBase.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsReceptionIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 25, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsScenarioBase.java Resolved

Uh oh!

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

@ggivo
ggivo force-pushed the topic/ggivo/sch-scenario-fi-client-v2 branch 2 times, most recently from f91f170 to 0f0a7da Compare August 26, 2026 13:55
@ggivo

ggivo commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 26, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

@ggivo
ggivo force-pushed the topic/ggivo/sch-scenario-fi-client-v2 branch from 0f0a7da to eb2cd17 Compare August 26, 2026 14:22
@uglide

uglide commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 21 1 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 20 2 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@ggivo ggivo mentioned this pull request Aug 26, 2026
[maintenance events] Support 'none' moving-endpoint-type via connection registry (CAE-1559) #4625
Merged
@uglide

uglide commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 21 1 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Aug 26, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb2cd17050

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/util/TlsUtil.java Resolved

Uh oh!

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

@ggivo

ggivo commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

1 similar comment
@ggivo

ggivo commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 20 2 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 21 1 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
24 20 2 2 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@ggivo
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
a052a37
cursor[bot]
cursor Bot reviewed Sep 30, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/com/redis/test/fi/FaultInjectorClient.java Resolved

Uh oh!

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

atakavci
atakavci reviewed Oct 7, 2026
View reviewed changes

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think its in pretty good shape. Some of those below are just questions to clear my mind.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/com/redis/test/fi/StandaloneEffect.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsReceptionIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintenanceTrafficResilienceIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/scenario/MaintenanceTrafficResilienceIT.java Resolved

Uh oh!

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

@ggivo
Derive the minimum relaxed-probe duration from the base timeout
0340ddf
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).
cursor[bot]
cursor Bot reviewed Oct 8, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/util/TlsUtil.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/util/TlsUtil.java Resolved

Uh oh!

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

@ggivo ggivo mentioned this pull request Oct 8, 2026
[maintenance events] Add maintenance_mode to the scenario tests with verified node cleanup #4782
Closed
ggivo added 3 commits October 8, 2026 15:22
@ggivo
Assert MOVING retires the whole pool and hands out a fresh connection
b346ea6
The handoff test relied on the single-proxy test databases without
checking it.

- The pinned connection never reads MOVING, so asserting it is retired
  shows MOVING reached the whole pool, not only the receiving
  connection. It fails loudly if the endpoint ever spreads over several
  proxies.
- The connection borrowed after MOVING must not be a retired one.
  assertConnectedToTarget only compares the peer address with the
  target's current DNS resolution, so it cannot tell a fresh connection
  from a retired one when the address sets overlap. A retired idle
  connection handed out before the async eviction now fails with a clear
  message.
@ggivo
Base the post-discard borrow assertion on the pool being full
0d5c502
The assertion called the borrowed connection "the replacement" of the
discarded one, which reads as relying on how the pool creates
connections.

What the test relies on is the pool size:
- The pool allows 3 connections (maxTotal) and the test holds all of
  them: the pinned connection, the one borrowed after MOVING and the
  pre-MOVING one. No idle connection exists.
- Returning the pre-MOVING connection destroys it and frees exactly one
  slot.
- The next borrow therefore cannot reuse anything and returns a
  connection created after the discard, which must target the MOVING
  endpoint.

When the pool creates it does not matter: commons-pool2 2.13.1 creates
it inside close(), older versions at borrow. The test now asserts the
pool is full before the discard, and the message says "created after
the discard".
@ggivo
Replace the single-value config stream with a named constant
1b8eeeb
The config stream held one value, so the cross-product with the
scenarios added indirection without adding coverage.

The test now passes DEFAULT_MAINTENANCE explicitly, which keeps the
tested config visible. runTrafficAcrossEffect still takes the config
because the negative control passes DISABLED through it.
cursor[bot]
cursor Bot reviewed Oct 8, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java Resolved

Uh oh!

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

ggivo added 3 commits October 12, 2026 17:15
@ggivo
Extract a fault-injector database base and type the created database
f0bb06e
FaultInjectorScenarioBase owns the per-test database lifecycle (DNS
cache TTL, FI client, catalog, deploy, DNS diagnostics, deletion) and
holds no client. createDatabase returns a Database (id, endpoint,
credentials, tls) instead of the raw output map; an action without
output fails with a FaultInjectorException instead of a later NPE.
@ggivo
Split client ownership from the notification-observer toolkit
4e50955
MaintNotificationsScenarioBase now owns only the client under test:
openClient builds it from the database's credentials plus pinned TLS
trust, customiseClientConfig/customiseClientPoolConfig add a subclass's
settings, and tearDownClient closes it before the database is deleted.
The pinned observer, probes, effect threads and tuned settings move up
into MaintNotificationsObserverBase, so MaintenanceTrafficResilienceIT
can extend the client layer without them. Every test opens its client
as openClient(deployDatabase(scenario), config).
@ggivo
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
08de904
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 12, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08de9048d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/com/redis/test/fi/FaultInjectorClient.java Resolved

Uh oh!

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

@ggivo
Prove relaxation by probe success and check the timeout cause
b2029e3
A probe that times out fails with an exception, and BLPOP returns nil
only when its server-side timeout expires, so an error-free nil reply
proves the probe waited the full delay under relaxation. The duration
lower bound on success is removed with its two constants; a BLPOP delay
at or below the blocking base timeout is caught by a @BeforeAll
precondition instead.

Base-timeout failures must be a JedisConnectionException caused by a
SocketTimeoutException, so a connection failure cannot pass as a
timeout. Their duration bounds stay: against a real server they show
that a non-blocking command gets socketTimeout and a blocking one gets
blockingSocketTimeout.
@ggivo

ggivo commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 42 0 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 41 1 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 41 1 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

ggivo added 2 commits October 13, 2026 15:21
@ggivo
Address bot review comments
56921b6
MaintNotificationsReceptionIT: the settle period also counts from the
effect's end, so a closing (MIGRATED/FAILED_OVER) that trails the fault
injector's success report is still collected before the sequence check.

MaintNotificationsIT: the unreachable-target skip closes the pool before
returning the borrowed connection; returned to an open pool it would
create a replacement toward the unroutable target and fail instead of
skipping.
@ggivo
Merge branch 'master' into topic/ggivo/sch-scenario-fi-client-v2
42cbef3
@ggivo

ggivo commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

run scenario tests

uglide reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 13, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42cbef340b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintenanceTrafficResilienceIT.java
while (running) {
final long value = n++;
runCommand(() -> client.set(key, Long.toString(value)));
runCommand(() -> client.get(key));

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 13, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate GET results in the traffic runner

During a MOVING rebind, the SET can succeed on one node while the following GET is routed to a stale or incorrect node and returns null/old data without throwing. Because this return value is discarded, errorCount() remains zero and the positive resiliency test passes despite inconsistent data; each worker owns its key and still has value, so compare the read result with that expected value and record a mismatch as an error.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/com/redis/test/fi/FaultInjectorClient.java
Comment on lines +88 to +90
if ("failed".equals(status)) {
throw new FaultInjectorException("Action " + actionId + " failed: " + response);
}

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 13, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle top-level action errors as terminal

When /action/{id} returns a top-level error with a non-failed status (for example unknown), this loop treats the action as still running and eventually reports only a 60/180-second timeout. The same endpoint's established FaultInjectionClient.ActionStatus.isFailure() treats any non-null error as terminal (src/test/java/redis/clients/jedis/scenario/FaultInjectionClient.java:178-180), so surface that error here immediately to preserve the real diagnostic and avoid a multi-minute stall.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
cursor[bot]
cursor Bot reviewed Oct 13, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 42cbef3. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/redis/clients/jedis/scenario/MaintNotificationsIT.java
// retired IP) and serves commands — the test never clears the pool
Set<String> currentIps = resolvedIps(host);
assertFalse(currentIps.contains(oldIp),
"retired node " + oldIp + " must leave the endpoint resolution: " + currentIps);

@cursor cursor Bot Oct 13, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NONE handoff asserts DNS dropped old IP

Medium Severity

connectionHandoffOnMovingNone requires resolvedIps(host) to no longer contain the pre-MOVING peer address before borrowing a replacement. During a rebind, DNS can still return the old A record alongside the new one. That fails the test even when the pool has already connected to the new node, which the following peer-address checks already verify.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 42cbef3. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.22)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 42 0 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 8.0.16)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 42 0 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

@uglide

uglide commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Jedis Scenario Tests (RE 100.0.20)

Tests Passed ✅ Failed ❌ Skipped ⏭️ Flaky 🍂 Duration ⏱️
46 42 0 4 0 not captured

---- Details for maintainers

Github Test Reporter by CTRF 💚

All reactions

Sorry, something went wrong.

Uh oh!

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

atakavci
atakavci approved these changes Oct 13, 2026
View reviewed changes

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sorry, something went wrong.

Uh oh!

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

All reactions
@ggivo
ggivo merged commit 586f16e into redis:master Oct 13, 2026
14 of 15 checks passed

Uh oh!

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

@ggivo ggivo added the testing label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@atakavci atakavci atakavci approved these changes
+2 more reviewers
@github-advanced-security github-advanced-security[bot] github-advanced-security[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

4 participants

@ggivo @uglide @atakavci @github-advanced-security
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 01402775 — 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.