-
Notifications
You must be signed in to change notification settings - Fork 412
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
[FLASH-548/579] Engine DeltaMerge coprocessor integration #287
[FLASH-548/579] Engine DeltaMerge coprocessor integration #287
Conversation
/build |
eb357aa
to
6b3ec2e
Compare
/run-integration-tests |
6b3ec2e
to
34a7c37
Compare
/run-integration-tests |
34a7c37
to
23a8eb1
Compare
/rebuild |
/run-integration-tests |
8211d01
to
cf61fda
Compare
23a8eb1
to
80f4f89
Compare
80f4f89
to
a808adc
Compare
/rebuild |
/run-integration-tests |
/run-integration-tests |
/build |
/rebuild |
@@ -403,6 +403,9 @@ BlockInputStreams StorageDeltaMerge::read( // | |||
{ | |||
/// Learner read. | |||
doLearnerRead(tidb_table_info.id, mvcc_query_info.regions_query_info, tmt, log); | |||
|
|||
/// For learner read from TiDB/TiSpark, we set num_streams by `mvcc_query_info.concurrent` | |||
num_streams = std::max(1U, static_cast<UInt32>(mvcc_query_info.concurrent)); |
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.
Looks like queries from ch client will also run this path. Maybe we should check the availability ofmvcc_query_info
to determine whether it is a learner read from TiDB/TiSpark.
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.
mvcc_query_info
is never null, but mvcc_query_info.regions_query_info
is empty if it is not come from TiDB/TiSpark.
Done.
/rebuild |
2 similar comments
/rebuild |
/rebuild |
LGTM |
* Throw exception with region status; Use reverseGetColumnInfo * Use IManageableStorage instead of StorageMergeTree * Fix args of mock_tidb_table && ensure engine is DeltaMerge * For learner read from TiDB/TiSpark, we set num_streams by mvcc_query_info.concurrent * fix compile error * address comment; add log for level trace
* Throw exception with region status; Use reverseGetColumnInfo * Use IManageableStorage instead of StorageMergeTree * Fix args of mock_tidb_table && ensure engine is DeltaMerge * For learner read from TiDB/TiSpark, we set num_streams by mvcc_query_info.concurrent * fix compile error * address comment; add log for level trace
* Throw exception with region status; Use reverseGetColumnInfo * Use IManageableStorage instead of StorageMergeTree * Fix args of mock_tidb_table && ensure engine is DeltaMerge * For learner read from TiDB/TiSpark, we set num_streams by mvcc_query_info.concurrent * fix compile error * address comment; add log for level trace
* Throw exception with region status; Use reverseGetColumnInfo * Use IManageableStorage instead of StorageMergeTree * Fix args of mock_tidb_table && ensure engine is DeltaMerge * For learner read from TiDB/TiSpark, we set num_streams by mvcc_query_info.concurrent * fix compile error * address comment; add log for level trace
* Throw exception with region status; Use reverseGetColumnInfo * Use IManageableStorage instead of StorageMergeTree * Fix args of mock_tidb_table && ensure engine is DeltaMerge * For learner read from TiDB/TiSpark, we set num_streams by mvcc_query_info.concurrent * fix compile error * address comment; add log for level trace
… the remote checkpoint (pingcap#287) Signed-off-by: Calvin Neo <calvinneo1995@gmail.com> Co-authored-by: JaySon <tshent@qq.com>
Make coprocessor can read tables with DeltaMerge engine.
There is too many errors after rebase branch DeltaMergeEngine to master without these commits, I create a temporary branch (
DeltaMergeEngine-rebased
) and create a PR for review.After reviewed, I will force push this DeltaMergeEngine-rebased to DeltaMergeEngine