Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC source does not respect query.retry.attempts = 0 #1340

Open
Schm1tz1 opened this issue May 31, 2023 · 1 comment
Open

JDBC source does not respect query.retry.attempts = 0 #1340

Schm1tz1 opened this issue May 31, 2023 · 1 comment

Comments

@Schm1tz1
Copy link
Member

Schm1tz1 commented May 31, 2023

We'd like to have a JDBC source fail upon the first SQL exception by setting query.retry.attempts=0 as we are running non-incremental mode that delivers the output of a stored procedure to the connector. Configuring for 0 retries, it does not seem to respect this setting and we are getting messages like:
ERROR [sqlserver-source|task-0] SQL exception while running query for table: BulkTableQuerier{table='null', query='Exec dbo.listCustomers', topicPrefix='sqlserver-customers2'}, java.sql.SQLException: The record does not exist.. Attempting retry 3 of 0 attempts. (io.confluent.connect.jdbc.source.JdbcSourceTask:455).

Suggestion: Add this feature either by setting maxRetriesPerQuerier >= 0 in JdbcSourceTask or by adding an additional fail fast / no retries property to the configuration.

@Schm1tz1
Copy link
Member Author

Schm1tz1 commented May 31, 2023

Created a fork an branch for this issue: https://github.com/Schm1tz1/kafka-connect-jdbc/tree/issue-1340 and a PR #1341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant