Skip to content

MINOR: Added missed curly brackets to the log.error#7555

Merged
rhauch merged 1 commit into
apache:trunkfrom
NarekDW:connect-workertask-exception-handling
Jan 21, 2020
Merged

MINOR: Added missed curly brackets to the log.error#7555
rhauch merged 1 commit into
apache:trunkfrom
NarekDW:connect-workertask-exception-handling

Conversation

@NarekDW

@NarekDW NarekDW commented Oct 18, 2019

Copy link
Copy Markdown
Contributor

When some particular connector throws exception, WorkerSinkTask doesn't show that message in log.
For example, when Snowflake connector for Kafka Connect throws some Exception related with Insufficient privileges, Kafka Connect prints such message in log:

ERROR WorkerSinkTask{id=SnowflakeConnector-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. (org.apache.kafka.connect.runtime.WorkerSinkTask:558)

Which is not informative and it doesn't show the root message of the Exception.
So, I've added missed curly brackets to the log.error(...) in WorkerSinkTask.

@NarekDW

NarekDW commented Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

@ewencp @rhauch could you take a look please?

@NarekDW NarekDW force-pushed the connect-workertask-exception-handling branch from 442e8a3 to 6f06e66 Compare October 22, 2019 20:22
@rhauch

rhauch commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

Build failures were unrelated.

@NarekDW

NarekDW commented Oct 25, 2019

Copy link
Copy Markdown
Contributor Author

@rhauch when this could be merged or do I need to do any additional changes?

@rhauch rhauch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @NarekDW!

@rhauch rhauch merged commit d755ca1 into apache:trunk Jan 21, 2020
ijuma added a commit to confluentinc/kafka that referenced this pull request Jan 23, 2020
* apache-github/trunk:
  KAFKA-9418; Add new sendOffsetsToTransaction API to KafkaProducer (apache#7952)
  KAFKA-7273 Clarification on mutability of headers passed to Converter#fromConnectData() (apache#7489)
  MINOR: Only update a request's local complete time in API handler if unset (apache#7813)
  KAFKA-9143: Log task reconfiguration error only when it happened (apache#7648)
  MINOR: Change the log level from ERROR to DEBUG when failing to get plugin loader for connector (apache#7964)
  KAFKA-9024: Better error message when field specified does not exist (apache#7819)
  KAFKA-7204: Avoid clearing records for paused partitions on poll of MockConsumer (apache#7505)
  KAFKA-9083: Various fixes/improvements for Connect's Values class (apache#7593)
  MINOR: log error message from Connect sink exception (apache#7555)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants