mirror of https://gitee.com/bigwinds/arangodb
Order of transactions depends on implementation. Do only one shard. (#6723)
This commit is contained in:
parent
a8eabf95d4
commit
c01de053ca
|
@ -123,23 +123,9 @@ SECTION("clean up a lost collection when the leader is failed") {
|
||||||
// not empty: /arango/Current/Collections/database/collection/s99
|
// not empty: /arango/Current/Collections/database/collection/s99
|
||||||
// empty: /arango/Plan/Collections/database/collection/shards/s99
|
// empty: /arango/Plan/Collections/database/collection/shards/s99
|
||||||
// old: /arango/Supervision/Health/leader/Status == "FAILED"
|
// 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();
|
auto const& trxs = q->slice();
|
||||||
REQUIRE(trxs.length() == 2);
|
REQUIRE(trxs.length() == 1);
|
||||||
|
|
||||||
auto const& trx1 = trxs[0];
|
auto const& trx1 = trxs[0];
|
||||||
REQUIRE(trx1.length() == 2); // Operation and Precondition
|
REQUIRE(trx1.length() == 2); // Operation and Precondition
|
||||||
|
|
|
@ -9,11 +9,6 @@ R"=(
|
||||||
"servers": [
|
"servers": [
|
||||||
"leader"
|
"leader"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"s16": {
|
|
||||||
"servers": [
|
|
||||||
"failed"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"other": {
|
"other": {
|
||||||
|
@ -40,9 +35,6 @@ R"=(
|
||||||
"leader": {
|
"leader": {
|
||||||
"Status": "FAILED"
|
"Status": "FAILED"
|
||||||
},
|
},
|
||||||
"failed": {
|
|
||||||
"Status": "FAILED"
|
|
||||||
},
|
|
||||||
"otherleader": {
|
"otherleader": {
|
||||||
"Status": "GOOD"
|
"Status": "GOOD"
|
||||||
}
|
}
|
||||||
|
@ -58,9 +50,6 @@ R"=(
|
||||||
"leader": {
|
"leader": {
|
||||||
"ShortName": "leader"
|
"ShortName": "leader"
|
||||||
},
|
},
|
||||||
"failed": {
|
|
||||||
"ShortName": "failed"
|
|
||||||
},
|
|
||||||
"otherleader": {
|
"otherleader": {
|
||||||
"ShortName": "otherleader"
|
"ShortName": "otherleader"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue