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

Fix yaml format log config #681

Merged
merged 6 commits into from
Aug 21, 2023

Conversation

jiangpengcheng
Copy link
Member

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #680

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@jiangpengcheng jiangpengcheng requested review from nlu90, freeznet and a team as code owners August 18, 2023 01:12
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Aug 18, 2023
@@ -1072,7 +1072,7 @@ func getProcessJavaRuntimeArgs(name, packageName, clusterName, logLevel, details
state *v1alpha1.Stateful,
tlsConfig TLSConfig, authConfig *v1alpha1.AuthConfig,
maxPendingAsyncRequests *int32, logConfigFileName string) []string {
classPath := "/pulsar/instances/java-instance.jar"
classPath := "/pulsar/instances/java-instance.jar:/pulsar/lib/*"
Copy link
Member Author

@jiangpengcheng jiangpengcheng Aug 18, 2023

Choose a reason for hiding this comment

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

log4j yaml extensions requires some additional lib such as com.fasterxml.jackson.core-jackson-databind-2.13.2.1.jar and com.fasterxml.jackson.dataformat-jackson-dataformat-yaml-2.13.2.jar

if there is no such libs in classpath, it cannot read yaml format config and there will be error when use yaml format config file:

file:///pulsar/conf/java-log/java_instance_log4j.yaml; lineNumber: 1; columnNumber: 1; Content
is not allowed in prolog.*

{{ else }}
TimeBasedTriggeringPolicy:
interval: 1
modulate: true
SizeBasedTriggeringPolicy:
size: "10MB"
CronTriggeringPolicy:
Copy link
Member Author

Choose a reason for hiding this comment

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

don't need CronTriggeringPolicy since we have a TimeBasedTriggeringPolicy

@nlu90 nlu90 merged commit 7358f44 into streamnative:master Aug 21, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m/2023-08 no-need-doc This pr does not need any document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] yaml format log config file doesn' twork
3 participants