-
Notifications
You must be signed in to change notification settings - Fork 612
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
ISPN-14648 GETDEL Command #10877
ISPN-14648 GETDEL Command #10877
Conversation
server/resp/src/test/java/org/infinispan/server/resp/RespSingleNodeTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GEt DEL is not in this PR but append ...
mmm, maybe a mees with the rebase |
1b63b78
to
fb477c7
Compare
based on #10876 for assertj |
ChannelHandlerContext ctx, | ||
List<byte[]> arguments) { | ||
if (arguments.size() != getArity()-1) { | ||
ByteBufferUtils.stringToByteBuf("-ERR wrong number of arguments for 'append' command\r\n", handler.allocatorToUse()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would centralize all -ERR
strings into a Messages
class using a MessageBundle
(see the CLI).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, but I would trace it in a separate issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, | ||
ChannelHandlerContext ctx, | ||
List<byte[]> arguments) { | ||
if (arguments.size() != getArity()-1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting seems a bit off here (spaces around the subtraction)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in the APPEND PR, this depends on #10876 for assertj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just minor change
@@ -88,8 +89,7 @@ public String getName() { | |||
// DEL should always be first here | |||
indexedRespCommand[3] = new RespCommand[]{new DEL(), new DECR(), new DECRBY()}; | |||
indexedRespCommand[4] = new RespCommand[]{new ECHO()}; | |||
// GET should always be first here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't delete this comment :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch 🙂 fixed
c644018
to
5d33b5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, however CI didn't build on last run, maybe it needs a rebase?
rebased, let's see... |
https://issues.redhat.com/browse/ISPN-14648