GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
|
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b16acc5 to
cc4e7b1
Compare
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
cc4e7b1 to
48e449c
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 48e449c4d9
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
f91f170 to
0f0a7da
Compare
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
0f0a7da to
eb2cd17
Compare
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: eb2cd17050
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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).
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
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".
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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
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).
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 08de9048d7
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
|
run scenario tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 42cbef340b
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
| while (running) { | ||
| final long value = n++; | ||
| runCommand(() -> client.set(key, Long.toString(value))); | ||
| runCommand(() -> client.get(key)); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
| if ("failed".equals(status)) { | ||
| throw new FaultInjectorException("Action " + actionId + " failed: " + response); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was a problem 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.
Reviewed by Cursor Bugbot for commit 42cbef3. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // 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); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
Reviewed by Cursor Bugbot for commit 42cbef3. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.22)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 8.0.16)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Jedis Scenario Tests (RE 100.0.20)
Github Test Reporter by CTRF 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.