GeezerVison is showing github.com — test: verify CSC NULL invalidation clears 10k cached entries (CAE-2930) by ggivo · Pull Request #4521 · redis/jedis
Conversation
ggivo
commented
May 12, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Adds two CSC integration tests that exercise large-scale invalidation drain behavior on the tracked connection. intended as a baseline for the upcoming push-notification refactor — pin down current correctness and timing so we can compare before/after.
Also: ClientSideCacheTestBase control connection switched to .resp2() to avoid warning messages.
Added tests
invalidateAllWithLargeCacheTest
Warms 10 000 keys, flushAll on control, then a single GET. Asserts the NULL invalidation evicts everything except the just-fetched key (size == 1).
pendingInvalidationMessagesTest
Caches 1 000 keys, mutates all 1 000 via control so the server queues 1 000 invalidation messages. A single GET drains the backlog synchronously — asserts CacheStats.getInvalidationCount() == 1000.
Example test log
invalidateAllWithLargeCacheTest: NULL invalidation flushed 10000 entries in 1038535 ns (9628948.47 keys/sec)
cache stats: CacheStats{hits=0, misses=10001, loads=10001, evicts=0, nonCacheable=0, flush=1, invalidationsByServer=0, invalidationMessages=0}
pendingInvalidationMessagesTest: 1000 pending invalidations processed in 2076278 ns (481631.07 invalidations/sec)
cache stats: CacheStats{hits=0, misses=1001, loads=1001, evicts=0, nonCacheable=1000, flush=0, invalidationsByServer=1000, invalidationMessages=1000}
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk since changes are test-only, but the new timing/await-based invalidation drain assertions could be slightly flaky on slow CI or different Redis configs.
>
> **Overview**
> Adds two new CSC integration tests to cover *large-scale invalidation drain* behavior: one validates that a `flushAll` NULL invalidation clears a warmed 10k-entry client cache on the next command, and another verifies that a backlog of ~1k invalidation push messages is fully processed synchronously on a subsequent `GET` (asserting `CacheStats.getInvalidationCount()`).
>
> Updates the test base control connection to use RESP2 (`.resp2()`) and adds logging/imports needed for the new performance/timing diagnostics.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 514623b62bb0fc51eedbba3f836771c15fac1fc7. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Test Results
138 files - 53 138 suites - 53 29s ⏱️ - 9m 21s
2 733 tests - 4 884 2 729 ✅ - 4 800 4 💤 - 84 0 ❌ ±0
2 718 runs - 4 919 2 714 ✅ - 4 835 4 💤 - 84 0 ❌ ±0
Results for commit 514623b. ± Comparison against base commit 2a2c46c.
This pull request removes 7617 and adds 2733 tests. Note that renamed tests count towards both.
redis.clients.jedis.ACLJedisPoolTest ‑ allowUrlWithNoDBAndNoPassword
redis.clients.jedis.ACLJedisPoolTest ‑ checkCloseableConnections
redis.clients.jedis.ACLJedisPoolTest ‑ checkConnections
redis.clients.jedis.ACLJedisPoolTest ‑ checkPoolOverflow
redis.clients.jedis.ACLJedisPoolTest ‑ checkPoolRepairedWhenJedisIsBroken
redis.clients.jedis.ACLJedisPoolTest ‑ checkResourceIsClosableAndReusable
redis.clients.jedis.ACLJedisPoolTest ‑ checkResourceWithConfigIsClosableAndReusable
redis.clients.jedis.ACLJedisPoolTest ‑ customClientName
redis.clients.jedis.ACLJedisPoolTest ‑ customClientNameNoSSL
redis.clients.jedis.ACLJedisPoolTest ‑ nonDefaultDatabase
…
ALL_AVAILABLE Policy Tests ‑ shouldContinueWhenAllPending
ALL_AVAILABLE Policy Tests ‑ shouldContinueWhenPending
ALL_AVAILABLE Policy Tests ‑ shouldFailImmediatelyWithAnyFailure
ALL_AVAILABLE Policy Tests ‑ shouldFailWhenAllConnectionsFail
ALL_AVAILABLE Policy Tests ‑ shouldFailWhenAnyConnectionFails
ALL_AVAILABLE Policy Tests ‑ shouldFailWithEmptyContext
ALL_AVAILABLE Policy Tests ‑ shouldFailWithSingleFailure
ALL_AVAILABLE Policy Tests ‑ shouldSucceedWhenAllAvailable
ALL_AVAILABLE Policy Tests ‑ shouldSucceedWithSingleConnection
ConformsTo Policy Evaluation Tests ‑ shouldDelegateToPolicy
…
This pull request removes 88 skipped tests and adds 4 skipped tests. Note that renamed tests count towards both.
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][10]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][11]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][12]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][1]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][3]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][4]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][5]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][6]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[1] ‑ testJsonSetWithFphaParams(String, Keyword, FphaType)[1][7]
…
redis.clients.jedis.UdsTest ‑ jedisConnectsToUds
redis.clients.jedis.UdsTest ‑ jedisConnectsToUdsResp3
redis.clients.jedis.UdsTest ‑ redisClientConnectsToUds
redis.clients.jedis.UdsTest ‑ redisClientConnectsToUdsResp3
♻️ This comment has been updated with latest results.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jit-ci
Bot
commented
May 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
🛡️ Jit Security Scan Results
✅ No security findings were detected in this PR
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 and found 2 potential issues.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4ad6c58. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ggivo
changed the title
test: verify CSC NULL invalidation clears 10k cached entries
test: verify CSC NULL invalidation clears 10k cached entries (CAE-2930)
May 14, 2026
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.
Suggestion: replace control.ping() with a server-side flush check via CLIENT LIST oll/omem polling. See inline comments.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
See my suggestions for reducing the potential risk of flakiness of the test.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ggivo reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
uglide
uglide approved these changes
atakavci
Awaiting requested review from atakavci
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|