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

feat: Add query trace TaskRunner #11927

Closed
wants to merge 1 commit into from

Conversation

duanmeng
Copy link
Collaborator

@duanmeng duanmeng commented Dec 21, 2024

Add a query trace TaskRunner to execute the replay task replacing AssertQueryBuilder.
Use a flag named copy_results to control whether to copy the replay result (used in UT).

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 21, 2024
Copy link

netlify bot commented Dec 21, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit f67fa34
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/677264e667d5db0008e7b592

@duanmeng duanmeng force-pushed the task_runner branch 2 times, most recently from 6d0fbe2 to ce18de9 Compare December 29, 2024 14:53
@duanmeng duanmeng requested review from xiaoxmeng and removed request for majetideepak and assignUser December 30, 2024 03:06
@duanmeng duanmeng force-pushed the task_runner branch 2 times, most recently from d418eb8 to 56befee Compare December 30, 2024 06:01
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

Can you add PR description? Thanks!

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@duanmeng LGTM % minors. Thanks!

velox/docs/develop/debugging/tracing.rst Outdated Show resolved Hide resolved
velox/tool/trace/PartitionedOutputReplayer.h Outdated Show resolved Hide resolved
@@ -325,6 +327,89 @@ TEST_F(HashJoinReplayerTest, partialDriverIds) {
faultyFs->clearFileFaultInjections();
}

TEST_F(HashJoinReplayerTest, runner) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add runner test case for all the other operator types in followup? Thanks!

static std::shared_ptr<RowVector> copy(
const std::vector<RowVectorPtr>& results);

inline static std::atomic<uint64_t> cursorQueryId_ = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

s/cursorQueryId_/traceReplayQueryId_/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is unused, I've removed it.

velox/tool/trace/TraceTaskRunner.h Outdated Show resolved Hide resolved
velox/tool/trace/TraceTaskRunner.cpp Outdated Show resolved Hide resolved
velox/tool/trace/TraceTaskRunner.cpp Outdated Show resolved Hide resolved
velox/tool/trace/TraceTaskRunner.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@duanmeng Thanks for the update!

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in 7fdb321.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants