You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ " when idempotence writer enabled to ensure message ordering.");
251
+
String.format(
252
+
"Invalid configuration for idempotent writer. The value of %s (%d) should be less than or equal to %d when idempotence is enabled to ensure message ordering",
@@ -249,10 +272,9 @@ private short configureAcks(boolean idempotenceEnabled) {
249
272
250
273
if (idempotenceEnabled && ack != -1) {
251
274
thrownewIllegalConfigurationException(
252
-
"Must set "
253
-
+ ConfigOptions.CLIENT_WRITER_ACKS.key()
254
-
+ " to 'all' in order to use the idempotent writer. Otherwise "
255
-
+ "we cannot guarantee idempotence.");
275
+
String.format(
276
+
"Invalid acks configuration for idempotent writer. Must set %s to 'all' (current value: '%s') in order to use the idempotent writer. Otherwise we cannot guarantee idempotence",
277
+
ConfigOptions.CLIENT_WRITER_ACKS.key(), acks));
256
278
}
257
279
258
280
returnack;
@@ -262,10 +284,9 @@ private int configureRetries(boolean idempotenceEnabled) {
+ " to non-zero when using the idempotent writer. Otherwise "
268
-
+ "we cannot guarantee idempotence.");
287
+
String.format(
288
+
"Invalid retries configuration for idempotent writer. Must set %s to non-zero (current value: %d) when using the idempotent writer. Otherwise we cannot guarantee idempotence",
0 commit comments