-
[NA] [BE] Bump org.redisson:redisson from 3.52.0 to 4.0.0 in /apps/opik-backend (#4521)
发布于
2026-01-08 11:07:12 +00:00 - Bump org.redisson:redisson from 3.52.0 to 4.0.0 in /apps/opik-backend
Bumps org.redisson:redisson from 3.52.0 to 4.0.0.
updated-dependencies:
- dependency-name: org.redisson:redisson
dependency-version: 4.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] support@github.com
- fix: Update code for Redisson 4.0 compatibility
- Move stream classes imports: AutoClaimResult, PendingEntry, StreamMessageId
from org.redisson.api to org.redisson.api.stream package - Replace removed getNodesGroup() API in RedisHealthCheck with
getKeys().count().block() for health check verification - All code compiles successfully with Redisson 4.0
- fix: Use proper Redisson 4.0 API for Redis health check
Replace getKeys().count().block() workaround with the proper
getRedisNodes(RedisNodes.SINGLE).pingAll() method.- Change from RedissonReactiveClient to RedissonClient injection
- Use getRedisNodes() which is the Redisson 4.0 replacement for removed getNodesGroup()
- Add RedisNodes.SINGLE import for node selection
- Restore original pingAll() health check logic
This is the proper way to ping Redis nodes in Redisson 4.0 as documented
in the Redisson examples and test suites.- Fix Redis subscriber tests timing out on BUSYGROUP errors
Redisson 4.0.0 retries failed commands by default (3 retries, 1.5s interval).
When a consumer group already exists, Redis returns BUSYGROUP error which
Redisson treats as retryable. This caused enforceConsumerGroup() to timeout
before the error could be handled by onErrorResume().Changes:
- Add retryAttempts config option to RedisConfig for configurable retry behavior
- Set retryAttempts: 0 in config-test.yml to disable retries in tests
- Increase longPollingDuration from 100ms to 1s in TestStreamConfiguration
- Increase longPollingDuration from 500ms to 1s in config-test.yml webhook config
- Disable retries in BaseRedisSubscriberTest Redisson client setup
This fixes BaseRedisSubscriberTest and WebhookSubscriberLoggingTest failures.
- Revert polling changes
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thiago dos Santos Hora thiagoh@comet.com
Co-authored-by: Thiago thiago.santos.hora@gmail.com下载附件