-
Notifications
You must be signed in to change notification settings - Fork 409
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
PageStorage control add more args to debug. #4994
Conversation
* Remove previous pingcap license header Signed-off-by: yibin <huyibin@pingcap.com> * Process cluster_manage folder to add license folder Signed-off-by: yibin <huyibin@pingcap.com> * Remove empty lines Signed-off-by: yibin <huyibin@pingcap.com> * Process release-centos7-llvm for adding license header Signed-off-by: yibin <huyibin@pingcap.com> * Process release-darwin for adding license header Signed-off-by: yibin <huyibin@pingcap.com> * Process metrics for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process tests for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process deprected for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process root CMakeLists.txt for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process cmake for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process root files for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process dbms for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Process libs for adding lh Signed-off-by: yibin <huyibin@pingcap.com> * Makeup for several files added very recently that missing license head Signed-off-by: yibin <huyibin@pingcap.com> * Process one more recently commit file Signed-off-by: yibin <huyibin@pingcap.com> Co-authored-by: ruoxi <zanmato1984@gmail.com>
* 1.add metrics of calldata&mpptunnel 2.refine shutdown logic Signed-off-by: bestwoody <bestwoody@163.com> * update * Apply suggestions from code review Co-authored-by: Fu Zhe <fuzhe1989@gmail.com> * Update dbms/src/Flash/EstablishCall.cpp Co-authored-by: Fu Zhe <fuzhe1989@gmail.com> * add harm limit to wait Signed-off-by: bestwoody <bestwoody@163.com> * fix Signed-off-by: bestwoody <bestwoody@163.com> Co-authored-by: Fu Zhe <fuzhe1989@gmail.com>
* flush cache before segment merge * keep flush until success * check whether segment is valid if flush failed * Update dbms/src/Storages/DeltaMerge/tests/gtest_dm_segment.cpp Co-authored-by: JaySon <tshent@qq.com> * add more fix * check flush result in segment::write Co-authored-by: JaySon <tshent@qq.com>
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
#ifndef NDEBUG | ||
if (only_snapshot_log) | ||
{ | ||
if (name.level_num >= 1) | ||
{ | ||
log_files.insert(name); | ||
} | ||
break; | ||
} | ||
#endif |
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 this. We can tell where the entry from by checking this log
LOG_FMT_DEBUG(logger, "Open log file for reading [file={}]", fullname); |
@@ -470,8 +526,14 @@ class PageStorageControl | |||
|
|||
using namespace DB::PS::V3; | |||
int main(int argc, char ** argv) | |||
try | |||
{ | |||
const auto & options = ControlOptions::parse(argc, argv); |
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.
Suggest use TiFlashTestEnv::setupLogger
to setup logger and replace all cerr
/cout
by LOG_FMT_XXX
tiflash/dbms/src/TestUtils/TiFlashTestEnv.cpp
Lines 108 to 116 in cfcaaec
void TiFlashTestEnv::setupLogger(const String & level, std::ostream & os) | |
{ | |
Poco::AutoPtr<Poco::ConsoleChannel> channel = new Poco::ConsoleChannel(os); | |
Poco::AutoPtr<UnifiedLogPatternFormatter> formatter(new UnifiedLogPatternFormatter()); | |
formatter->setProperty("pattern", "%L%Y-%m-%d %H:%M:%S.%i [%I] <%p> %s: %t"); | |
Poco::AutoPtr<Poco::FormattingChannel> formatting_channel(new Poco::FormattingChannel(formatter, channel)); | |
Poco::Logger::root().setChannel(formatting_channel); | |
Poco::Logger::root().setLevel(level); | |
} |
@jiaqizho: PR needs rebase. 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 kubernetes/test-infra repository. |
What problem does this PR solve?
Issue Number: ref #3594
Problem Summary:
What is changed and how it works?
only_restore_snapshot_log
/not_restore_blob
/skip_mvcc_gc
wal/snapshot
log without BlobStore init.Check List
Tests
Side effects
Documentation
Release note