Search code examples
databasetime-seriescnosdb

Both nodes on my side are cold nodes, but the return information:Valid node is not enough, need: 1, but found: 1


Both nodes on my side are cold nodes, but the return information : Valid node is not enough, need: 1, but found: 1

db002 ❯ create database db003 with  cooling_duration '1m' vnode_duration '1m';
422 Unprocessable Entity, details: {"error_code":"030053","error_message":"Valid node is not enough, need: 1, but found: 1"}
db002 ❯ show datanodes;
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
| NODE_ID | HOST      | ATTRIBUTE | STATUS  | DISK_FREE | DISK_TOTAL | LOCATION   | LAST_UPDATED_TIME   |
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
| 1001    | localhost | COLD      | HEALTHY | 65.16 GB  | 243.11 GB  | /dc1/rack1 | 2023-12-19 09:57:16 |
| 2001    | localhost | COLD      | HEALTHY | 65.16 GB  | 243.11 GB  | /dc1/rack2 | 2023-12-19 09:57:17 |
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
Query took 0.002 seconds.

version:2.4.0, revision 842fc0e

I think there is something wrong with this information? It should be that the node was not found


Solution

  • This is a bug, and an issue was raised on github later.According to the issue record, the problem with this song has been fixed, but the returned information is incorrect.