-
Notifications
You must be signed in to change notification settings - Fork 411
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
Pipeline: use notify instead of polling for ResultQueue
#9065
Merged
Merged
Changes from 64 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
7036d82
for task
SeaRise c0321fb
operator
SeaRise 11b364f
for profile
SeaRise ff3fea4
fix build
SeaRise 9511939
fix notify
SeaRise c7084d5
minor refactor
SeaRise 2512249
__thread
SeaRise 9914a58
tmp save
SeaRise 71275bf
tmp
SeaRise afff674
update
SeaRise 2b2b029
fix
SeaRise c701633
u
SeaRise ca9d6f3
refactor
SeaRise f93842e
fiux
SeaRise b453caa
Merge branch 'master' into notify_instead_of_pollinh
SeaRise 4b6c363
final
SeaRise f0c6bfd
final final
SeaRise a05bd14
refine for lock
SeaRise 0ba130f
address comment
SeaRise 20d297d
Update dbms/src/Storages/DeltaMerge/ReadThread/WorkQueue.h
SeaRise 28b1a58
update
SeaRise 2b15547
update
SeaRise acafb58
Merge branch 'master' into shared_queue_notify
SeaRise 00543bf
u
SeaRise ba964ab
update
SeaRise 6c33a4a
Merge branch 'master' into shared_queue_notify
SeaRise 9e1270d
Update dbms/src/Flash/Pipeline/Schedule/Tasks/PipeConditionVariable.h
SeaRise ace773f
fix
SeaRise 8234f45
u
SeaRise 30208c3
fix
SeaRise a0bffb6
add test case
SeaRise 5b2610b
Update dbms/src/Operators/GetResultSinkOp.cpp
SeaRise 9af4fe3
Update dbms/src/Flash/Executor/PipelineExecutorContext.h
SeaRise 1e63a3b
Update dbms/src/Flash/Executor/PipelineExecutorContext.cpp
SeaRise 72a4c5f
refine
SeaRise 122bcf5
u
SeaRise 05eae12
some refine
SeaRise 81d7936
update
SeaRise e129791
update
SeaRise 430cce5
Merge branch 'master' into shared_queue_notify
SeaRise 8f57d6f
refine
SeaRise 9747de4
fix
SeaRise 0061987
Merge branch 'master' into shared_queue_notify
SeaRise 306af86
fix
SeaRise 41e6d57
Merge branch 'master' into shared_queue_notify
SeaRise 9049a5b
Update dbms/src/Operators/Operator.cpp
SeaRise 08ba3a1
Update dbms/src/Operators/Operator.cpp
SeaRise 3d717c4
Update dbms/src/Operators/Operator.cpp
SeaRise 1d9563c
Update LooseBoundedMPMCQueue.h
SeaRise e533eee
Merge branch 'master' into shared_queue_notify
SeaRise db76363
refine result queue used in join restore
SeaRise 92caf68
minor fix
SeaRise 172b76b
Merge branch 'master' into refine_result_queue
SeaRise 2b7b12b
u
SeaRise fbd2bb0
fmt
SeaRise 55b469f
refine for result queue
SeaRise c2a39d2
u
SeaRise cbbd91b
fix
SeaRise ee5f75c
u
SeaRise 39aa87d
u
SeaRise e2feba7
minor fix
SeaRise ec5d595
u
SeaRise 357e7c4
u
SeaRise b0b9401
minor update
SeaRise 8fb9698
Update dbms/src/Flash/Executor/ResultQueue_fwd.h
SeaRise bc7e151
Update dbms/src/Operators/GetResultSinkOp.cpp
SeaRise d48d24b
Update dbms/src/Flash/Pipeline/Schedule/Tasks/StreamRestoreTask.cpp
SeaRise eae3bbe
Merge branch 'master' into refine_result_queue
SeaRise 6467e60
merge master
SeaRise 5c94523
Merge branch 'master' into refine_result_queue
ti-chi-bot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2023 PingCAP, Inc. | ||
SeaRise marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
namespace DB | ||
{ | ||
class ResultQueue; | ||
using ResultQueuePtr = std::shared_ptr<ResultQueue>; | ||
} // namespace DB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why tmp is always not nullptr here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because if
isWaitMode()
is false, theresult_queue
must not be nullptr