Skip to content

Commit

Permalink
0001392: When initial.load.use.extract.job.enabled is set to true the…
Browse files Browse the repository at this point in the history
… byte count and data count aren't being captured

0001393: Setting a batch to status of IG causes exception when initial.load.use.extract.job.enabled is set to true
  • Loading branch information
chenson42 committed Aug 20, 2013
1 parent 1facc1e commit 1fbae37
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -466,7 +466,7 @@ protected List<OutgoingBatch> extract(ProcessInfo processInfo, Node targetNode,

currentBatch = requeryIfEnoughTimeHasPassed(batchesSelectedAtMs, currentBatch);

if (currentBatch.isExtractJobFlag()) {
if (currentBatch.isExtractJobFlag() && currentBatch.getStatus() != Status.IG) {
if (parameterService.is(ParameterConstants.INTITAL_LOAD_USE_EXTRACT_JOB)) {
if (currentBatch.getStatus() != Status.RQ && currentBatch.getStatus() != Status.IG
&& !isPreviouslyExtracted(currentBatch)) {
Expand Down Expand Up @@ -1022,14 +1022,14 @@ public void execute(NodeCommunication nodeCommunication, RemoteNodeStatus status
}

// re-query the batches to see if they have been OK'd while extracting
batches = outgoingBatchService.getOutgoingBatchRange(
List<OutgoingBatch> checkBatches = outgoingBatchService.getOutgoingBatchRange(
request.getStartBatchId(), request.getEndBatchId()).getBatches();

areBatchesOk = true;

// check to see if batches have been OK'd by another reload request
// while extracting
for (OutgoingBatch outgoingBatch : batches) {
for (OutgoingBatch outgoingBatch : checkBatches) {
if (outgoingBatch.getStatus() != Status.OK) {
areBatchesOk = false;
}
Expand Down

0 comments on commit 1fbae37

Please sign in to comment.