Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add idle attribute for xpending command #2101

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
SivaTharun wants to merge 2 commits into spring-projects:main from SivaTharun:issue/2046

Conversation

Copy link

@SivaTharun SivaTharun commented Jun 28, 2021
edited
Loading

Overview

idle attribute support for redis xpending stream commands
Connects #2046

  • added the support for idle attribute support for xpending commands in reactive stream commands and redis stream commands
  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

- added the support for idle attribute support for xpending commands in reactive stream commands and redis stream commands
Copy link

@SivaTharun Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

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.

Thanks a lot. I had a look and the code looks pretty decent. It would make sense to add integration tests (see AbstractConnectionIntegrationTests and LettuceReactiveStreamCommandsIntegrationTests).

* @see <a href="https://redis.io/commands/xpending">Redis Documentation: xpending</a>
* @since 2.3
*/
PendingMessages pending(K key, String group, Range<?> range, long count, long idleMilliSeconds);
Copy link
Member

Choose a reason for hiding this comment

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

For both added methods (pending), it would make sense to accept idleTime as long and have a TimeUnit to avoid potential conversion bugs in calling code.

* @return pending messages for the given {@literal consumer group} or {@literal null} when used in pipeline /
* transaction.
* @see <a href="https://redis.io/commands/xpending">Redis Documentation: xpending</a>
* @since 2.3
Copy link
Member

Choose a reason for hiding this comment

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

@since should point to version 2.6 in all newly introduced methods.

@mp911de mp911de changed the title (削除) 2046 - implementation the idle attribute support for xpending command (削除ここまで) (追記) Add idle attribute for xpending command (追記ここまで) Jul 12, 2021
Copy link
Member

@SivaTharun any update on the comments @mp911de had?
Also, please sign the CLA as we cannot consider your contribution without it.

@christophstrobl christophstrobl added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 14, 2021
@SivaTharun SivaTharun marked this pull request as ready for review July 15, 2021 05:23
Copy link
Author

SivaTharun commented Jul 15, 2021
edited
Loading

@SivaTharun any update on the comments @mp911de had?
Also, please sign the CLA as we cannot consider your contribution without it.

@christophstrobl i am currently addressing the comments, and will be ready in a couple of days. sure i will sign in the CLA

christophstrobl reacted with thumbs up emoji

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 15, 2021
...nto issue/2046
# Conflicts:
#	src/main/java/org/springframework/data/redis/connection/DefaultStringRedisConnection.java
Copy link
Member

mp911de commented Mar 10, 2022

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@mp911de mp911de mp911de requested changes

Labels
status: feedback-provided Feedback has been provided
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /