Skip to content

Conversation

@ruanwenjun
Copy link
Member

Purpose of the pull request

When there exist multiple tasks using the same tenant are going to the same worker concurrently, if the tenant doesn't exist, and autoCreateTenantEnabled is true, then each task will try to create task, but only the first task will success, others will failed, due to the tenant is already exist.

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

@ruanwenjun ruanwenjun self-assigned this Apr 25, 2024
@ruanwenjun ruanwenjun added the bug Something isn't working label Apr 25, 2024
@ruanwenjun ruanwenjun added this to the 3.2.2 milestone Apr 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 39.65%. Comparing base (b3b8c07) to head (967557c).

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

Files Patch % Lines
.../apache/dolphinscheduler/common/utils/OSUtils.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15909      +/-   ##
============================================
- Coverage     39.72%   39.65%   -0.07%     
+ Complexity     5034     5016      -18     
============================================
  Files          1349     1349              
  Lines         45615    45613       -2     
  Branches       4892     4890       -2     
============================================
- Hits          18122    18090      -32     
- Misses        25578    25607      +29     
- Partials       1915     1916       +1     

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

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

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

@ruanwenjun ruanwenjun merged commit 446f6ba into apache:dev Apr 25, 2024
@ruanwenjun ruanwenjun deleted the dev_wenjun_fixTenant branch April 25, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants