Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
-
Enterprise Edition 6.5.0 build 4783
-
Triaged
-
Centos 64-bit
-
-
Unknown
-
KV-Engine Mad-Hatter GA
Description
Steps to Reproduce:
- Create a 3 node cluster.
+----------------+----------+--------------+
| Nodes | Services | Status |
+----------------+----------+--------------+
| 172.23.105.168 | kv | Cluster node |
| 172.23.106.82 | None | <--- IN --- |
| 172.23.106.83 | None | <--- IN --- |
+----------------+----------+--------------+
- Create a bucket with replicas =1, compression=off, eviction policy = valueOnly.
- Load 100 docs into the bucket with transactions and durability as MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| GleamBookUsers | membase | 1 | 0 | 121 | 59885223936 | 68191848 | 16983306 |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
- Rebalance In 1 node(172.23.106.86) with another 40 creates,20 updates in parallel with transactions and durability=MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| GleamBookUsers | membase | 1 | 0 | 169 | 79846965248 | 72661672 | 35408247 |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
- Rebalance Out 1 node(172.23.106.83) with another 40 creates,20 updates,40 deletes in parallel with transactions and durability=MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| GleamBookUsers | membase | 1 | 0 | 177 | 59885223936 | 69478976 | 41532152 |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
- Rebalance In 2 nodes(172.23.106.85, 172.23.106.83) and Rebalance Out 1 node(172.23.106.82) with another 40 creates,20 updates,40 deletes in parallel with transactions and durability=MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| GleamBookUsers | membase | 1 | 0 | 185 | 79846965248 | 73724568 | 47940963 |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
- Swap Rebalance 1 node(IN=172.23.106.82, OUT=172.23.106.83) with another 40 creates,20 updates,40 deletes in parallel with transactions and durability=MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
| GleamBookUsers | membase | 1 | 0 | 193 | 79846965248 | 74178992 | 53671743 |
+----------------+---------+----------+-----+-------+-------------+----------+-----------+
- Increment the bucket replica from 1 to 2.
- Rebalance In 1 node(172.23.106.83) with another 40 creates,20 updates,40 deletes in parallel with transactions and durability=MAJORITY. Bucket Stats after this Step:
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| GleamBookUsers | membase | 2 | 0 | 201 | 99808706560 | 105600664 | 89580007 |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
- Rebalance the Cluster. After it completes, Perform 40 creates,20 updates,40 deletes with transactions and durability=MAJORITY.
- While load mentioned in Step 10 is in progress, Stop the memcached process , Restart the process again after 20 seconds. Bucket Stats after Steps 10-11:
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| GleamBookUsers | membase | 2 | 0 | 209 | 99808706560 | 105947400 | 96040934 |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
- Perform 40 creates,20 updates,40 deletes with transactions and durability=MAJORITY.
- While Step 12 is in progress, failover a node(172.23.106.83).
- Rebalance Out the node failed over in Step 13 while Step 12 is in progress. Wait for Step 12 to finish.
- Rebalance In 1 node(172.23.106.83).
- Bucket Stats after Steps 12-15:
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| GleamBookUsers | membase | 2 | 0 | 217 | 99808706560 | 106897488 | 101330796 |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
- Perform 40 creates,20 updates,40 deletes with transactions and durability=MAJORITY.
- While Step 17 is in progress, failover a node(172.23.106.83).
- Fully Recovery the node failed over in Step 18. Bucket Stats after Step 17-19:
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| GleamBookUsers | membase | 2 | 0 | 225 | 99808706560 | 108080464 | 114445902 |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
- Perform 40 creates,20 updates,40 deletes with transactions and durability=MAJORITY.
- While Step 20 is in progress, failover a node(172.23.106.83).
- Delta Recovery the node failed over in Step 21. Bucket Stats after Step 20-22:
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| Bucket | Type | Replicas | TTL | Items | RAM Quota | RAM Used | Disk Used |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
| GleamBookUsers | membase | 2 | 0 | 229 | 99808706560 | 105156400 | 133176197 |
+----------------+---------+----------+-----+-------+-------------+-----------+-----------+
- Decrement the bucket replica from 2 to 1.
- Rebalance the cluster.
Rebalance hangs up at 87%.