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

libroach,engine: support pagination of ExportToSst #44440

Merged
merged 1 commit into from
Jan 28, 2020

Commits on Jan 28, 2020

  1. libroach,engine: support pagination of ExportToSst

    This commit extends the engine interface to take a targetSize parameter in
    the ExportToSst method. The iteration will stope if the first version of a key
    to be added to the SST would lead to targetSize being exceeded. If
    exportAllRevisions is false, the targetSize will not be exceeded unless the
    first kv pair exceeds it.
    
    This commit additionally fixes a bug in the rocksdb implementation of
    DBExportToSst whereby the first key in the export request would be skipped.
    This case likely never occurred because the key passed to Export was rarely
    exactly the first key to be included (see the change related to seek_key in
    db.cc).
    
    The exportccl.TestRandomKeyAndTimestampExport was extended to excercise various
    targetSize limits. That test run under stress with the tee engine inspires some
    confidence and did catch the above mentioned bug. More testing would likely be
    good.
    
    This commit leaves the task of adopting the targetSize parameter for later.
    
    Fixes cockroachdb#39717.
    
    Release note: None
    ajwerner committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    05f91e5 View commit details
    Browse the repository at this point in the history