Skip to content

[Feature] Support clearing all consumers execept specified consumer in the consumer directory #4599

@chenxinwei

Description

@chenxinwei

Search before asking

  • I searched in the issues and found nothing similar.

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:

  1. clear all consumers except the specified consumer in the table
    CALL sys.clear_consumers('tableId', 'consumerIds', true)
  2. clear all specified consumers in the table
    CALL sys.clear_consumers('tableId', 'consumerIds') or CALL sys.clear_consumers('tableId', 'consumerIds', false)
  3. clear all consumers in the table
    CALL sys.clear_consumers('tableId')

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions