Skip to content

[bug](regression) fix regression test test-table-version in cloud_p0 - #33462

Merged
xy720 merged 4 commits into
apache:masterfrom
xy720:fix-test-table-vesion
Apr 11, 2024
Merged

[bug](regression) fix regression test test-table-version in cloud_p0#33462
xy720 merged 4 commits into
apache:masterfrom
xy720:fix-test-table-vesion

Conversation

@xy720

@xy720xy720 commented Apr 10, 2024

Copy link
Copy Markdown
Member

Proposed changes

Issue Number: close #xxx

Fix regression test test-table-version.

introduce by:#32989

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot

Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@xy720

Copy link
Copy Markdown
MemberAuthor

run buildall

1 similar comment
@xy720

Copy link
Copy Markdown
MemberAuthor

run buildall

@xy720xy720 changed the title [bug](regression) fix regression test test-table-version[bug](regression) fix regression test test-table-version in cloud_p0Apr 10, 2024
@xy720

Copy link
Copy Markdown
MemberAuthor

run buildall

1 similar comment
@xy720

Copy link
Copy Markdown
MemberAuthor

run buildall

@xy720
xy720force-pushed the fix-test-table-vesion branch from 1e5f766 to b39c183CompareApril 10, 2024 10:31
@xy720

Copy link
Copy Markdown
MemberAuthor

run buildall

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot added approved Indicates a PR has been approved by one committer. reviewed labels Apr 10, 2024
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

long versionTime = System.currentTimeMillis();
olapTable.updateVisibleVersionAndTime(version, versionTime);

long version = olapTable.getVisibleVersion();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this thread-safe?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Users must obtain write lock of OlapTable before calling the dropPartition method.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I found that the commit transaction holds a commit lock for the table. May be I need to hold a commit lock here?

@xy720
xy720 merged commit b4c56bc into apache:masterApr 11, 2024
dataroaring pushed a commit that referenced this pull request Apr 13, 2024
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Apr 24, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/3.0.0-mergedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@xy720@doris-robot@gavinchou@dataroaring