Skip to content
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

GEODE:9009 finish support for functionality compatible with Redis DEC… #6119

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

jhutchison
Copy link
Contributor

…RBY command

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

@jdeppe-pivotal jdeppe-pivotal added the redis Issues related to the geode-for-redis module label Mar 11, 2021
Copy link
Contributor

@jdeppe-pivotal jdeppe-pivotal left a comment

Choose a reason for hiding this comment

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

LGTM, other than minor variable naming request.

Copy link
Member

@sabbey37 sabbey37 left a comment

Choose a reason for hiding this comment

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

One additional scenario that would be good to add to the integration tests is when a key is already set to the Long.MIN_VALUE and we try to DECRBY 1. It should result in the error message: ERR increment or decrement would overflow. You could also test setting a key to Long.MAX_VALUE and doing DECRBY -1 to make sure we get the ERR increment or decrement would overflow message (maybe the second scenario is slightly redundant though).

Copy link
Member

@sabbey37 sabbey37 left a comment

Choose a reason for hiding this comment

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

Looks good!

@sabbey37
Copy link
Member

DUnit test failure is unrelated to this PR.

@sabbey37 sabbey37 merged commit 39c0abf into apache:develop Mar 12, 2021
@sabbey37 sabbey37 deleted the GEODE-9009-finish-decrby branch March 12, 2021 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redis Issues related to the geode-for-redis module
Projects
None yet
3 participants