Lower Kafka log level in product tests#14149
Conversation
There was a problem hiding this comment.
Slightly better approach is to use:
private final DockerFiles.ResourceProvider configDir;
and get referrence to all config files only once (typically in the constuctor) via:
configDir = dockerFiles.getDockerFilesHostDirectory("common/kafka");
There was a problem hiding this comment.
nit: extract copying of the file to a method?
There was a problem hiding this comment.
Another approach is:
builder.configureContainers(dockerContainer -> {
if (isPrestoContainer(dockerContainer.getLogicalName())) {
dockerContainer
.withCopyFileToContainer(
forHostPath(configDir.getPath("log.properties")),
CONTAINER_PRESTO_ETC + "/log.properties");
}
});
kokosing
left a comment
There was a problem hiding this comment.
Have you checked Trino server logs? What is the diff between before and after?
There was a problem hiding this comment.
Another approach is:
builder.configureContainers(dockerContainer -> {
if (isPrestoContainer(dockerContainer.getLogicalName())) {
dockerContainer
.withCopyFileToContainer(
forHostPath(configDir.getPath("log.properties")),
CONTAINER_PRESTO_ETC + "/log.properties");
}
});
6530fd1 to
ae6a460
Compare
Yeah tried querying a Kafka table. I think
And the verbose logging before: |
hashhar
left a comment
There was a problem hiding this comment.
In addition to consumer config we'd also log from admin client + producer depending on what operation is being done.
We can target others if they turn out to be an issue but this tackles the bulk of the logs.
|
|
||
| MountableFile logConfigFile = forHostPath(configDir.getPath("log.properties")); | ||
| builder.configureContainers(container -> { | ||
| if (isPrestoContainer(container.getLogicalName())) { |
There was a problem hiding this comment.
would like to rename isPrestoContainer to isTrinoContainer as separate PR?
|
Thanks! |
Description
Lower Kafka log level in product tests
Non-technical explanation
Make Kafka product tests less noisy
Release notes
(x) This is not user-visible and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: