]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: prevent repetitive error messages after being blacklisted 12497/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 15 Dec 2016 01:49:46 +0000 (20:49 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 15 Dec 2016 01:49:46 +0000 (20:49 -0500)
Fixes: http://tracker.ceph.com/issues/18243
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/JournalMetadata.cc

index 1745f261050e2e38a3a3bbe49f68ff12b74689de..967529ddb68edeea91d73033082d26ae9e9a6241 100644 (file)
@@ -848,6 +848,8 @@ void JournalMetadata::handle_watch_reset() {
   if (r < 0) {
     if (r == -ENOENT) {
       ldout(m_cct, 5) << __func__ << ": journal header not found" << dendl;
+    } else if (r == -EBLACKLISTED) {
+      ldout(m_cct, 5) << __func__ << ": client blacklisted" << dendl;
     } else {
       lderr(m_cct) << __func__ << ": failed to watch journal: "
                    << cpp_strerror(r) << dendl;
@@ -872,7 +874,7 @@ void JournalMetadata::handle_watch_error(int err) {
   if (err == -ENOTCONN) {
     ldout(m_cct, 5) << "journal watch error: header removed" << dendl;
   } else if (err == -EBLACKLISTED) {
-    ldout(m_cct, 5) << "journal watch error: client blacklisted" << dendl;
+    lderr(m_cct) << "journal watch error: client blacklisted" << dendl;
   } else {
     lderr(m_cct) << "journal watch error: " << cpp_strerror(err) << dendl;
   }