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

Add logging when creating a new RecordWriter #60

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

ewencp
Copy link
Contributor

@ewencp ewencp commented Jun 27, 2017

No description provided.

@ewencp
Copy link
Contributor Author

ewencp commented Jun 27, 2017

Simple logging enhancement that will make it easier to track down the source of things like memory use issues from the logs.

Copy link
Member

@kkonstantine kkonstantine left a comment

Choose a reason for hiding this comment

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

One optional nit.

@@ -349,6 +349,11 @@ private RecordWriter getWriter(SinkRecord record, String encodedPartition) throw
return writers.get(encodedPartition);
}
String commitFilename = getCommitFilename(encodedPartition);
log.debug(
"Creating new writer encodedPartition={} filename={}",
Copy link
Member

Choose a reason for hiding this comment

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

In similar log lines I've found that is useful to enclose the values in single quotes '. Makes reading of such lines easier when the value is empty. Low priority.

@ewencp ewencp force-pushed the log-record-writer-creation branch from 8986332 to b214dfe Compare June 27, 2017 20:06
@ewencp ewencp merged commit 124d34c into confluentinc:3.4.x Jun 27, 2017
@ewencp ewencp deleted the log-record-writer-creation branch June 27, 2017 20:08
kkonstantine pushed a commit that referenced this pull request Jul 20, 2020
CC-7164: Add config to supply raw JSON credentials
kkonstantine pushed a commit that referenced this pull request Jul 20, 2020
Backporting changes from #59 and #60 to 5.4.x
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

Successfully merging this pull request may close these issues.

2 participants