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

import: use memory to cache split sst instead of disk file #4566

Merged
merged 3 commits into from
Apr 25, 2019
Merged

import: use memory to cache split sst instead of disk file #4566

merged 3 commits into from
Apr 25, 2019

Conversation

lonng
Copy link
Member

@lonng lonng commented Apr 25, 2019

Signed-off-by: Lonng chris@lonng.org

What have you changed? (mandatory)

  1. Fix importer BUG

    The importer will return success even though some ranges failure in the current version.

  2. Use memory to cache split SST file instead of disk file to reduce disk IO.

    We need to split Engine File to small SST files to fit the region size. There are some steps required in the current implementation, which heavily depend on disk.

    • Read Engine file
    • Write split SST file to disk
    • Read small SST file to upload

@lonng lonng added the type/bug The issue is confirmed as a bug. label Apr 25, 2019
src/import/import.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM, but perhaps we should split it into two PRs (one for the retry fix and one for the in-memory SST)

@lonng
Copy link
Member Author

lonng commented Apr 25, 2019

@zhangjinpeng1987 @kennytm PTAL again.

@kennytm kennytm added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 25, 2019
@kennytm kennytm merged commit 620d76e into tikv:master Apr 25, 2019
@kennytm kennytm deleted the fix-importer branch April 25, 2019 17:24
lonng added a commit that referenced this pull request Apr 26, 2019
kennytm added a commit to kennytm/tikv that referenced this pull request Apr 26, 2019
kennytm added a commit to kennytm/tikv that referenced this pull request Apr 26, 2019
Signed-off-by: kennytm <kennytm@gmail.com>
kennytm added a commit to kennytm/tikv that referenced this pull request Apr 26, 2019
Signed-off-by: kennytm <kennytm@gmail.com>
jswh pushed a commit to jswh/tikv that referenced this pull request May 27, 2019
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT1 Indicates that a PR has LGTM 1. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants