-
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
Integrate some functions in KVStore and rename them to what they actually do #7402
Conversation
Signed-off-by: CalvinNeo <[email protected]>
Signed-off-by: CalvinNeo <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: CalvinNeo <[email protected]>
Signed-off-by: CalvinNeo <[email protected]>
/run-all-tests |
dbms/src/Debug/dbgFuncRegion.cpp
Outdated
@@ -101,7 +101,7 @@ void dbgFuncPutRegion(Context & context, const ASTs & args, DBGInvoker::Printer | |||
void dbgFuncTryFlush(Context & context, const ASTs &, DBGInvoker::Printer output) | |||
{ | |||
TMTContext & tmt = context.getTMTContext(); | |||
tmt.getRegionTable().tryFlushRegions(); |
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.
I think function name should describe what job it intend to do not how to do the job. So I prefer the previous one.
And this function is actually deprecated, so I think there is no need to change its name.
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.
I don't know what job dbgFuncTryFlush intends to do. However, if dbgFuncTryFlush is deprecated, we can remove dbgFuncTryFlush and tryFlushRegions
Signed-off-by: CalvinNeo <[email protected]>
Signed-off-by: CalvinNeo <[email protected]>
/run-all-tests |
/run-integration-test |
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.
LGTM
RegionDataReadInfoList flushRegion(const RegionPtrWithBlock & region, bool try_persist) const; | ||
// Try write the committed kvs into cache of columnar DeltaMergeStore. | ||
// Flush the cache if try_persist is set to true. | ||
// The original name for this method is flushRegion. |
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.
// The original name for this method is flushRegion. |
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?
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.
I think we don't need to keep this message... it doesn't help
|
||
// Protects writeBlockByRegionAndFlush and ensures it's executed by only one thread at the smae time. | ||
// Only one thread can do this at the same time. | ||
// The original name for this function is tryFlushRegion. |
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.
// The original name for this function is tryFlushRegion. |
Signed-off-by: CalvinNeo <[email protected]>
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.
LGTM
/merge |
@CalvinNeo: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 292f16d
|
@CalvinNeo: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: ref #7256
Problem Summary:
Some methods are delegators of
writeBlockByRegion
which transforms row-format data into columnar-format data, and write them to cache of DeltaMergeStore.There methods don't always do a flush. Actually, they ALWAYS NOT DO a flush, the only exception is when they are called from
tryFlushRegions
, and that is purely a scene of debugger.So these names are quite misleading, I think we have to change them to what they actually do.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note