mirror of https://github.com/apache/druid.git
more data to exception msgs
This commit is contained in:
parent
6d54ae9f81
commit
8f39db7804
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue