Ryan4253 opened a new pull request, #3014:
URL: https://github.com/apache/kvrocks/pull/3014

   Closes #3013 
   
   ## Description of Changes:
   RocksDB provides event hooks to log blob file creation and deletion but it 
is not implemented in Kvrocks. This adds the relevant overrides to log blob 
file creation and deletion.
   
   ## Test Plan
   ### Unit Test
   ```
   [----------] Global test environment tear-down
   [==========] 430 tests from 69 test suites ran. (53909 ms total)
   [  PASSED  ] 429 tests.
   [  SKIPPED ] 1 test, listed below:
   [  SKIPPED ] UseBitmap/RedisBitmapTest.BitfieldStringGetSetTest/0
   ```
   
   ## Logs
   ### Before
   ```
   (nothing)
   ```
   ### After
   ```
   [2025-06-03T14:44:59.762344-04:00][I][event_listener.cc:203] 
[event_listener/blob_file_created] column family: metadata, file path: 
[dir]/kvrocks/db/000547.blob, blob count: 68, blob bytes: 272018459, job_id: 3, 
reason: compaction, status: OK
   
   [2025-06-03T14:45:00.174550-04:00][I][event_listener.cc:208] 
[event_listener/blob_file_deleted] db: [dir]/kvrocks/db, blob file: 
[dir]/kvrocks/db/000541.blob, status: OK
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to