Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • F frocksdb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • rui xia
  • frocksdb
  • Repository

Switch branch/tag
  • frocksdb
  • db
  • arena_wrapped_db_iter.cc
Find file BlameHistoryPermalink
  • sdong's avatar
    Fix a bug that causes iterator to return wrong result in a rare data race (#6973) · 1910560c
    sdong authored Jun 18, 2020
    Summary:
    The bug fixed in https://github.com/facebook/rocksdb/pull/1816/ is now applicable to iterator too. This was not an issue but https://github.com/facebook/rocksdb/pull/2886 caused the regression. If a put and DB flush happens just between iterator to get latest sequence number and getting super version, empty result for the key or an older value can be returned, which is wrong.
    Fix it in the same way as the fix in https://github.com/facebook/rocksdb/issues/1816, that is to get the sequence number after referencing the super version.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6973
    
    Test Plan: Will run stress tests for a while to make sure there is no general regression.
    
    Reviewed By: ajkr
    
    Differential Revision: D22029348
    
    fbshipit-source-id: 94390f93630906796d6e2fec321f44a920953fd1
    1910560c

Replace arena_wrapped_db_iter.cc

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.