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

* partial implementation of netty 4 client + refactoring on Reply inheritance tree #36

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

gbrd
Copy link

@gbrd gbrd commented Apr 23, 2014

  • partial implementation of netty 4 client (some verbs are missing, need just some more copy-paste)
  • refactoring on Reply inheritance tree
  • fix some issues (workarround for netty bug in fact) on message
    order over intense usage of message pipelining
  • some other minor modifications

need just some more copy-paste)
   * refactoring on Reply inheritance tree
   * fix some issues (workarround for netty bug in fact) on message
order over intense usage of message pipelining
   * some other minor modifications
@normanmaurer
Copy link

If there is a Netty bug please open an issue in the Netty issue tracker ...

Am 23.04.2014 um 16:36 schrieb gbrd [email protected]:

partial implementation of netty 4 client (some verbs are missing, need just some more copy-paste)
refactoring on Reply inheritance tree
fix some issues (workarround for netty bug in fact) on message order over intense usage of message pipelining
some other minor modifications
You can merge this Pull Request by running

git pull https://github.com/gbrd/redis-protocol master
Or view, comment on, or merge it at:

#36

Commit Summary

  • partial implementation of netty 4 client (some verbs are missing,
    File Changes

M .gitignore (11)
M README (8)
D netty4-client/src/main/java/redis/netty4/ChannelFutureListenerPromiseAdapter.java (28)
A netty4-client/src/main/java/redis/netty4/RedisClient.java (738)
D netty4-client/src/main/java/redis/netty4/RedisClientBase.java (60)
M netty4-client/src/test/java/redis/netty4/RedisClientTest.java (234)
M netty4-server/src/main/java/redis/server/netty/RedisCommandDecoder.java (2)
M netty4-server/src/main/java/redis/server/netty/SimpleRedisServer.java (14)
A netty4/src/main/java/redis/netty4/AbstarctReply.java (25)
A netty4/src/main/java/redis/netty4/AbstractRedisDecoderState.java (105)
M netty4/src/main/java/redis/netty4/BulkReply.java (42)
M netty4/src/main/java/redis/netty4/Command.java (40)
A netty4/src/main/java/redis/netty4/CommandResp.java (89)
M netty4/src/main/java/redis/netty4/ErrorReply.java (20)
A netty4/src/main/java/redis/netty4/IRedisDecoderState.java (15)
A netty4/src/main/java/redis/netty4/InAMultiBulkDecoderState.java (49)
A netty4/src/main/java/redis/netty4/InitialRedisDecoderState.java (120)
M netty4/src/main/java/redis/netty4/InlineReply.java (19)
M netty4/src/main/java/redis/netty4/IntegerReply.java (18)
M netty4/src/main/java/redis/netty4/MultiBulkReply.java (244)
A netty4/src/main/java/redis/netty4/RedisException.java (29)
M netty4/src/main/java/redis/netty4/RedisReplyDecoder.java (189)
M netty4/src/main/java/redis/netty4/Reply.java (10)
A netty4/src/main/java/redis/netty4/ReplyListener.java (14)
M netty4/src/main/java/redis/netty4/StatusReply.java (20)
R netty4/src/test/java/redis/netty4/CommandTest.java (4)
R netty4/src/test/java/redis/netty4/ReplyTest.java (32)
M pom.xml (314)
Patch Links:

https://github.com/spullara/redis-protocol/pull/36.patch
https://github.com/spullara/redis-protocol/pull/36.diff

Reply to this email directly or view it on GitHub.

@gbrd
Copy link
Author

gbrd commented Apr 23, 2014

I would have to try it again on last netty version.
With netty 4.0.15 it seems I was forced to wait for write callback (ChannelFuture completed) to be sure that commands are sent in order on the TCP connection.
Sometime, I had problems if I just try to rely on synchronous write return, but the conditions to reproduce it were not clear.

vkorenev and others added 2 commits May 19, 2014 11:53
- use redis embedded for tests
- fix parent pom group-id (changed by error in previous commit)
- manage submodules version in dependency management + simplify sub
modules poms
@gbrd
Copy link
Author

gbrd commented May 19, 2014

I reformatted the code (with 2 spaces) and cleaned previous commit.

gbrd and others added 7 commits May 26, 2014 12:11
-fix a bug on multibulk reply decoding + corresponding unit test
-minor: add some message in test
- fix memory leak : add releaseAll method in Reply, the client has to
call it (at minimum) when receiving a BulkReply or a MutliBulkReply
containing a BulkReply)
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.

4 participants