Skip to content

Commit

Permalink
OAK-4548 SegmentDataStoreBlobGCIT failures
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1751871 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
stillalex committed Jul 8, 2016
1 parent 09002e1 commit 5e85594
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,15 @@ public void collectBlobReferences(ReferenceCollector collector) {
UUID uid = queue.remove();
SegmentId id = getSegmentId(uid.getMostSignificantBits(),
uid.getLeastSignificantBits());
Segment segment = id.getSegment();
Segment segment = null;
try {
segment = id.getSegment();
} catch (SegmentNotFoundException ex) {
// gc'ed
}
if (segment == null) {
continue;
}
segment.collectBlobReferences(collector);
for (SegmentId refid : segment.getReferencedIds()) {
UUID rid = refid.asUUID();
Expand Down

0 comments on commit 5e85594

Please sign in to comment.