Skip to content

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Dec 2, 2025

This change introduces the Support XDELEX, XACKEX and extend XADD and XTRIM options feature...

See original pull request for more details.

Closes: #3232
Original Pull Request: #3247

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 2, 2025
@onobc onobc changed the title WIP: Issue/3232 [upstream] Add support for XDELEX and XACKDEL, and expand options for XADD and XTRIM Dec 2, 2025
Copy link
Contributor Author

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Note

Thank you @viktoriya-kutsarova for the excellent deprecated detailed descriptions tells users what replacement to use w/o them having to do software archeology to figure it out. :)

Once Jenkins and PR is green and we resolve the rename concern (#3272 (comment)) this will be ready to merge.

Also note that I will do some final massaging of the commits (couple of squashes and be sure they proper links are in the commits etc..).

Thanks

@onobc
Copy link
Contributor Author

onobc commented Dec 2, 2025

cc: @viktoriya-kutsarova @mp911de

Copy link
Member

@mp911de mp911de left a comment

Choose a reason for hiding this comment

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

I've left a few comments. There are several public API elements (methods, classes), that are missing Javadoc along with a mix of im proper or missing @since tags. I strongly urge to refrain from Deprecated(forRemoval=true) as the current API isn't breaking anything nor imposes its usage any danger, we've just broadened feature support.

Test code is overly verbose in its current form as each test scenratio is unfolded in a separate method rather than utilizing parametrized tests. In some areas we follow a test approach that doesn't consider refactoring of the underlying code inside components that we're testing. These require cleanup along with proper formatting according to our code style.

@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 8, 2025
@onobc onobc mentioned this pull request Dec 8, 2025
3 tasks
Original pull request #3247
See #3232

Signed-off-by: viktoriya.kutsarova <viktoriya.kutsarova@redis.com>
Original pull request #3247
Closes #3232

Signed-off-by: viktoriya.kutsarova <viktoriya.kutsarova@redis.com>
onobc added 2 commits December 8, 2025 14:28
Moves trim options into top-level class that is used by XTrim and Xdd options.

Original pull request #3247
See #3232

Co-authored-by: viktoriya.kutsarova <viktoriya.kutsarova@redis.com>

Signed-off-by: Chris Bono <chris.bono@broadcom.com>
Signed-off-by: viktoriya.kutsarova <viktoriya.kutsarova@redis.com>
This commit performs the following polishing changes:

- remove manual not null check in `TrimOptions.<init>` as it's already `@NullMarked`
- annotate `RedisStreamCommands.XDelOptions` with `@NullMarked`
- remove usage of `var` in main code
- use since `4.1` instead of `4.0`
- rename pendingReferences to deletionPolicy
- use ParameterizedTest for StreamConvertersUnitTest
- simplify test to not verify things it does not do
- fix formatting in various classes
- minor tweak to javadocs
- inline converters in Lettuce StreamConverters

Original pull request #3247
See #3232

Signed-off-by: Chris Bono <chris.bono@broadcom.com>
Groups the integration tests in DefaultStreamOperationsIntegrationTests for XACKDEL and XDELEX and adds an `@EnabledOnCommand` guard to each test group to prevent them from being run in environments that do not support these commands (e.g. Valkey).

Original pull request #3247
See #3232

Signed-off-by: Chris Bono <chris.bono@broadcom.com>
@onobc
Copy link
Contributor Author

onobc commented Dec 8, 2025

Closing in favor of #3247

@onobc onobc closed this Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support XDELEX, XACKEX and extend XADD and XTRIM options from Redis 8.2

5 participants