log.debug("Stop run blob incubator monitor");
}
private void checkResult(Result result) throws IOException, RepositoryException, InterruptedException {
byte[] recordIdBytes = result.getValue(BlobIncubatorCf.REF.bytes, BlobIncubatorColumn.RECORD.bytes);
SchemaId recordId = new SchemaIdImpl(recordIdBytes);
byte[] blobKey = result.getRow();
if (Arrays.equals(recordIdBytes,BlobManagerImpl.INCUBATE)) {
deleteBlob(blobKey, recordId, null);
} else {
SchemaId fieldId = new SchemaIdImpl(result.getValue(BlobIncubatorCf.REF.bytes, BlobIncubatorColumn.FIELD.bytes));
Result blobUsage;
try {
blobUsage = getBlobUsage(blobKey, recordId, fieldId);
if (blobUsage == null || blobUsage.isEmpty()) {
deleteBlob(blobKey, recordId, fieldId); // Delete blob and reference