You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/06/10 06:59:54 UTC
[GitHub] [incubator-kvrocks] ShooterIT commented on a diff in pull request #628: Fix RocksDB can't auto resume after disk quota exceeded error
ShooterIT commented on code in PR #628:
URL: https://github.com/apache/incubator-kvrocks/pull/628#discussion_r894208090
##########
src/event_listener.cc:
##########
@@ -59,6 +59,15 @@ const std::string compressType2String(const rocksdb::CompressionType type) {
return iter->second;
}
+bool isDiskQuotaExceeded(const rocksdb::Status &bg_error) {
+ // EDQUOT: Disk quota exceeded (POSIX.1-2001)
+ std::string exceeded_quota_str = "Disk quota exceeded";
+ std::string err_msg = bg_error.ToString();
+
+ return err_msg.find(exceeded_quota_str) != std::string::npos;
+
Review Comment:
```suggestion
```
--
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: dev-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org