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

[feat-#1204][e2e] Add Oracle Logminer E2E Test. #1205

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

chaozwn
Copy link
Member

@chaozwn chaozwn commented Aug 31, 2022

Purpose of this pull request

Which issue you fix

Fixes # (issue).

Checklist:

  • I have executed the 'mvn spotless:apply' command to format my code.
  • I have a meaningful commit message (including the issue id, the template of commit message is '[label-type-#issue-id][fixed-module] a meaningful commit message.')
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have checked my code and corrected any misspellings.
  • My commit is only one. (If there are multiple commits, you can use 'git squash' to compress multiple commits into one.)

@chaozwn chaozwn requested a review from FlechazoW August 31, 2022 03:22
@FlechazoW FlechazoW linked an issue Aug 31, 2022 that may be closed by this pull request
3 tasks
@FlechazoW FlechazoW added the test label Aug 31, 2022
@chaozwn chaozwn self-assigned this Aug 31, 2022
return this;
}

public LaunchCommandBuilder withAddJar(List<String> path) {
commands.add("-addjar");
commands.add(GsonUtil.GSON.toJson(path));
commands.add(new GsonBuilder().create().toJson(path));
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

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));
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

ablove.

@FlechazoW FlechazoW merged commit 49f612a into DTStack:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
roadmap
Awaiting triage
Development

Successfully merging this pull request may close these issues.

[Feature][E2e] Add Oracle Logminer E2E Test.
2 participants