-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[feat-#1204][e2e] Add Oracle Logminer E2E Test. #1205
Conversation
return this; | ||
} | ||
|
||
public LaunchCommandBuilder withAddJar(List<String> path) { | ||
commands.add("-addjar"); | ||
commands.add(GsonUtil.GSON.toJson(path)); | ||
commands.add(new GsonBuilder().create().toJson(path)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use new Gson rather than GsonUtil.GSON?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this time, because GsonUtil uses prettyjson by default, when using the shell to submit, we cannot appear \r\n json data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The json we use must be one line of data.
@@ -63,13 +70,13 @@ public LaunchCommandBuilder withFlinkConfDir(String flinkConfDir) { | |||
|
|||
public LaunchCommandBuilder withFlinkCustomConf(Map<String, Object> properties) { | |||
commands.add("-confProp"); | |||
commands.add(GsonUtil.GSON.toJson(properties)); | |||
commands.add(new GsonBuilder().create().toJson(properties)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use new Gson rather than GsonUtil.GSON?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ablove.
Purpose of this pull request
Which issue you fix
Fixes # (issue).
Checklist: