Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I92c7460b94b914b3bd8be60d285c0fde4b876222 Reviewed-on: http://review.couchbase.org/12336 Reviewed-by: Dustin Sallings <dustin@spy.net> Tested-by: Dustin Sallings <dustin@spy.net>
- Loading branch information
Showing
15 changed files
with
310 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"nodes": [ | ||
{ | ||
"hostname": "192.168.2.123:9002", | ||
"couchApiBase": "http://192.168.2.123:9502/default", | ||
"ports": { | ||
"proxy": 12005, | ||
"direct": 12004 | ||
} | ||
}, | ||
{ | ||
"hostname": "192.168.2.123:9000", | ||
"couchApiBase": "http://192.168.2.123:9500/default", | ||
"ports": { | ||
"proxy": 12001, | ||
"direct": 12000 | ||
} | ||
}, | ||
{ | ||
"hostname": "192.168.2.123:9001", | ||
"couchApiBase": "http://192.168.2.123:9501/default", | ||
"ports": { | ||
"proxy": 12003, | ||
"direct": 12002 | ||
} | ||
} | ||
], | ||
"vBucketServerMap": { | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 1, | ||
"serverList": [ | ||
"192.168.2.123:12000", | ||
"192.168.2.123:12002", | ||
"192.168.2.123:12004" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1 ], | ||
[ 0, 1 ], | ||
[ 0, 1 ], | ||
[ 1, 2 ], | ||
[ 1, 2 ], | ||
[ 2, 0 ], | ||
[ 2, 1 ], | ||
[ 2, 1 ], | ||
[ 1, 0 ], | ||
[ 1, 0 ], | ||
[ 1, 0 ], | ||
[ 0, 2 ], | ||
[ 0, 2 ], | ||
[ 0, 2 ], | ||
[ 2, 0 ], | ||
[ 2, 0 ] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server4:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 0, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 1, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1 ], | ||
[ 1, 0 ], | ||
[ 1, 0 ], | ||
[ 0, 1 ], | ||
[ 0, 1 ], | ||
[ 1, 0 ], | ||
[ 1, 0 ], | ||
[ 0, 1 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"otherKeyThatIsIgnored": 12345, | ||
"vBucketServerMap": { | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"otherKeyThatIsIgnored": 12345, | ||
"vBucketServerMap": { | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211", | ||
"server4:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
], | ||
"vBucketMapForward": [ | ||
[ 3, 0, 0 ], | ||
[ 2, 1, 3 ], | ||
[ 1, 2, 2 ], | ||
[ 0, 3, 1 ] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "default", | ||
"uri": "/pools/default/buckets/default", | ||
"streamingUri": "/pools/default/bucketsStreaming/default", | ||
"flushCacheUri": "/pools/default/buckets/default/controller/doFlush", | ||
"nodes": [ | ||
{ | ||
"clusterMembership": "inactiveAdded", | ||
"status": "unhealthy", | ||
"hostname": "127.0.0.1", | ||
"version": "unknown", | ||
"os": "unknown", | ||
"ports": { | ||
"proxy": 11213, | ||
"direct": 11212 | ||
}, | ||
"uptime": "0", | ||
"memoryTotal": 0, | ||
"memoryFree": 0, | ||
"mcdMemoryReserved": 64, | ||
"mcdMemoryAllocated": 0 | ||
} | ||
], | ||
"stats": { | ||
"uri": "/pools/default/buckets/default/stats" | ||
}, | ||
"vBucketServerMap": { | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
}, | ||
"basicStats": { | ||
"cacheSize": 64, | ||
"opsPerSec": 0.0, | ||
"evictionsPerSec": 0.0, | ||
"cachePercentUsed": 0.0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"name": "theUser", | ||
"saslPassword": "thePassword", | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"hashAlgorithm": "CRC", | ||
"numReplicas": 2, | ||
"serverList": [ | ||
"server1:11211", | ||
"server2:11210", | ||
"server3:11211" | ||
], | ||
"name": "theUserIsDifferent", | ||
"saslPassword": "thePasswordIsDifferent", | ||
"vBucketMap": [ | ||
[ 0, 1, 2 ], | ||
[ 1, 2, 0 ], | ||
[ 2, 1, -1 ], | ||
[ 1, 2, 0 ] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef TESTS_MACROS_H | ||
#define TESTS_MACROS_H | ||
|
||
#define assert(expr) \ | ||
do { \ | ||
if (!(expr)) { \ | ||
fprintf(stderr, "%s:%d: assertion failed\n", \ | ||
__FILE__, __LINE__); \ | ||
fflush(stderr); \ | ||
abort(); \ | ||
} \ | ||
} while (0) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.