The GitHub Actions job "CI" on kvrocks.git/fix_bug has failed.
Run started by GitHub user i18nsite (triggered by aleksraiden).

Head commit for run:
b250521640af4f76d1bbc42c975d141c405a3ae3 / js0.site <[email protected]>
fix(stream): fix XPENDING bug and add exclusive range support (#3276)

This commit fixes two issues with the XPENDING command:

1. Fixed bug where XPENDING returned empty results when start_id equals end_id
   - Fixed parsing error in CommandXPending::Parse where start_id was 
incorrectly
     used to parse end_id
   - Fixed iteration bounds in GetPendingEntries to be inclusive of end_id
   - Added optimization for single-entry lookup when start_id == end_id
   - Used rocksdb::Slice comparison to avoid string allocation in loop

2. Implemented exclusive range support as specified in Redis 6.2.0
   - Added exclude_start and exclude_end flags to StreamPendingOptions
   - Updated CommandXPending::Parse to handle '(' prefix for exclusive ranges
   - Updated GetPendingEntries iteration logic to respect exclusion flags

Tests:
- Added comprehensive test suite covering all XPENDING features
- All tests pass including bug reproduction, summary, extended form,
  consumer filter, idle filter, and exclusive ranges

Report URL: https://github.com/apache/kvrocks/actions/runs/19795539056

With regards,
GitHub Actions via GitBox

Reply via email to