Skip to content

Conversation

@xy720
Copy link
Member

@xy720 xy720 commented Apr 10, 2024

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

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
Member Author

xy720 commented Apr 10, 2024

run buildall

1 similar comment
@xy720
Copy link
Member Author

xy720 commented Apr 10, 2024

run buildall

@xy720 xy720 changed the title [bug](regression) fix regression test test-table-version [bug](regression) fix regression test test-table-version in cloud_p0 Apr 10, 2024
@xy720
Copy link
Member Author

xy720 commented Apr 10, 2024

run buildall

1 similar comment
@xy720
Copy link
Member Author

xy720 commented Apr 10, 2024

run buildall

@xy720 xy720 force-pushed the fix-test-table-vesion branch from 1e5f766 to b39c183 Compare April 10, 2024 10:31
@xy720
Copy link
Member Author

xy720 commented Apr 10, 2024

run buildall

Copy link
Contributor

@dataroaring dataroaring left a comment

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
Contributor

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

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Apr 10, 2024
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

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

long version = olapTable.getVisibleVersion();
Copy link
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
Member Author

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
Member Author

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:master Apr 11, 2024
dataroaring pushed a commit that referenced this pull request Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants