wkochman commented on code in PR #11528:
URL: https://github.com/apache/nifi/pull/11528#discussion_r3761305003
##########
nifi-connector-mock-bundle/nifi-connector-mock-api/src/main/java/org/apache/nifi/mock/connector/server/ConnectorTestRunner.java:
##########
@@ -144,6 +144,19 @@ public interface ConnectorTestRunner extends Closeable {
*/
void stopConnector();
+ /**
+ * Stops the Connector, waiting up to the given timeout for it to reach a
stopped state. Implementations
+ * should actively poll the Connector's state until it is stopped or the
timeout elapses, which is more
+ * tolerant of a flow that takes a while to quiesce (for example a failed
table still draining) than the
+ * default stop budget.
+ *
+ * @param timeout the maximum duration to wait for the Connector to stop
+ * @throws RuntimeException if the timeout elapses before the Connector
stops
Review Comment:
make sense, I have changed it on the new method
--
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]