Skip to content

Commit

Permalink
ceph: log repository IO error
Browse files Browse the repository at this point in the history
Motivation:
help debugging

Acked-by: Paul Millar
Target: master, 3.1, 3.0
Require-book: no
Require-notes: no
(cherry picked from commit 73f60de)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
(cherry picked from commit ace6b59)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
  • Loading branch information
kofemann committed May 1, 2017
1 parent c30c9c2 commit 956da34
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -19,6 +19,9 @@
package org.dcache.pool.repository.ceph;

import com.google.common.primitives.Longs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import diskCacheV111.util.PnfsId;
import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -46,6 +49,8 @@
*/
public class CephFileStore implements FileStore {

protected static final Logger LOGGER = LoggerFactory.getLogger(CephFileStore.class);

/**
* RADOS objects extended attribute name to store creation time.
*/
Expand Down Expand Up @@ -246,6 +251,7 @@ public boolean isOk() {
try {
rados.statPool(ctx);
} catch (RadosException e) {
LOGGER.error("Repository health check failed: {}", e.toString());
return false;
}
return true;
Expand Down

0 comments on commit 956da34

Please sign in to comment.