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 — test: verify CSC NULL invalidation clears 10k cached entries (CAE-2930) by ggivo · Pull Request #4521 · redis/jedis

Conversation

@ggivo

@ggivo ggivo commented May 12, 2026 •
edited by cursor Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

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.

All reactions
@ggivo
test: verify CSC NULL invalidation clears 10k cached entries
5c2823b
@github-actions

github-actions Bot commented May 12, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jit-ci

jit-ci Bot commented May 12, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit
All reactions

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed May 12, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/csc/ClientSideCacheFunctionalityTest.java Resolved

Uh oh!

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

@ggivo
ggivo force-pushed the topic/ggivo/CAE-2930-perf-test-push branch from c6ef087 to 4ad6c58 Compare May 12, 2026 10:27
@ggivo ggivo added the testing label May 12, 2026
cursor[bot]
cursor Bot reviewed May 12, 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 and found 2 potential issues.

Fix All in Cursor

❌ 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.

All reactions
Comment thread src/test/java/redis/clients/jedis/csc/UnifiedJedisClientSideCacheTestBase.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/csc/ClientSideCacheFunctionalityTest.java Resolved

Uh oh!

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

@ggivo
test: verify handling of hundreds of pending invalidation messages
4c076fa
@ggivo
ggivo force-pushed the topic/ggivo/CAE-2930-perf-test-push branch from 4ad6c58 to 4c076fa Compare May 12, 2026 10:43
ggivo added 2 commits May 12, 2026 15:13
@ggivo
clean up
ee8b3fe
@ggivo
elapsed time in ns
86afa61
@ggivo
ggivo requested review from atakavci and uglide May 13, 2026 12:31
@ggivo 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
@ggivo
Merge branch 'master' into topic/ggivo/CAE-2930-perf-test-push
87c2557
uglide
uglide reviewed May 14, 2026
View reviewed changes

@uglide uglide 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.

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.

All reactions
Comment thread src/test/java/redis/clients/jedis/csc/ClientSideCacheFunctionalityTest.java Resolved

Uh oh!

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

Comment thread src/test/java/redis/clients/jedis/csc/ClientSideCacheFunctionalityTest.java Resolved

Uh oh!

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

uglide
uglide reviewed May 14, 2026
View reviewed changes

@uglide uglide 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.

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
All reactions
  • 👍 1 reaction
ggivo and others added 2 commits May 14, 2026 14:21
@ggivo @uglide
Apply suggestions from code review
8e81063
Co-authored-by: Igor Malinovskiy <[email protected]>
@ggivo
Merge branch 'master' into topic/ggivo/CAE-2930-perf-test-push
9f28e73
@ggivo
ggivo requested a review from uglide May 15, 2026 12:08
uglide
uglide approved these changes May 18, 2026
View reviewed changes
@ggivo
Merge branch 'master' into topic/ggivo/CAE-2930-perf-test-push
514623b
@ggivo
ggivo merged commit f80dec4 into master May 18, 2026
19 checks passed

Uh oh!

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

@ggivo
ggivo deleted the topic/ggivo/CAE-2930-perf-test-push branch May 18, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@uglide uglide uglide approved these changes
@atakavci atakavci Awaiting requested review from atakavci
+1 more reviewer
@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.

2 participants

@ggivo @uglide
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.