Search before asking
Motivation
Sometimes,we may want to modify the consumerId in a Flink task.However, if we do not delete other consumers that are not actually used at this time, the expired data will not be effectively cleaned up.So I want to support Support clearing all consumers execept specified consumer in the consumer directory.
Solution
I will introduce the ClearConsumersProcedure to support clearing unspecified consumers, clearing specified consumers, and clearing all consumers in a table.
Clear consumers procedure. Usage:
- clear all consumers except the specified consumer in the table
CALL sys.clear_consumers('tableId', 'consumerIds', true)
- clear all specified consumers in the table
CALL sys.clear_consumers('tableId', 'consumerIds') or CALL sys.clear_consumers('tableId', 'consumerIds', false)
- clear all consumers in the table
CALL sys.clear_consumers('tableId')
Anything else?
No response
Are you willing to submit a PR?