Skip to content

Fix PipeLogger handling of percent signs in messages#17900

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix-pipe-logger-percent-format
Open

Fix PipeLogger handling of percent signs in messages#17900
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix-pipe-logger-percent-format

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary: Format PipeLogger messages before handing them to the periodical logger, then pass the formatted text as a fixed %s payload so percent signs in dynamic messages or throwable stack traces are not interpreted by String.format. Added regression tests for plain messages and throwable stack traces containing percent signs. Tests: mvn -pl iotdb-core/node-commons spotless:apply passed; mvn -pl iotdb-core/node-commons -Dtest=PipeLoggerTest test currently fails during testCompile in existing CommitProgressKeeperTest because RegionProgress, WriterId, and WriterProgress are missing from org.apache.iotdb.rpc.subscription.payload.poll.

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.

1 participant