replica under construction fix
@@ -5461,7 +5461,13 @@ public void acquireLock(TransactionLocks locks) throws IOException {
@Override
public Object performTask() throws IOException {
+
+ BlockInfoContiguous storedBlock = blocksMap.getStoredBlock(block);
+ BlockUCState ucState = storedBlock.getBlockUCState();
+ if (isBlockUnderConstruction(storedBlock, ucState, reportedState)) {
block.addReplicaIfNotPresent(storage, reportedState, block.getGenerationStamp());
+ }
+
//and fall through to next clause
//add replica if appropriate
if (reportedState == ReplicaState.FINALIZED) {
