Skip to content

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Jan 18, 2024

Purpose of the pull request

Avoid send RPC to worker, cause worker NPE

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

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

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (dcf69ca) 38.02% compared to head (b50d662) 38.02%.
Report is 1 commits behind head on dev.

❗ Current head b50d662 differs from pull request most recent head b33fd86. Consider uploading reports for the commit b33fd86 to get more accurate results

Files Patch % Lines
...nscheduler/api/service/impl/LoggerServiceImpl.java 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15511      +/-   ##
============================================
- Coverage     38.02%   38.02%   -0.01%     
  Complexity     4692     4692              
============================================
  Files          1304     1304              
  Lines         44812    44778      -34     
  Branches       4803     4781      -22     
============================================
- Hits          17038    17025      -13     
+ Misses        25923    25902      -21     
  Partials       1851     1851              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fuchanghai fuchanghai added improvement make more easy to user or prompt friendly 3.2.1 labels Jan 18, 2024
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_throwExceptionWhenTaskPathIsNull branch 2 times, most recently from 224c5e8 to a88d150 Compare January 19, 2024 08:43
UNAUTHORIZED_USER_ERROR(10101, "unauthorized user error", "查询未授权用户错误"),
AUTHORIZED_USER_ERROR(10102, "authorized user error", "查询授权用户错误"),
QUERY_TASK_INSTANCE_LOG_ERROR(10103, "view task instance log error", "查询任务实例日志错误"),
QUERY_TASK_INSTANCE_LOG_ERROR(10103, "view task instance log error: {0}", "查询任务实例日志错误"),
Copy link
Member

Choose a reason for hiding this comment

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

hi @ruanwenjun Should we make a slight modification and replace it with 查询任务实例日志错误: {0}

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_throwExceptionWhenTaskPathIsNull branch from a88d150 to 4a12dea Compare January 19, 2024 11:04
fuchanghai
fuchanghai previously approved these changes Jan 19, 2024
Copy link
Member

@fuchanghai fuchanghai left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_throwExceptionWhenTaskPathIsNull branch from 4a12dea to b33fd86 Compare January 19, 2024 11:45
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_throwExceptionWhenTaskPathIsNull branch from b33fd86 to 5fa31e0 Compare January 19, 2024 15:56
@ruanwenjun ruanwenjun requested a review from fuchanghai January 19, 2024 15:58
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_throwExceptionWhenTaskPathIsNull branch from 5fa31e0 to 35001b5 Compare January 19, 2024 16:00
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@ruanwenjun ruanwenjun changed the title Directly Throw exception when taskInstancy log path is empty which log need to be queried [Improvement] Directly Throw exception when taskInstancy log path is empty which log need to be queried Jan 20, 2024
Copy link
Member

@fuchanghai fuchanghai left a comment

Choose a reason for hiding this comment

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

LGTM

@fuchanghai fuchanghai merged commit 308e4fb into apache:dev Jan 20, 2024
@ruanwenjun ruanwenjun deleted the dev_wenjun_throwExceptionWhenTaskPathIsNull branch January 20, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.2.1 backend improvement make more easy to user or prompt friendly ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants