Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
534 commits
Select commit Hold shift + click to select a range
69ba3fa
fixing getByteParams, Redis depends on parameters order. Adding javadoc
nykolaslima Feb 10, 2015
6e2706b
fixing parameters order
nykolaslima Feb 10, 2015
d08143f
Fix blpop and brpop commands in JedisCluster
antoaneta-marinova Feb 12, 2015
f705810
Add test for JedistCluster's method blpop
antoaneta-marinova Feb 12, 2015
4ee77ef
Remove not needed test
antoaneta-marinova Feb 12, 2015
1a47714
Merge pull request #886 from antoaneta-marinova/fix-blpop
marcosnils Feb 12, 2015
0f17edd
Deprecate pexpire on BinaryCommands that use a String instead of byte[]
taer Feb 20, 2015
f418a5a
Add @deprecated to BinaryJedis.pexpire(String,long)
taer Feb 22, 2015
00eefa4
Merge branch 'taer-binaryPexpireFix'
HeartSaVioR Feb 22, 2015
576da79
Remove deprecated method pexpire that takes a string
taer Feb 22, 2015
48170f7
Remove missed deprecated method
taer Feb 22, 2015
818f1ec
Follow up new behavior of rename from test
HeartSaVioR Feb 28, 2015
09c4571
Merge pull request #899 from HeartSaVioR/follow-up-changed-behavior-o…
HeartSaVioR Feb 28, 2015
6ebbc8b
PSETEX should take a long parameter
Feb 28, 2015
aeae551
Merge pull request #898 from ianjoneill/psetex-with-long-param
HeartSaVioR Mar 1, 2015
6bc3f6a
Remove deprecated PSETEX with int parameter
Mar 2, 2015
3d9a0ec
Merge pull request #900 from ianjoneill/remove-psetex-with-int-param
HeartSaVioR Mar 3, 2015
8558487
Remove deprecated methods (blpop, brpop, pexpire)
HeartSaVioR Mar 3, 2015
5efc8c5
deprecating blpop and brpop that will be removed in 3.0.0
nykolaslima Mar 4, 2015
b0e1fc2
Deprecate BasicCommands from JedisCluster since it has no meaning
HeartSaVioR Mar 4, 2015
0666069
Fix: slot key is missed from *scan in JedisCluster
HeartSaVioR Mar 4, 2015
ddaa256
Merge pull request #904 from HeartSaVioR/deprecate-basiccommands-from…
marcosnils Mar 5, 2015
3937fbb
Merge pull request #905 from HeartSaVioR/fix-forgotten-key-from-scan-…
marcosnils Mar 5, 2015
9b6959c
Let echo to run arbitary node, not throwing exception
HeartSaVioR Mar 5, 2015
80d2827
fix BinaryJedisCluster.move() to dispatch node properly
HeartSaVioR Mar 5, 2015
588facb
Merge pull request #903 from nykolaslima/deprecating-blpop-jedis-cluster
HeartSaVioR Mar 6, 2015
6147ef7
fix bug: getIntegerMultiBulkReply() doesn't handle broken status
HeartSaVioR Mar 8, 2015
021cb52
Add test : scriptExists with broken instance
HeartSaVioR Mar 9, 2015
f43e3a0
Merge pull request #911 from HeartSaVioR/fix-integer-multi-bulk-reply…
HeartSaVioR Mar 9, 2015
6701b07
This commit addresses the first part discussed in #909.
marcosnils Mar 9, 2015
aa9a5e2
Implementing 6701b07904357dd759a11209ce98b71bd398b0fd i've realized that
marcosnils Mar 9, 2015
4a92fea
Deprecate and per #909
marcosnils Mar 9, 2015
75154b9
Remove accidentally created file
marcosnils Mar 9, 2015
c013cf2
Add accidentally removed test
marcosnils Mar 9, 2015
51bbd69
Depcreate Sentinel and ShardedJedis pool returnxxxResource methods
marcosnils Mar 10, 2015
00faaba
Change visibility for SentinelPool and ShardedPool
marcosnils Mar 10, 2015
db61469
Update javadoc
marcosnils Mar 10, 2015
b42a861
Merge pull request #912 from xetorthio/deprecate_poolreturn
HeartSaVioR Mar 10, 2015
809a535
Merge branch 'master' into cleanup_fix
HeartSaVioR Mar 10, 2015
8460449
add spop with count command available in 3.0
Mar 11, 2015
36f00b4
add generation of OSGi metadata in the manifest
evra Mar 15, 2015
6e6eacd
Sets timeout correctly for JedisCluster. Fixes #602.
marcosnils Mar 27, 2015
5c042f7
Bumps commons-pool2 version to latest
marcosnils Mar 27, 2015
b4d06e2
Revert "Bumps commons-pool2 version to latest"
marcosnils Mar 27, 2015
8f7bd1f
Bump commons-pool2 to latest version
marcosnils Mar 27, 2015
d861896
Merge pull request #930 from xetorthio/commons_pool
HeartSaVioR Mar 27, 2015
c805fbd
Merge pull request #927 from xetorthio/cluster_timeout
HeartSaVioR Mar 27, 2015
30986c5
Merge pull request #917 from argvk/spop_with_count
HeartSaVioR Mar 27, 2015
d810685
Fix merged issue
HeartSaVioR Mar 27, 2015
dff2bd6
Ignore tests in release perform as they're already run in the prepare…
marcosnils Mar 29, 2015
7196dc6
Update README.md
marcosnils Mar 31, 2015
157a8ce
Merge branch 'master' into set-with-params
nykolaslima Mar 31, 2015
f49eb68
fixing merge problem
nykolaslima Mar 31, 2015
4de7095
fixing wrong test
nykolaslima Mar 31, 2015
454f783
fixing missing key and value params
nykolaslima Mar 31, 2015
b6faef0
1. remove the unused imports
Apr 1, 2015
a041cf4
Merge pull request #938 from zhaojinqiang/master
HeartSaVioR Apr 4, 2015
a27d241
Continue renewSlotCache if exception is encountered
pcchan Apr 9, 2015
8d0bb93
Release all resources from disconnect regardless of IOException
HeartSaVioR Apr 12, 2015
be70cbb
Awareness of JDK 1.6, move feature to util class
HeartSaVioR Apr 12, 2015
dbc3e70
fix version of Maven plugin
KengoTODA Apr 12, 2015
d05ac9f
Merge pull request #947 from KengoTODA/remove-maven-warning
HeartSaVioR Apr 12, 2015
1780b6c
set InitialCapcity to use heap effectively
KengoTODA Apr 12, 2015
1b8aa4b
Merge pull request #782 from thenobody/master
HeartSaVioR Apr 12, 2015
7e7887d
Merge pull request #948 from KengoTODA/use-heap-effectively
marcosnils Apr 12, 2015
6db79fe
Change sequence of closing IO resources, OutputStream first
HeartSaVioR Apr 16, 2015
4b237f5
Merge pull request #945 from pcchan/renewSlotCache-fix
marcosnils Apr 16, 2015
667c7f4
Merge pull request #946 from HeartSaVioR/safely-closing-resource-on-d…
HeartSaVioR Apr 16, 2015
e266be3
Configure connection timeout in JedisPool and JedisSentinelPool
maxd Apr 16, 2015
b05623a
Simplifies disconnect() since the only thing we should close is socket
HeartSaVioR Apr 16, 2015
d1842a2
Merge pull request #951 from HeartSaVioR/flush-and-close-only-socket-…
marcosnils Apr 16, 2015
e45e0fc
Adds binary zcount to pipeline and transaction. Fixes #954
marcosnils Apr 20, 2015
9e79efd
Add maven deps to travis cache for faster builds
marcosnils Apr 20, 2015
b556fa2
Merge pull request #955 from xetorthio/zcount_binary_pipeline
marcosnils Apr 20, 2015
1d328fe
Add flag to use travis container based infrastructure
marcosnils Apr 20, 2015
42b1a4a
Merge branch 'master' of github.com:xetorthio/jedis
marcosnils Apr 20, 2015
be3c771
Merge branch 'master' into cluster-revised
HeartSaVioR Apr 20, 2015
18308d1
Respect formatting
HeartSaVioR Apr 20, 2015
d584951
Merge branch 'cluster-revised' into cluster-support-multi-key-new
HeartSaVioR Apr 20, 2015
04e94e6
Merge pull request #687 from HeartSaVioR/cluster-support-multi-key-new
HeartSaVioR Apr 20, 2015
02a7acf
Introduce new interfaces for (Binary)JedisCluster
HeartSaVioR Apr 20, 2015
bfc9629
default timeout value seems not set properly (I've missed it)
HeartSaVioR Apr 21, 2015
ca59f9b
Merge pull request #671 from xetorthio/cluster-revised
marcosnils Apr 21, 2015
7ff6061
Merge branch 'master' into remove-deprecated-methods
HeartSaVioR Apr 22, 2015
a52902b
Merge pull request #902 from HeartSaVioR/remove-deprecated-methods
marcosnils Apr 22, 2015
f2a1036
Refactor command enum so we can extend commands.
marcosnils Apr 27, 2015
05fe59c
Apply formatting
marcosnils Apr 27, 2015
eedbdd5
Merge pull request #961 from xetorthio/command_interface
xetorthio Apr 27, 2015
44e1427
Change sendCommand argument type
marcosnils Apr 27, 2015
402e271
Replace Command with ProtocolCommand for missing methods
marcosnils Apr 28, 2015
7dbf621
Merge pull request #963 from xetorthio/command_interface_fix
xetorthio Apr 28, 2015
f93f37a
* minimal changes to restore building the javadoc and source jars
veselov Apr 29, 2015
61d0aa1
Merge pull request #967 from veselov/master
marcosnils Apr 29, 2015
6796767
Deprecate Pool.returnResourceObject()
HeartSaVioR May 4, 2015
60c1bdf
Change visibility of Pool.returnResourceObject() to protected
HeartSaVioR May 4, 2015
8851c49
Merge pull request #971 from HeartSaVioR/deprecate-pool-returnresourc…
HeartSaVioR May 4, 2015
4c29623
Merge branch 'master' into change-visibility-of-pool-returnresourceob…
HeartSaVioR May 4, 2015
1d21400
Merge pull request #972 from HeartSaVioR/change-visibility-of-pool-re…
HeartSaVioR May 4, 2015
5c5f3e7
Make releaseConnection use connection internal state to release it.
marcosnils May 5, 2015
0bddf6d
Delegate connection release to Jedis instance which makes sense
marcosnils May 5, 2015
94c788e
Merge pull request #974 from xetorthio/cluster_release_connection
HeartSaVioR May 5, 2015
569a09d
Merge pull request #950 from maxd/jedis-pool-connection-timeout
HeartSaVioR May 5, 2015
22f522b
Adopt conn timeout / so timeout to JedisCluster
HeartSaVioR May 5, 2015
78d9b9f
Remove unused field / methods
HeartSaVioR May 5, 2015
4ed18ef
Fix formatting
HeartSaVioR May 5, 2015
6c0f079
Merge pull request #975 from HeartSaVioR/adopt-conn-timeout-to-jedisc…
HeartSaVioR May 5, 2015
2610049
Introduce SetFromList for efficient Set result
May 6, 2015
c6b93d1
Apply feedback
May 6, 2015
0e999ac
Apply feedback
May 7, 2015
999dd2c
Update README.md
marcosnils May 7, 2015
febc027
Move SetFromList as static inner class of BinaryJedis
May 8, 2015
001e1bf
prevent ClassCastException at equals
May 8, 2015
a0622a7
Merge pull request #977 from itugs/feature-effectivesetfromlist
HeartSaVioR May 8, 2015
1df5cd7
Attempt to read RESP Errors message
May 14, 2015
39a6d16
Improvement and test case
May 15, 2015
95a11ec
Apply feedback
May 20, 2015
cfd5bd1
Add readonly command.
taer Feb 21, 2015
fc23339
Add tests for readonly.
taer Feb 22, 2015
bb0816b
Move readonly command to ClusterCommands
taer May 20, 2015
08a22fa
Merge pull request #892 from taer/readonly-master
marcosnils May 20, 2015
1406d90
Do not flush OutputStream to avoid contamination
May 22, 2015
22eaa8c
Flushing buffer before further process
May 22, 2015
cb2cb17
Fix indentation
May 22, 2015
68b6372
Merge pull request #998 from itugs/feature-binarypubsub
HeartSaVioR May 22, 2015
338eb37
Fix deadlock.
atty303 May 22, 2015
6c0f1cb
Merge pull request #985 from itugs/feature-failurereason
marcosnils May 22, 2015
d04dd36
Merge branch 'fix-cluster-connection-handling' of https://github.com/…
marcosnils May 24, 2015
d4b937a
Adds missing test cases
marcosnils May 24, 2015
eb1a56d
Merge pull request #1005 from xetorthio/atty303-fix-cluster-connectio…
HeartSaVioR May 24, 2015
6df3333
Closes #481
marcosnils May 26, 2015
ead392f
Improves performance when joining params. Closes #380
marcosnils May 26, 2015
b6a3c6b
Add javadoc to Binary method
marcosnils May 26, 2015
98bfe69
Change javadoc link
marcosnils May 26, 2015
df59a75
Merge pull request #1008 from xetorthio/join_params_improve
marcosnils May 26, 2015
50822a6
Merge pull request #1007 from xetorthio/javadoc
marcosnils May 26, 2015
dce6993
Updating README to latest stable version
nykolaslima Jun 1, 2015
e6a2cc1
Merge pull request #1014 from nykolaslima/patch-1
xetorthio Jun 1, 2015
17164ae
Add `addObject` method to pre-populate a JedisPool with idle objects
marcosnils Jun 1, 2015
673737d
Merge pull request #1015 from xetorthio/pool_addobject
marcosnils Jun 2, 2015
5bd7d2a
Fix typo
mrorii Jun 5, 2015
6ec1ae6
Merge pull request #1019 from mrorii/mrorii/fix-typo
HeartSaVioR Jun 7, 2015
bc7a3ad
Pool.close() should call destory() to shutdown derived classes properly
HeartSaVioR Jun 13, 2015
3ff1c6c
Implement Closeable to Pipeline/Transaction
HeartSaVioR Jun 25, 2015
3380e56
Merge pull request #1037 from HeartSaVioR/implement-closeable-to-pipe…
marcosnils Jun 25, 2015
235fe48
Throw exception when trying to use jedis instance in Pipeline
marcosnils Jun 28, 2015
f3e0ebd
Clarify exception message
marcosnils Jun 28, 2015
85e119c
Allow to reuse jedis connection when pipeline is empty
marcosnils Jun 28, 2015
432c986
Merge pull request #1040 from xetorthio/pipeline_check
HeartSaVioR Jun 29, 2015
7792139
Introduce toString for Slowlog
Jul 1, 2015
8dbee56
Support setting client name from sentinel pool
tgyurci Jul 2, 2015
6366f6a
Merge pull request #1044 from tgyurci/sentinel-clientname
HeartSaVioR Jul 3, 2015
1a722df
Merge pull request #1041 from Raul-/slowLogToString
HeartSaVioR Jul 4, 2015
90cfaf0
Set Jedis timeout longer while PipeliningTest
HeartSaVioR Jul 13, 2015
411f4e7
Merge pull request #1053 from HeartSaVioR/pipeline-test-longer-timeout
HeartSaVioR Jul 13, 2015
ec88b4a
compareTo() method for case of equal scores
antonio-tomac Jul 13, 2015
d68511d
make Tuple.compareTo() method compare scores
antonio-tomac Jul 13, 2015
4fad791
test for conforming comareTo() method contract
antonio-tomac Jul 13, 2015
bedd95c
change exists command to variodic
Jul 14, 2015
b3962dd
apply reviews for exists
Jul 14, 2015
14ba58b
Merge branch 'pool-close-should-call-destory-v2'
HeartSaVioR Jul 14, 2015
31b5fb6
apply review2
Jul 14, 2015
61f6cd9
add @Deprecated annotation
Jul 15, 2015
b540775
apply review
Jul 15, 2015
655dbb0
Fix invalid key length from (Binary)JedisCluster.mget
HeartSaVioR Jul 16, 2015
875082b
Expose pool borrow stats.
Jul 17, 2015
e010811
Merge pull request #1063 from jayanderson/pool_borrow_stats
HeartSaVioR Jul 18, 2015
8a45aa3
Merge pull request #1059 from HeartSaVioR/jediscluster-mget-key-lengt…
marcosnils Jul 19, 2015
9d9c359
Add hincrByFloat to JedisCommands interface.
marcosnils Aug 3, 2015
1287158
Merge pull request #1074 from xetorthio/hincrybyfloat_interface
HeartSaVioR Aug 3, 2015
32e00ee
Add @Override annotation to missing methods
marcosnils Aug 4, 2015
14533a3
Apply formatting
marcosnils Aug 4, 2015
adeec7e
Merge pull request #1077 from xetorthio/override_annotation
HeartSaVioR Aug 4, 2015
eac04b9
Remove unused IOException thrown declaration from close()
tgyurci Aug 4, 2015
74258f0
Handles JedisException from JedisSentinelPool.initSentinels()
HeartSaVioR Aug 4, 2015
e789fdb
Merge branch 'set-with-params' of https://github.com/nykolaslima/jedi…
HeartSaVioR Aug 4, 2015
a196d3e
Merge pull request #1079 from tgyurci/close-exception
marcosnils Aug 4, 2015
cd31f88
support new ZADD options introduced at Redis 3.0.2
HeartSaVioR Aug 5, 2015
4c9bd8b
add javadoc to ZIncrByParams
HeartSaVioR Aug 5, 2015
428a1f3
fix formatting to javadoc for ZIncrByParams
HeartSaVioR Aug 5, 2015
6c3dde4
Move commands interfaces to a new package
marcosnils Aug 6, 2015
129ed2f
rename zaddBinary to zadd
HeartSaVioR Aug 6, 2015
f5444b9
Merge pull request #1085 from xetorthio/commands_refactor
marcosnils Aug 7, 2015
6cff581
Merge branch 'master' into support-new-zadd-options-3.0.2
HeartSaVioR Aug 7, 2015
9e95ce1
Merge pull request #1083 from HeartSaVioR/support-new-zadd-options-3.0.2
HeartSaVioR Aug 7, 2015
dedc8d1
Merge branch 'feature/exists' of https://github.com/charsyam/jedis in…
HeartSaVioR Aug 7, 2015
4e711b5
remove @Deprecated from exists()
HeartSaVioR Aug 7, 2015
8e3ae49
fix refresh slot table logic.
be-hase Aug 14, 2015
3923ae1
Merge pull request #1090 from be-hase/improve-handling-move-redirection
marcosnils Aug 14, 2015
adb1f27
remove unnecessary keyword
Alwayswithme Aug 14, 2015
a6427e8
Merge pull request #1091 from Alwayswithme/cleanup-code
marcosnils Aug 14, 2015
1e5e10c
Merge pull request #1080 from HeartSaVioR/improve-error-handling-from…
marcosnils Aug 24, 2015
8747d28
Merge branch 'removeStringKeyOnBinaryJedis' of https://github.com/tae…
HeartSaVioR Aug 28, 2015
16bda8c
Fix socket leak on makeObject.
marcosnils Aug 28, 2015
fe6f349
Merge pull request #1105 from xetorthio/makeobject_socketleak_fix
HeartSaVioR Aug 28, 2015
5010bcc
support geo commands
HeartSaVioR Aug 30, 2015
3facce5
fix formatting
HeartSaVioR Aug 30, 2015
133a451
add missing Override annotation
KengoTODA Sep 8, 2015
f9f8a13
Merge pull request #1111 from KengoTODA/add-missing-annotation
marcosnils Sep 8, 2015
82dd726
Add constructors in JedisCluster for just one host and port since the…
ricardorames Sep 10, 2015
117192a
Adding some tests for new constructors.
ricardorames Sep 10, 2015
50e8d34
Merge pull request #1115 from ricardorames/master
marcosnils Sep 23, 2015
b6d9441
Issue-1126: HostAndPort implement Serializable
Oct 4, 2015
306c534
Merge pull request #1127 from mjtieman/Issue-1126
marcosnils Oct 5, 2015
f84ab56
Merge pull request #1106 from HeartSaVioR/support-geo-commands
marcosnils Oct 27, 2015
02ee213
Log original exception at sentinel lost
tgyurci Oct 29, 2015
1ae8379
Merge pull request #1140 from tgyurci/sentinel-exception
marcosnils Oct 29, 2015
1fb08db
Support for ssl/tls using defaults or user specified SSLSocketFactory…
Dec 5, 2015
040de3f
Update JedisSlotBasedConnectionHandler.java
serge-groshev Dec 8, 2015
4d10a39
Feature documentation:
OgmaJ Dec 15, 2015
9701e1d
Merge pull request #1181 from OgmaJ/feature/documentation
marcosnils Dec 16, 2015
472c863
Let SetFromList implements Serializable (closes #1179)
HeartSaVioR Dec 16, 2015
bd79617
fix zrevrangeByLex in BinaryJedisCluster
TimothyZhang023 Dec 25, 2015
dcf3833
Merge pull request #1188 from zts1993/master
marcosnils Dec 28, 2015
30b2eff
Add SSL testing
marcosnils Jan 11, 2016
ffe772c
Integration tests for SSL/TLS with failure mode tests for hostname ve…
Jan 14, 2016
f6ba7ec
Merge pull request #1 from TruSphere/ssl_tls_support_with_tests
marcosnils Jan 14, 2016
0591508
Fixed issue that causes tests to hang.
Jan 15, 2016
080d3e6
Fixed issue that causes tests to hang.
Jan 15, 2016
3e595a4
Update JedisSlotBasedConnectionHandler.java
serge-groshev Jan 15, 2016
0f9c754
Merge pull request #1178 from serge-groshev/master
marcosnils Jan 15, 2016
5f17733
Merge pull request #2 from TruSphere/ssl_tls_support_with_tests
marcosnils Jan 15, 2016
556f5b0
Modified tests so they compile with Java 6. Commented out the tests t…
Jan 15, 2016
ee44814
Merge pull request #3 from TruSphere/ssl_tls_support_with_tests
marcosnils Jan 15, 2016
e88f1af
Install stunnel from source
marcosnils Jan 16, 2016
53ee192
Update README.md
marcosnils Jan 20, 2016
c947e70
Merge pull request #1192 from marcosnils/TruSphere-ssl_tls_support
marcosnils Jan 23, 2016
48af512
Remove JDK6 tests as it won't be supported from 3.0 onwards
marcosnils Jan 25, 2016
b3297f3
Uncommented Java 7 dependent tests for SSL/TLS support.
Jan 26, 2016
d2b92b7
Merge pull request #1199 from TruSphere/uncommment_java7_ssl_tls_tests
marcosnils Jan 26, 2016
ac9a31f
squid:S1155 - Collection.isEmpty() should be used to test for emptiness
Jan 26, 2016
fb9db17
squid:S1197 - Array designators [] should be on the type, not the var…
Jan 26, 2016
08279e0
Fix stunnel URL
marcosnils Jan 29, 2016
82d5aab
Merge pull request #1203 from DevFactory/release/Collection.isEmpty()…
marcosnils Jan 29, 2016
95dd9a5
Merge pull request #1202 from DevFactory/staging/Array-designators-sh…
marcosnils Jan 29, 2016
03b74ae
squid:S1118 - Utility classes should not have public constructors
Jan 29, 2016
9a201c9
squid:S1213 - The members of an interface declaration or class should
Jan 29, 2016
02f7551
Bump commons-pool2 to latest version
GotoFinal Feb 7, 2016
bbce085
using cluster slots instead of cluster nodes
Jan 28, 2016
76b14b4
Merge pull request #1204 from charsyam/feature/using_cluster_slots
marcosnils Feb 12, 2016
5765391
Merge pull request #1205 from DevFactory/release/Utility-classes-shou…
HeartSaVioR Feb 13, 2016
9c7dea7
Merge pull request #1207 from DevFactory/release/The-members-of-an-in…
HeartSaVioR Feb 13, 2016
d3b07f2
Merge pull request #1209 from GotoFinal/master
HeartSaVioR Feb 13, 2016
17213b9
Fixes JedisCluster.psubscribe() to call the correct psubscribe method.
tuukkateppola Feb 16, 2016
98dfe7e
Merge pull request #1218 from tuutep01/jediscluster-psubscribe-fix
marcosnils Feb 16, 2016
cda20b1
Add issue template
marcosnils Feb 25, 2016
ad855e6
Add support to *scan parameters to ShardedJedis and JedisCluster
marcosnils Feb 26, 2016
722eabb
Merge pull request #1227 from xetorthio/binary_scan_commands
marcosnils Feb 28, 2016
37759d1
Don't return JedisConnectionException if pool is exahusted
marcosnils Mar 10, 2016
833308c
Merge pull request #1237 from xetorthio/pool_exception
marcosnils Mar 10, 2016
7366fc1
Attempted fix for #1229 - multiple entries in node list for same host
roblg Mar 14, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# How to use Jedis Github Issue

* Github issues SHOULD ONLY BE USED to report bugs, and for DETAILED feature requests. Everything else belongs to the Jedis Google Group.

Jedis Google Group address:

https://groups.google.com/forum/?fromgroups#!forum/jedis_redis

Please post General questions to Google Group. It can be closed without answer when posted to Github issue.

# Some rules of Jedis source code

## Code Convention

* Jedis uses ```HBase Formatter``` introduced by [HBASE-5961](https://issues.apache.org/jira/browse/HBASE-5961)
* You can import code style file (located to hbase-formatter.xml) to Eclipse, IntelliJ
* line break by column count seems not working with IntelliJ
* You can run ```make format``` anytime to reformat without IDEs

## Adding commands

* Jedis uses many interfaces to structure commands
* planned to write documentation about it, contribution is more welcome!
* We need to add commands to all interfaces which have responsibility to expose
* ex) We need to add ping() command to BasicCommands, and provide implementation to all of classes which implemented BasicCommands

## type <-> byte array conversion

* string <-> byte array : use SafeEncoder.encode()
* Caution: use String.toBytes() directly will break GBK support!
* boolean, int, long, double -> byte array : use Protocol.toByteArray()

# How to contribute by Pull Request

1. Fork Jedis on github (http://help.github.com/fork-a-repo/)
2. Create a topic branch (git checkout -b my_branch)
3. Push to your branch (git push origin my_branch)
4. Post a pull request on github (http://help.github.com/send-pull-requests/)

I recommend you to create branch with meaningful name, not modifying master branch directly.

Please add unit tests in order to prove your modification works smoothly. And please make sure your modification passes all unit tests.

# Jedis Test Environment

Jedis unit tests run with latest [```Redis unstable branch```](https://github.com/antirez/redis).
Please let them prepared and installed.

Jedis unit tests use many Redis instances, so we use ```Makefile``` to prepare environment.

You can start test with ```make test```.
You can set up test environments by ```make start```, and tear down environments by ```make stop```.

If one or some of unit tests in current master branch of Jedis fails with Redis unstable branch, please post it to Github issue, and go ahead with other unit tests at your work.

Thanks!
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### Expected behavior

Write here what you're expecting ...

### Actual behavior

Write here what happens instead ...

### Steps to reproduce:

Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
1.
2.
3.

### Redis / Jedis Configuration

#### Jedis version:

#### Redis version:

#### Java version:




13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
sudo: required
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
install: make travis-install
- oraclejdk8
before_install:
- wget -O stunnel.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.29.tar.gz
- tar -xvzf stunnel.tar.gz
- cd ./stunnel-5.29 && ./configure && make && sudo make install && cd ..
install:
- make travis-install
script: make test
cache:
directories:
- $HOME/.m2
48 changes: 45 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PATH := ./redis-git/src:${PATH}
STUNNEL_BIN := $(shell which stunnel)

define REDIS1_CONF
daemonize yes
Expand Down Expand Up @@ -116,6 +117,18 @@ pidfile /tmp/sentinel3.pid
logfile /tmp/sentinel3.log
endef

define REDIS_SENTINEL4
port 26382
daemonize yes
sentinel monitor mymaster 127.0.0.1 6381 1
sentinel auth-pass mymaster foobared
sentinel down-after-milliseconds mymaster 2000
sentinel parallel-syncs mymaster 1
sentinel failover-timeout mymaster 120000
pidfile /tmp/sentinel4.pid
logfile /tmp/sentinel4.log
endef

# CLUSTER REDIS NODES
define REDIS_CLUSTER_NODE1_CONF
daemonize yes
Expand Down Expand Up @@ -189,6 +202,15 @@ cluster-enabled yes
cluster-config-file /tmp/redis_cluster_node6.conf
endef

#STUNNEL
define STUNNEL_CONF
cert = src/test/resources/private.pem
pid = /tmp/stunnel.pid
[redis]
accept = 127.0.0.1:6390
connect = 127.0.0.1:6379
endef

export REDIS1_CONF
export REDIS2_CONF
export REDIS3_CONF
Expand All @@ -199,14 +221,23 @@ export REDIS7_CONF
export REDIS_SENTINEL1
export REDIS_SENTINEL2
export REDIS_SENTINEL3
export REDIS_SENTINEL4
export REDIS_CLUSTER_NODE1_CONF
export REDIS_CLUSTER_NODE2_CONF
export REDIS_CLUSTER_NODE3_CONF
export REDIS_CLUSTER_NODE4_CONF
export REDIS_CLUSTER_NODE5_CONF
export REDIS_CLUSTER_NODE6_CONF
export STUNNEL_CONF
export STUNNEL_BIN


start: cleanup
ifndef STUNNEL_BIN
SKIP_SSL := !SSL*,
endif
export SKIP_SSL

start: stunnel cleanup
echo "$$REDIS1_CONF" | redis-server -
echo "$$REDIS2_CONF" | redis-server -
echo "$$REDIS3_CONF" | redis-server -
Expand All @@ -219,6 +250,8 @@ start: cleanup
echo "$$REDIS_SENTINEL2" > /tmp/sentinel2.conf && redis-server /tmp/sentinel2.conf --sentinel
@sleep 0.5
echo "$$REDIS_SENTINEL3" > /tmp/sentinel3.conf && redis-server /tmp/sentinel3.conf --sentinel
@sleep 0.5
echo "$$REDIS_SENTINEL4" > /tmp/sentinel4.conf && redis-server /tmp/sentinel4.conf --sentinel
echo "$$REDIS_CLUSTER_NODE1_CONF" | redis-server -
echo "$$REDIS_CLUSTER_NODE2_CONF" | redis-server -
echo "$$REDIS_CLUSTER_NODE3_CONF" | redis-server -
Expand All @@ -230,6 +263,10 @@ cleanup:
- rm -vf /tmp/redis_cluster_node*.conf 2>/dev/null
- rm dump.rdb appendonly.aof - 2>/dev/null

stunnel:
@if [ -e "$$STUNNEL_BIN" ]; then\
echo "$$STUNNEL_CONF" | stunnel -fd 0;\
fi
stop:
kill `cat /tmp/redis1.pid`
kill `cat /tmp/redis2.pid`
Expand All @@ -241,12 +278,14 @@ stop:
kill `cat /tmp/sentinel1.pid`
kill `cat /tmp/sentinel2.pid`
kill `cat /tmp/sentinel3.pid`
kill `cat /tmp/sentinel4.pid`
kill `cat /tmp/redis_cluster_node1.pid` || true
kill `cat /tmp/redis_cluster_node2.pid` || true
kill `cat /tmp/redis_cluster_node3.pid` || true
kill `cat /tmp/redis_cluster_node4.pid` || true
kill `cat /tmp/redis_cluster_node5.pid` || true
kill `cat /tmp/redis_cluster_node6.pid` || true
kill `cat /tmp/stunnel.pid` || true
rm -f /tmp/sentinel1.conf
rm -f /tmp/sentinel2.conf
rm -f /tmp/sentinel3.conf
Expand All @@ -260,7 +299,7 @@ stop:
test:
make start
sleep 2
mvn -Dtest=${TEST} clean compile test
mvn -Dtest=${SKIP_SSL}${TEST} clean compile test
make stop

package:
Expand All @@ -273,11 +312,14 @@ deploy:
mvn clean deploy
make stop

format:
mvn java-formatter:format

release:
make start
mvn release:clean
mvn release:prepare
mvn release:perform
mvn release:perform -DskipTests
make stop

travis-install:
Expand Down
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Jedis is a blazingly small and sane [Redis](http://github.com/antirez/redis "Red

Jedis was conceived to be EASY to use.

Jedis is fully compatible with redis 2.8.5.
Jedis is fully compatible with redis 2.8.x and 3.0.x.

## Community

Expand Down Expand Up @@ -48,7 +48,7 @@ Or use it as a maven dependency:
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.4.2</version>
<version>2.8.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
Expand Down Expand Up @@ -81,23 +81,32 @@ jc.set("foo", "bar");
String value = jc.get("foo");
```

## I want to contribute!
## FAQ

- Do you have strange stack traces?
- You're getting errors when running jedis in multi-threaded environments?
- Do you need further instructions about pipelining, transactions or sentinel?

That is great! Just fork the project in github. Create a topic branch, write some code, and add some tests for your new code.
Please check the [WIKI](https://github.com/xetorthio/jedis/wiki) for more useful information.

To run the tests:

- Use the latest redis master branch.
## I want to contribute!

That is great!

- Run ```make test```. This will run 2 instances of redis. We use 2 redis
servers, one on default port (6379) and the other one on (6380). Both have
authentication enabled with default password (foobared). This way we can
test both sharding and auth command. For the Sentinel tests to we use a
default Sentinel configuration that is configured to properly authenticate
using the same password with a master called mymaster running on 6379.
Please see CONTRIBUTING.md on project's root directory for follow up how to contribute to Jedis project.

Thanks for helping!

## Sponsorship

YourKit supports open source projects with its full-featured Java Profiler.
YourKit, LLC is the creator of [YourKit Java Profiler](http://www.yourkit.com/java/profiler/index.jsp)
and [YourKit .NET Profiler](http://www.yourkit.com/.net/profiler/index.jsp),
innovative and intelligent tools for profiling Java and .NET applications.

![YourKit Logo](https://cloud.githubusercontent.com/assets/1317309/4507430/7119527c-4b0c-11e4-9245-d72e751e26ee.png)

## License

Copyright (c) 2011 Jonathan Leibiusky
Expand Down
33 changes: 0 additions & 33 deletions build.gradle

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading