Skip to content

DATAREDIS-1207 - Fix LettuceStreamCommands.xRevRange Range conversion. #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jankovd
Copy link
Contributor

@jankovd jankovd commented Aug 22, 2020

LettuceStreamCommands.xRevRange converts Ranges with a StringCodec that produces Boundary, while Lettuce expects the range's Boundary to include strings. The conversion worked well only in cases where the Range was unbounded (- or +), and failed with ClassCastException on the consuming site for other cases.

LettuceStreamCommands.xRevRange converts Ranges with a StringCodec that produces Boundary<ByteBuffer>, while Lettuce expects the range's Boundary to include strings. The conversion worked well only in cases where the Range was unbounded (- or +), and failed with ClassCastException on the consuming site for other cases.

Original pull request: spring-projects#556.
@jankovd jankovd force-pushed the issue/DATAREDIS-1207 branch from f220c9f to 5c58005 Compare August 22, 2020 14:48
christophstrobl pushed a commit that referenced this pull request Sep 3, 2020
LettuceStreamCommands.xRevRange converts Ranges with a StringCodec that produces Boundary<ByteBuffer>, while Lettuce expects the range's Boundary to include strings. The conversion worked well only in cases where the Range was unbounded (- or +), and failed with ClassCastException on the consuming site for other cases.

Original pull request: #556
christophstrobl added a commit that referenced this pull request Sep 3, 2020
christophstrobl pushed a commit that referenced this pull request Sep 3, 2020
LettuceStreamCommands.xRevRange converts Ranges with a StringCodec that produces Boundary<ByteBuffer>, while Lettuce expects the range's Boundary to include strings. The conversion worked well only in cases where the Range was unbounded (- or +), and failed with ClassCastException on the consuming site for other cases.

Original pull request: #556
christophstrobl added a commit that referenced this pull request Sep 3, 2020
christophstrobl pushed a commit that referenced this pull request Sep 3, 2020
LettuceStreamCommands.xRevRange converts Ranges with a StringCodec that produces Boundary<ByteBuffer>, while Lettuce expects the range's Boundary to include strings. The conversion worked well only in cases where the Range was unbounded (- or +), and failed with ClassCastException on the consuming site for other cases.

Original pull request: #556
@christophstrobl
Copy link
Member

Thank you @jankovd! Merged to main line and back ported to 2.3.x and 2.2.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants