【已解决】Doris2.0.2,DECOMMISSION下线BE后,tabletNum并没有减少

Viewed 48

使用DECOMMISSION命令下线BE后,其他BE节点的DataUsedCapacity增大,下线节点的DataUsedCapacity降低,TrashUsedCapacity增大,但是三个BE节点的TabletNum没有变化。

ALTER SYSTEM DECOMMISSION BACKEND "xxx.xxx.xxx.xxx:xxxx";
+-----------+---------------+---------------+--------+----------+----------+--------------------+---------------------+---------------------+-------+----------------------+-----------+------------------+--------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+-------------------------+----------+
| BackendId | Host          | HeartbeatPort | BePort | HttpPort | BrpcPort | ArrowFlightSqlPort | LastStartTime       | LastHeartbeat       | Alive | SystemDecommissioned | TabletNum | DataUsedCapacity | TrashUsedCapcacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | RemoteUsedCapacity | Tag                      | ErrMsg | Version                     | Status                                                                                                                        | HeartbeatFailureCounter | NodeRole |
+-----------+---------------+---------------+--------+----------+----------+--------------------+---------------------+---------------------+-------+----------------------+-----------+------------------+--------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+-------------------------+----------+
| 450232    | 172.16.128.95 | 9051          | 9060   | 8041     | 8060     | -1                 | 2024-04-09 12:00:22 | 2024-04-09 15:46:08 | true  | false                | 26186     | 157.870 GB       | 5.486 GB           | 8.141 TB      | 10.744 TB     | 24.23 % | 24.49 %        | 0.000              | {"location" : "default"} |        | doris-2.1.1-rc05-9f2520537f | {"lastSuccessReportTabletsTime":"2024-04-09 15:45:28","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | 0                       | mix      |
| 326603    | 172.16.128.96 | 9051          | 9060   | 8041     | 8060     | -1                 | 2024-04-09 11:43:59 | 2024-04-09 15:46:08 | true  | true                 | 24164     | 79.946 MB        | 70.438 GB          | 7.364 TB      | 10.744 TB     | 31.46 % | 38.58 %        | 0.000              | {"location" : "default"} |        | doris-2.1.1-rc05-9f2520537f | {"lastSuccessReportTabletsTime":"2024-04-09 15:45:49","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | 0                       | mix      |
| 4178979   | 172.16.128.97 | 9051          | 9060   | 8041     | 8060     | -1                 | 2024-04-09 14:03:40 | 2024-04-09 15:46:08 | true  | false                | 21859     | 66.786 GB        | 3.659 MB           | 7.458 TB      | 10.744 TB     | 30.58 % | 47.79 %        | 0.000              | {"location" : "default"} |        | doris-2.1.1-rc05-9f2520537f | {"lastSuccessReportTabletsTime":"2024-04-09 15:45:25","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | 0                       | mix      |
+-----------+---------------+---------------+--------+----------+----------+--------------------+---------------------+---------------------+-------+----------------------+-----------+------------------+--------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+-------------------------+----------+
1 Answers

首先确定下表是否是3副本的表,如果是3副本的表,只有3台BE节点的话,是没办法进行下线的,需要先将表的副本数修改为小于节点数量后才能完成 decommission 的操作。