File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ namespace arangodb {
29
29
RocksDBBackgroundErrorListener::~RocksDBBackgroundErrorListener () {}
30
30
31
31
void RocksDBBackgroundErrorListener::OnBackgroundError (rocksdb::BackgroundErrorReason reason,
32
- rocksdb::Status*) {
32
+ rocksdb::Status* status) {
33
+ if (status != nullptr && status->IsShutdownInProgress ()) {
34
+ // this is not a relevant error, so let's ignore it
35
+ return ;
36
+ }
37
+
33
38
if (!_called) {
34
39
_called = true ;
35
40
@@ -55,8 +60,8 @@ void RocksDBBackgroundErrorListener::OnBackgroundError(rocksdb::BackgroundErrorR
55
60
56
61
LOG_TOPIC (" fae2c" , ERR, Logger::ROCKSDB)
57
62
<< " RocksDB encountered a background error during a " << operation
58
- << " operation; The database will be put in read-only "
59
- " mode, and subsequent write errors are likely" ;
63
+ << " operation: " << (status != nullptr ? status-> ToString () : " unknown error " )
64
+ << " ; The database will be put in read-only mode, and subsequent write errors are likely" ;
60
65
}
61
66
}
62
67
You can’t perform that action at this time.
0 commit comments