Skip to content

[AMORO-3145] Filter out info log for CodecPool in optimizer #3185

Merged
czy006 merged 1 commit intoapache:masterfrom
klion26:3145-ban-codecpool-log
Sep 10, 2024
Merged

[AMORO-3145] Filter out info log for CodecPool in optimizer #3185
czy006 merged 1 commit intoapache:masterfrom
klion26:3145-ban-codecpool-log

Conversation

@klion26
Copy link
Member

@klion26 klion26 commented Sep 10, 2024

Why are the changes needed?

Close #3145 .

Brief change log

Currently there will be many logs for (de)compressor from CodecPool, and seems there is no other meaningful info log from this class, so we change
the log level from CodecPool from info to warn to filter out these logs

This only affect the local optimizer, and user need to change the configuration if they use flink/spark optimzier.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Before the change
image

After the change
image

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

Currently there will be many logs for (de)compressor from CodecPool, and
seems there is no other meaningful info log from this class, so we change
 the log level from CodecPool from info to warn to filter out these logs

This only affect the local optimizer, and user need to change the configuration
if they use flink/spark optimzier.
@klion26
Copy link
Member Author

klion26 commented Sep 10, 2024

cc @czy006

@czy006 czy006 self-requested a review September 10, 2024 07:17
Copy link
Contributor

@czy006 czy006 left a comment

Choose a reason for hiding this comment

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

LGTM

@czy006 czy006 merged commit b52f64d into apache:master Sep 10, 2024
@klion26 klion26 deleted the 3145-ban-codecpool-log branch September 10, 2024 11:25
@klion26
Copy link
Member Author

klion26 commented Sep 10, 2024

@czy006 thanks for the review and merging!

zhoujinsong pushed a commit that referenced this pull request Oct 11, 2024
[AMORO-3145] Filter out info log for CodecPool

Currently there will be many logs for (de)compressor from CodecPool, and
seems there is no other meaningful info log from this class, so we change
 the log level from CodecPool from info to warn to filter out these logs

This only affect the local optimizer, and user need to change the configuration
if they use flink/spark optimzier.

(cherry picked from commit b52f64d)
Signed-off-by: zhoujinsong <zhoujinsong0505@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement]: Filter out the CodecPool log in the optimizer log

2 participants