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

[FLASH-548/579] Engine DeltaMerge coprocessor integration #287

Merged

Conversation

JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented Oct 20, 2019

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

@JaySon-Huang
Copy link
Contributor Author

/build

@JaySon-Huang
Copy link
Contributor Author

/run-integration-tests

@JaySon-Huang
Copy link
Contributor Author

/run-integration-tests

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@JaySon-Huang
Copy link
Contributor Author

/run-integration-tests

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@JaySon-Huang
Copy link
Contributor Author

/run-integration-tests

@JaySon-Huang JaySon-Huang changed the title [FLASH-548] Engine DeltaMerge coprocess integration [FLASH-548/579] Engine DeltaMerge coprocessor integration Oct 22, 2019
@JaySon-Huang
Copy link
Contributor Author

/run-integration-tests

@JaySon-Huang
Copy link
Contributor Author

/build

@JaySon-Huang
Copy link
Contributor Author

/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));
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@JaySon-Huang
Copy link
Contributor Author

/rebuild

2 similar comments
@JaySon-Huang
Copy link
Contributor Author

/rebuild

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@flowbehappy
Copy link
Contributor

LGTM

@JaySon-Huang JaySon-Huang merged this pull request into pingcap:DeltaMergeEngine-rebased Oct 23, 2019
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 23, 2019
* 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
@JaySon-Huang JaySon-Huang deleted the dm-cop-integrate2 branch October 23, 2019 09:28
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 30, 2019
* 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
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 1, 2019
* 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
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 1, 2019
* 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
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 5, 2019
* 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
CalvinNeo added a commit to CalvinNeo/tiflash that referenced this pull request Sep 23, 2024
… the remote checkpoint (pingcap#287)

Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: JaySon <tshent@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants