Permalink
Browse files

WIP3

  • Loading branch information...
1 parent fd0256d commit 53e8def48e3e2fe4b113c782befd456d8842d415 Ivan Kelly committed Mar 18, 2012
@@ -574,7 +574,7 @@ public void registerJMX(BKMBeanInfo parent) {
BKMBeanRegistry.getInstance().register(jmxBookieBean, parent);
try {
- jmxLedgerCacheBean = new LedgerCacheBean(this.ledgerCache);
+ jmxLedgerCacheBean = new LedgerCacheBean((LedgerCacheImpl)this.ledgerCache);
BKMBeanRegistry.getInstance().register(jmxLedgerCacheBean, jmxBookieBean);
} catch (Exception e) {
LOG.warn("Failed to register with JMX for ledger cache", e);
@@ -25,9 +25,9 @@
*/
public class LedgerCacheBean implements LedgerCacheMXBean, BKMBeanInfo {
- final LedgerCache lc;
+ final LedgerCacheImpl lc;
- public LedgerCacheBean(LedgerCache lc) {
+ public LedgerCacheBean(LedgerCacheImpl lc) {
this.lc = lc;
}
@@ -399,6 +399,12 @@ public void processPacket(ByteBuffer packet, Cnxn src) {
LOG.error("Error reading " + entryId + "@" + ledgerId, e);
}
errorCode = BookieProtocol.EIO;
+ } catch (BookieException e) {
+ // IKTODO, fix this up
+ if (LOG.isTraceEnabled()) {
+ LOG.error("Error reading " + entryId + "@" + ledgerId, e);
+ }
+ errorCode = BookieProtocol.EIO;
}
rsp[0] = buildResponse(errorCode, h.getVersion(), h.getOpCode(), ledgerId, entryId);
@@ -26,7 +26,7 @@
# Format is "<default threshold> (, <appender>)+
# DEFAULT: console appender only
-log4j.rootLogger=INFO, CONSOLE
+log4j.rootLogger=OFF, CONSOLE
# Example with rolling log file
#log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE

0 comments on commit 53e8def

Please sign in to comment.