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 undo log parser type jackson not found #690

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marsevilspirit
Copy link

What this PR does:

The undo log parser type can be configured through the configuration file.
Currently only supports json.

Which issue(s) this PR fixes:

Fixes #664

fix undo log parser type jackson not found

Special notes for your reviewer:

The reason for the error in seata-go-samples is that an old version with an unpatched undo log parser type is being used. Once the new version of seata-go is released and the dependencies are updated in the samples library, the "undo log parser type jackson not found" error will no longer appear. The main reason for this issue is that Jackson is a JSON implementation for Java, not for Go, and changing it to json in the configuration file will resolve the problem.

Does this PR introduce a user-facing change?:
none

@@ -158,7 +158,7 @@ func TestLoadJson(t *testing.T) {

assert.NotNil(t, cfg.ClientConfig.UndoConfig)
assert.Equal(t, false, cfg.ClientConfig.UndoConfig.DataValidation)
assert.Equal(t, "jackson222", cfg.ClientConfig.UndoConfig.LogSerialization)
assert.Equal(t, "json", cfg.ClientConfig.UndoConfig.LogSerialization)
Copy link
Contributor

Choose a reason for hiding this comment

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

这里不用改,就是为了测试能否正确读取到配置文件

Copy link
Author

Choose a reason for hiding this comment

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

好的,我改一下

Copy link

sonarcloud bot commented Nov 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix AT mode "undo log parser type jackson not found" error
2 participants