zhuangchong commented on code in PR #1586: URL: https://github.com/apache/incubator-paimon/pull/1586#discussion_r1271839885
########## docs/content/maintenance/manage-consumers.md: ########## @@ -0,0 +1,73 @@ +--- +title: "Manage Consumers" +weight: 9 +type: docs +aliases: +- /maintenance/manage-consumers.html +--- +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +# Manage Consumers + +## Record Consumer + +You can add or reset a consumer with a given consumer ID and next snapshot ID. + +{{< hint info >}} +First, you need to stop the streaming task using this consumer ID, and then execute the record consumer action job. +{{< /hint >}} + +{{< tabs "record-consumer" >}} Review Comment: Has been modified to `reset-consumer`. ########## paimon-core/src/main/java/org/apache/paimon/table/Table.java: ########## @@ -79,6 +79,9 @@ public interface Table extends Serializable { @Experimental void rollbackTo(String tagName); + /** Record the consumer of the table through consumer id and next snapshot id. */ + void recordConsumer(String consumerId, long nextSnapshotId); Review Comment: done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
