C0urante commented on code in PR #13818: URL: https://github.com/apache/kafka/pull/13818#discussion_r1237140142
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java: ########## @@ -1268,39 +1270,55 @@ public void alterConnectorOffsets(String connName, Map<String, String> connector connector = plugins.newConnector(connectorClassOrAlias); if (ConnectUtils.isSinkConnector(connector)) { log.debug("Altering consumer group offsets for sink connector: {}", connName); - alterSinkConnectorOffsets(connName, connector, connectorConfig, offsets, connectorLoader, cb); + modifySinkConnectorOffsets(connName, connector, connectorConfig, offsets, connectorLoader, cb); } else { log.debug("Altering offsets for source connector: {}", connName); - alterSourceConnectorOffsets(connName, connector, connectorConfig, offsets, connectorLoader, cb); + modifySourceConnectorOffsets(connName, connector, connectorConfig, offsets, connectorLoader, cb); + } + } + } + + /** + * Reset a connector's offsets. + * + * @param connName the name of the connector whose offsets are to be reset + * @param connectorConfig the connector's configurations + * @param cb callback to invoke upon completion + */ + public void resetConnectorOffsets(String connName, Map<String, String> connectorConfig, Callback<Message> cb) { Review Comment: LGTM 👍 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org