• A
    Periodically flush info log out of application buffer (#7488) · 1e009097
    Andrew Kryczka 提交于
    Summary:
    This PR schedules a background thread (shared across all DB instances)
    to flush info log every ten seconds. This improves debuggability in case
    of RocksDB hanging since it ensures the log messages leading up to the hang
    will eventually become visible in the log.
    
    The bulk of this PR is moving monitoring/stats_dump_scheduler* to db/periodic_work_scheduler*
    and making the corresponding name changes since now the scheduler handles info
    log flushing, not just stats dumping.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/7488
    
    Reviewed By: riversand963
    
    Differential Revision: D24065165
    
    Pulled By: ajkr
    
    fbshipit-source-id: 339c47a0ff43b79fdbd055fbd9fefbb6f9d8d3b5
    1e009097
db_impl_open.cc 67.1 KB