Skip to content

Commit

Permalink
0004398: Initial load leaves batch in RQ status with message "batch not
Browse files Browse the repository at this point in the history
ready for delivery"
  • Loading branch information
erilong committed May 21, 2020
1 parent d3f0a3a commit a6a19e3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1019,13 +1019,13 @@ protected OutgoingBatch extractOutgoingBatch(ProcessInfo extractInfo, Node targe

if (currentBatch.getStatus() == Status.IG) {
cleanupIgnoredBatch(sourceNode, targetNode, currentBatch, writer);
} else if (!isPreviouslyExtracted(currentBatch, false)) {
} else if (currentBatch.getStatus() == Status.RQ || !isPreviouslyExtracted(currentBatch, false)) {
BatchLock lock = null;
try {
log.debug("{} attempting to acquire lock for batch {}", targetNode.getNodeId(), currentBatch.getBatchId());
lock = acquireLock(currentBatch, useStagingDataWriter);
log.debug("{} acquired lock for batch {}", targetNode.getNodeId(), currentBatch.getBatchId());
if (!isPreviouslyExtracted(currentBatch, true)) {
if (currentBatch.getStatus() == Status.RQ || !isPreviouslyExtracted(currentBatch, true)) {
log.debug("{} extracting batch {}", targetNode.getNodeId(), currentBatch.getBatchId());
currentBatch.setExtractCount(currentBatch.getExtractCount() + 1);

Expand Down

0 comments on commit a6a19e3

Please sign in to comment.