]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Expose blob file information through the EventListener interface (#8675)
authorAkanksha Mahajan <akankshamahajan@fb.com>
Fri, 17 Sep 2021 00:17:40 +0000 (17:17 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 00:23:36 +0000 (17:23 -0700)
commitd6aa8c49f849ebb3878e7f1e721dea89a8cf3dcb
tree946f4dc1c61c43f7e73e075bb9505277e18929a4
parent4f1dd05cec7cc9421a966430fb06dbc9d34bfd8e
Expose blob file information through the EventListener interface (#8675)

Summary:
1. Extend FlushJobInfo and CompactionJobInfo with information about the blob files generated by flush/compaction jobs. This PR add two structures BlobFileInfo and BlobFileGarbageInfo that contains the required information of blob files.
 2. Notify the creation and deletion of blob files through OnBlobFileCreationStarted, OnBlobFileCreated, and OnBlobFileDeleted.
 3. Test OnFile*Finish operations notifications with Blob Files.
 4. Log the blob file creation/deletion events through EventLogger in Log file.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8675

Test Plan: Add new unit tests in listener_test

Reviewed By: ltamasi

Differential Revision: D30412613

Pulled By: akankshamahajan15

fbshipit-source-id: ca51b63c6e8c8d0485a38c503572bc5a82bd5d07
19 files changed:
HISTORY.md
db/blob/blob_file_builder.cc
db/blob/blob_file_builder.h
db/blob/blob_file_builder_test.cc
db/blob/blob_file_completion_callback.h
db/builder.cc
db/builder.h
db/compaction/compaction_job.cc
db/db_impl/db_impl.cc
db/db_impl/db_impl_compaction_flush.cc
db/db_impl/db_impl_files.cc
db/db_impl/db_impl_open.cc
db/event_helpers.cc
db/event_helpers.h
db/flush_job.cc
db/listener_test.cc
db/repair.cc
include/rocksdb/listener.h
include/rocksdb/types.h