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

GH-36482: [C++][CI] Fix sporadic test failures in AsofJoinBasicTest #36580

Closed

Conversation

rtpsw
Copy link
Contributor

@rtpsw rtpsw commented Jul 9, 2023

What changes are included in this PR?

The key hasher is invalidated before the first invocation of GetKey (via GetLatestKey) after a new batch arrives. In the pre-PR code, this invalidation happens within Advance, which is called from AdvanceAndMemoize only after GetLatestKey is called. The change adds numbering to record batches pushed to the processing thread to enable detecting the pushed record batch in order to then invalidate the key hasher.

Are these changes tested?

Yes, by existing tests.

Are there any user-facing changes?

No.

This PR contains a "Critical Fix".

@kou
Copy link
Member

kou commented Jul 9, 2023

@github-actions crossbow submit verify-rc-source-macos

@github-actions
Copy link

github-actions bot commented Jul 9, 2023

Revision: 58a648b

Submitted crossbow builds: ursacomputing/crossbow @ actions-cdacd2d9b4

Task Status
verify-rc-source-cpp-macos-amd64 Github Actions
verify-rc-source-cpp-macos-arm64 Github Actions
verify-rc-source-cpp-macos-conda-amd64 Github Actions
verify-rc-source-csharp-macos-amd64 Github Actions
verify-rc-source-csharp-macos-arm64 Github Actions
verify-rc-source-go-macos-amd64 Github Actions
verify-rc-source-go-macos-arm64 Github Actions
verify-rc-source-integration-macos-amd64 Github Actions
verify-rc-source-integration-macos-arm64 Github Actions
verify-rc-source-integration-macos-conda-amd64 Github Actions
verify-rc-source-java-macos-amd64 Github Actions
verify-rc-source-js-macos-amd64 Github Actions
verify-rc-source-js-macos-arm64 Github Actions
verify-rc-source-python-macos-amd64 Github Actions
verify-rc-source-python-macos-arm64 Github Actions
verify-rc-source-python-macos-conda-amd64 Github Actions
verify-rc-source-ruby-macos-amd64 Github Actions
verify-rc-source-ruby-macos-arm64 Github Actions

memo_.UpdateTime(GetTime(queue_.UnsyncFront().get(), 0)); // time changed
DCHECK_GT(queue_.UnsyncFront().batch->num_rows(),
0); // empty batches disallowed
memo_.UpdateTime(GetTime(queue_.UnsyncFront().batch.get(), 0)); // time changed
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure that queue_.UnsyncFront() here is the same as just above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because only the processing thread, which runs this code, is popping from the (front of the) queue.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jul 10, 2023
@rtpsw
Copy link
Contributor Author

rtpsw commented Jul 10, 2023

In a discussion with @icexelloss, we decided to close this PR.

@rtpsw rtpsw closed this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++][CI] Sporadic test failures in AsofJoinBasicTest
3 participants