private void fail(InsertException e, boolean fatal, ClientContext context) { synchronized(BinaryBlobInserter.this) { if(inserters[blockNum] == null) return; inserters[blockNum] = null; completedBlocks++; if(fatal) BinaryBlobInserter.this.fatal = true; } if(fatal) parent.fatallyFailedBlock(context); else parent.failedBlock(context); maybeFinish(context); }