mimaison commented on code in PR #11773:
URL: https://github.com/apache/kafka/pull/11773#discussion_r848580141


##########
connect/api/src/main/java/org/apache/kafka/connect/source/SourceConnector.java:
##########
@@ -28,4 +30,46 @@
     protected SourceConnectorContext context() {
         return (SourceConnectorContext) context;
     }
+
+    /**
+     * Signals whether the connector supports exactly-once delivery guarantees 
with a proposed configuration.
+     * Developers can assume that worker-level exactly-once support is enabled 
when this method is invoked.
+     *
+     * <p>For backwards compatibility, the default implementation will return 
{@code null}, but connector developers are
+     * strongly encouraged to override this method to return a non-null value 
such as
+     * {@link ExactlyOnceSupport#SUPPORTED SUPPORTED} or {@link 
ExactlyOnceSupport#UNSUPPORTED UNSUPPORTED}.
+     *
+     * <p>Similar to {@link #validate(Map) validate}, this method may be 
called by the runtime before the
+     * {@link #start(Map) start} method is invoked when the connector will be 
run with exactly-once support.

Review Comment:
   My questions are mostly a way to refresh my memory and recap how the 
connector API works exactly. I'm not asking to introduce new methods or change 
things significantly. Since we missed the 3.2 window, I thought it was worth 
having a quick think.
   
   I'm mostly focused on the Connector API and how consistent and easy it is to 
write/maintain connectors.



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

Reply via email to