-
Notifications
You must be signed in to change notification settings - Fork 437
Upgrade split #253
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
Open
caijieming-ng
wants to merge
12
commits into
baidu:master
Choose a base branch
from
caijieming-ng:CodeMerge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Upgrade split #253
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
139dfa5
Upgrade Split
174d8fa
Upgrade split, merge newest master
2bd76e5
Upgrade split: (1) cluster test Pass; (2) fixbug: small splitsize cau…
8877b16
Upgrade split: adjust log level to VLOG(20)
508d87c
Upgrade split: delete debug log
8aae5c1
#268 Upgrade Split: merge baidu-master
e90a853
#268 Upgrade Split: delete log message
9f045f5
#268 Upgrade split: adjust code style
865ad1c
#268 : adjuest code style
c3e9248
Merge branch 'master' of github.com:baidu/tera into CodeMerge
770f055
#268 : if ts down or restart, resched OnSplitWait tablet
228bb44
#268 : split finish, handle ProcessReadyTablet
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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -38,10 +38,9 @@ class TabletIO { | |
| kNotInit = kTabletNotInit, | ||
| kReady = kTabletReady, | ||
| kOnLoad = kTabletOnLoad, | ||
| kOnSplit = kTabletOnSplit, | ||
| kSplited = kTabletSplited, | ||
| kUnLoading = kTabletUnLoading, | ||
| kUnLoading2 = kTabletUnLoading2 | ||
| kUnLoading2 = kTabletUnLoading2, | ||
| kFrozen = kTabletFrozen, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kunloading2是原代码的状态,tablietio进行该卸载第二阶段,需要阻塞读写;kfrozen状态是卸载结束后tabletio进入的状态,表示该区间目前不操作; |
||
| }; | ||
| typedef std::map< std::string, std::set<std::string> > ColumnFamilyMap; | ||
| struct ScanOptions { | ||
|
|
@@ -96,7 +95,9 @@ class TabletIO { | |
| leveldb::TableCache* table_cache = NULL, | ||
| StatusCode* status = NULL); | ||
| virtual bool Unload(StatusCode* status = NULL); | ||
| virtual bool Split(std::string* split_key, StatusCode* status = NULL); | ||
|
|
||
| virtual bool GetMidKey(std::string* mid_key, StatusCode* status); | ||
|
|
||
| virtual bool Compact(StatusCode* status = NULL); | ||
| bool CompactMinor(StatusCode* status = NULL); | ||
| bool Destroy(StatusCode* status = NULL); | ||
|
|
||
This file contains hidden or 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 hidden or 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.
加上DebugString吧,防止乱码