You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2023/07/24 05:41:37 UTC

[GitHub] [incubator-paimon] JingsongLi commented on a diff in pull request #1586: [action] Support Reset next snapshot id of consumer id.

JingsongLi commented on code in PR #1586:
URL: https://github.com/apache/incubator-paimon/pull/1586#discussion_r1271770379


##########
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:
   Don't introduce public API now. It is not so stable.



##########
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:
   Is there a better name?



##########
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

Review Comment:
   Just document this with consumer. in query-table.



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org