Updated on 2024-08-20 GMT+08:00

MARK BUCKETS

Description

Used by the scale-out tool to notify the kernel of the buckets that have been migrated.

Precautions

It can be called by administrators only during hash bucket scale-out.

Syntax

1
MARK BUCKETS (bucketlist) FINISH FROM datanode_name TO datanode_name;

Parameters

Parameters of MARK BUCKETS are as follows:

  • bucketlist

    Specifies the list of buckets that have been migrated.

    Value range: For each bucket, the value range is [0,1023].

  • datanode_name

    Specifies the name of the node involved in bucket migration.

    Value range: a string. It must comply with the naming convention.

Examples

1
gaussdb=# MARK BUCKETS (0,1,2,3) FINISH FROM datanode1 TO datanode3;