提交 8f39db78 编写于 作者: F fjy

more data to exception msgs

上级 6d54ae9f
......@@ -196,7 +196,10 @@ public class ServerManager implements QuerySegmentWalker
oldQueryable.close();
}
catch (IOException e) {
log.makeAlert(e, "Unable to close segment %s", segment.getIdentifier()).emit();
log.makeAlert(e, "Exception closing segment")
.addData("dataSource", dataSource)
.addData("segmentId", segment.getIdentifier())
.emit();
}
} else {
log.info(
......
......@@ -129,6 +129,8 @@ public class ReferenceCountingSegmentTest
segment.increment();
segment.increment();
segment.increment();
Assert.assertTrue(segment.getNumReferences() == 0);
segment.close();
Assert.assertTrue(segment.getNumReferences() == 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册