mirror of https://gitee.com/bigwinds/arangodb
Order of transactions depends on implementation. Do only one shard. (#6722)
This commit is contained in:
parent
877c9d9eb3
commit
078dcd7fe4
|
@ -123,23 +123,9 @@ SECTION("clean up a lost collection when the leader is failed") {
|
|||
// not empty: /arango/Current/Collections/database/collection/s99
|
||||
// empty: /arango/Plan/Collections/database/collection/shards/s99
|
||||
// old: /arango/Supervision/Health/leader/Status == "FAILED"
|
||||
// 2. Transaction:
|
||||
// - Operation:
|
||||
// delete /arango/Current/Collections/database/collection/s16
|
||||
// push {
|
||||
// "creator": "supervision",
|
||||
// "jobId": "1",
|
||||
// "server": "s99",
|
||||
// "timeCreated": "2018-09-26T09:25:33Z",
|
||||
// "type": "cleanUpLostCollection"
|
||||
// }
|
||||
// - Preconditions:
|
||||
// not empty: /arango/Current/Collections/database/collection/s16
|
||||
// empty: /arango/Plan/Collections/database/collection/shards/s16
|
||||
// old: /arango/Supervision/Health/failed/Status == "FAILED"
|
||||
|
||||
auto const& trxs = q->slice();
|
||||
REQUIRE(trxs.length() == 2);
|
||||
REQUIRE(trxs.length() == 1);
|
||||
|
||||
auto const& trx1 = trxs[0];
|
||||
REQUIRE(trx1.length() == 2); // Operation and Precondition
|
||||
|
|
|
@ -9,11 +9,6 @@ R"=(
|
|||
"servers": [
|
||||
"leader"
|
||||
]
|
||||
},
|
||||
"s16": {
|
||||
"servers": [
|
||||
"failed"
|
||||
]
|
||||
}
|
||||
},
|
||||
"other": {
|
||||
|
@ -40,9 +35,6 @@ R"=(
|
|||
"leader": {
|
||||
"Status": "FAILED"
|
||||
},
|
||||
"failed": {
|
||||
"Status": "FAILED"
|
||||
},
|
||||
"otherleader": {
|
||||
"Status": "GOOD"
|
||||
}
|
||||
|
@ -58,9 +50,6 @@ R"=(
|
|||
"leader": {
|
||||
"ShortName": "leader"
|
||||
},
|
||||
"failed": {
|
||||
"ShortName": "failed"
|
||||
},
|
||||
"otherleader": {
|
||||
"ShortName": "otherleader"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue