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

[SMALLFIX] Fix logging message template in AlluxioMasterProcess #14683

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

xwzbupt
Copy link
Contributor

@xwzbupt xwzbupt commented Dec 15, 2021

What changes are proposed in this pull request?

Modify the placeholder from "%s" to "{}" in the LOG statement.

Why are the changes needed?

Please clarify why the changes are needed. For instance,

  1. The performance of {} is better than %s,considering %s will cause memory overhead and generate temporary objects.

Does this PR introduce any user facing changes?

No.

Fixes Alluxio/Community#617

@alluxio-bot
Copy link
Contributor

Hi @xwzbupt, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@alluxio-bot
Copy link
Contributor

You did it @xwzbupt!

Thank you for signing the Contribution License Agreement.

@dbw9580 dbw9580 changed the title Modify the placeholder from "%s" to "{}" in the LOG statement [SMALLFIX] Fix logging message template in AlluxioMasterProcess Dec 16, 2021
Copy link
Contributor

@dbw9580 dbw9580 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
@jiacheliu3 please merge this once the unit tests pass.

@jiacheliu3
Copy link
Contributor

known flakey test:

Error: 1.664 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project alluxio-table-base: Compilation failure: Compilation failure: 
Error: 1.665 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[14,26] package alluxio.grpc.table does not exist
Error: 1.665 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[15,26] package alluxio.grpc.table does not exist
Error: 1.665 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[16,26] package alluxio.grpc.table does not exist
Error: 1.665 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[17,38] package alluxio.grpc.table.layout.hive does not exist
Error: 1.665 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[19,27] package com.google.protobuf does not exist
Error: 1.666 [ERROR] /usr/src/alluxio/table/base/src/main/java/alluxio/table/ProtoUtils.java:[32,39] cannot find symbol
Error: 1.666 [ERROR]   symbol:   class Partition
Error: 1.666 [ERROR]   location: class alluxio.table.ProtoUtils

@jiacheliu3
Copy link
Contributor

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 833b101 into Alluxio:master Dec 16, 2021
@xwzbupt xwzbupt deleted the awesome_feature branch December 27, 2021 07:31
@xwzbupt xwzbupt restored the awesome_feature branch December 27, 2021 07:32
yyongycy pushed a commit to yyongycy/alluxio that referenced this pull request Jan 6, 2022
### What changes are proposed in this pull request?

Modify the placeholder from "%s" to "{}" in the LOG statement.

### Why are the changes needed?

Please clarify why the changes are needed. For instance,
1. The performance of `{}` is better than `%s`,considering `%s` will
cause memory overhead and generate temporary objects.

### Does this PR introduce any user facing changes?

No.

Fixes Alluxio/Community#617

pr-link: Alluxio#14683
change-id: cid-7ef21fd8246ae2c0b952aabb82f043050356fb6c
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.

Fix logging message template in AlluxioMasterProcess
5 participants