Commit Graph

4892 Commits

Author SHA1 Message Date
d15ffcd65c Redis 2.9.101 (3.0.0 Release Candidate 1). 3.0.0-rc1 2014-10-09 11:06:02 +02:00
c6226f262f Cluster: process gossip section only for known nodes.
With the exception of nodes sending MEET packets: we have to trust them
since they can send us MEET packets only when the cluster is initially
created or because sysadmin manual action.
2014-10-09 10:52:28 +02:00
419eb18505 Cluster: fix logic to detect we are among a minority.
In the cluster evaluation function we are supposed to set the cluster
state as "fail" if we are among a minority, however the code was not
detecting to be into a minority partition if exactly half the masters
were reachable, which is a minority.
2014-10-09 10:52:28 +02:00
07963b21e3 Cluster test: helpers/onlydots.tcl: detect EOF and exit. 2014-10-08 10:17:23 +02:00
079662fca9 Cluster test: less console-spammy resharding test. 2014-10-08 10:17:23 +02:00
6da71d65ff Cluster: nodes.conf added to git ignore list. 2014-10-08 09:12:43 +02:00
9a867b686a Cluster: more chatty slaves when failover is stalled. 2014-10-08 09:12:43 +02:00
eedfbdec1d Linenoise README updated to match source code. 2014-10-06 10:07:02 +02:00
cf2815b60e Test: check that INCR object sharing works as expected. 2014-10-06 10:07:02 +02:00
b97644881c INCR: Modify incremented object in-place when possible.
However we don't try to do this if the integer is already inside a range
representable with a shared integer.

The performance gain appears to be around ~15% in micro benchmarks,
however in the long run this also helps to improve locality, so should
have more, hard to measure, benefits.
2014-10-06 10:07:02 +02:00
6e6749c83d redis.conf small grammar fix
😄

Closes #2034
2014-10-06 10:07:02 +02:00
188bb04282 Fix typo
Closes #2029
2014-10-06 10:07:02 +02:00
9a38820f1e Fix typo in unit test
Closes #2005
2014-10-06 10:07:02 +02:00
2393adda02 Fix typos in comments
Closes #2002
2014-10-06 10:07:02 +02:00
709ee6e818 Add missing 'by' 2014-10-06 10:07:02 +02:00
c2644c8a35 Fix typo in scripting.c comment
Closes #1960
2014-10-06 10:07:02 +02:00
f30136f206 Fix typo radis -> redis
Closes #1938
2014-10-06 10:07:02 +02:00
eb19819d93 Cleanup wording of dictScan() comment
Some language in the comment was difficult
to understand, so this commit: clarifies wording, removes
unnecessary words, and relocates some dependent clauses
closer to what they actually describe.

I also tried to break up longer chains of thought
(if X, then Y, and Q, and also F, so obviously M)
into more manageable chunks for ease of understanding.
2014-10-06 10:07:02 +02:00
d66a3831b4 Fix comment inconsistencies in ziplist.c
Closes #1523
2014-10-06 10:07:02 +02:00
213e819293 Fix sentinel.conf typo
Closes #1739
2014-10-06 10:07:02 +02:00
a19cdc5138 Remove trailing spaces from tests 2014-10-06 10:07:02 +02:00
f4c4a0fc33 Fix spelling in some test cases 2014-10-06 10:07:01 +02:00
47fde270b6 Spell software correctly 2014-10-06 10:07:01 +02:00
bd62c95200 Clean up text throughout project
- Remove trailing newlines from redis.conf
  - Fix comment misspelling
  - Clarifies zipEncodeLength usage and a C API mention (#1243, #1242)
  - Fix cluster typos (inspired by @papanikge #1507)
  - Fix rewite -> rewrite in a few places (inspired by #682)

Closes #1243, #1242, #1507
2014-10-06 10:07:01 +02:00
c51baf646a Fix hash table size in comment for dictScan
Closes #1351
2014-10-06 10:07:01 +02:00
7e055d4e9c Fix on-place -> in-place
Closes #1373
2014-10-06 10:07:01 +02:00
189c39607a Fix typo in redis.h
Closes #1386
2014-10-06 10:07:01 +02:00
Ben
c4aa0e34d0 Grammar and typo fixes in redis.conf
Closes #1441
2014-10-06 10:07:01 +02:00
cc4162ff44 Fix typos
Closes #1513
2014-10-06 10:07:01 +02:00
01bdf82cf2 Fix typo: ad -> and
Closes #1537
2014-10-06 10:07:01 +02:00
76b3e827ee Fix typo
Closes #1544
2014-10-06 10:07:01 +02:00
84846beaae Fix typo
Closes #1682
2014-10-06 10:06:43 +02:00
ad7104724b Fix typo in redis.conf
Closes #1713
2014-10-06 10:06:43 +02:00
f5c20f382c Fix incorrect comments
error != success; and 0 != number of bytes written

Closes #1806
2014-10-06 10:06:43 +02:00
1a309ad8b1 Fix many small typos
Closes #1871
2014-10-06 10:06:43 +02:00
3b544712a8 Update linenoise accessory files
The core linenoise code was being backported, but not
the README or example.  It's less confusing for users
if everything matches across directories.

Fix inspired by @thrig

Closes #1872
2014-10-06 10:06:43 +02:00
3123a7b93b Remove surplus double quotes
Closes #1877
2014-10-06 10:06:43 +02:00
d26fe21007 Improve disable save comment in redis.conf
Closes #1897
2014-10-06 10:06:43 +02:00
de03925230 redis-trib should not abort easily on connection issues. 2014-10-06 10:06:43 +02:00
0ad99ccf75 DEBUG POPULATE two args form implemented.
The old DEBUG POPULATE form for automatic creation of test keys is:

    DEBUG POPULATE <count>

Now an additional form is available:

    DEBUG POPULATE <count> <prefix>

When prefix is not specified, it defaults to "key", so the keys are
named incrementally from key:0 to key:<count-1>. Otherwise the specified
prefix is used instead of "key".

The command is useful in order to populate different Redis instances
with key names guaranteed to don't collide. There are other debugging
uses, for example it is possible to add additional N keys using a count
of N and a random prefix at every call.
2014-10-06 10:06:43 +02:00
256deeca85 Linenoise lib updated. 2014-09-22 14:56:34 +02:00
beafebb4f3 Fix hiredis getaddrinfo leak
Fixed in Redis by 1a5e5b6, but since that part of code
is largely copy/paste from Redis, the fix needs to be
ported over too.

Closes #2012
2014-09-19 14:22:00 +02:00
3f64424e3e anetPeerToString(): make unix sockets distinguishable.
Following the CLIENT LIST output format, we prefix the unix socket
address with a "/" so that it is different than an IPv4/6 address.
This makes parsing simpler.

Related to #2010.
2014-09-19 14:22:00 +02:00
c62903bb75 anetPeerToString() refactoring and more explicit checks.
Related to PR #2010.
2014-09-19 14:22:00 +02:00
7b2d32d930 Unix domain sockets incorrectly listed as IPv6. 2014-09-19 14:22:00 +02:00
015cbf3015 Cluster: claim ping_sent time even if we can't connect.
This fixes a potential bug that was never observed in practice since
what happens is that the asynchronous connect returns ok (to fail later,
calling the handler) every time, so a ping is queued, and sent_ping
happens to always be populated.

Howver technically connect(2) with a non blocking socket may return an
error synchronously, so before this fix the code was not correct.
2014-09-19 14:22:00 +02:00
d4c3c1248f Cluster: new option to work with partial slots coverage. 2014-09-19 14:22:00 +02:00
fbaa438830 Better truncated AOF loading tests.
Now there are tests to write more data after loading a truncated AOF,
testing that the loaded data is correct, appending more, and testing
again.
2014-09-17 10:01:02 +02:00
c698616bf8 Seek at the end of AOF after truncate call.
It is not clear if files open in append only mode will automatically fix
their offset after a truncate(2) operation. This commit makes sure that
we reposition the AOF file descriptor offset at the end of the file
after a truncated AOF is loaded and trimmed to the last valid command.
2014-09-17 10:01:02 +02:00
ac76d56e6f On AOF end of file, truncate the AOF to last valid command.
Recently we introduced the ability to load truncated AOFs, but
unfortuantely the support was broken since the server, after loading the
truncated AOF, continues appending to the file that is corrupted at the
end. The problem is fixed only in the next AOF rewrite.

This commit fixes the issue by truncating the AOF to the last valid
opcode, and aborting if it is not possible to truncate the file
correctly.
2014-09-17 10:01:01 +02:00