Skip to content

Commit

Permalink
0001368: On extraction retries the data_event_count is not reset
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Aug 6, 2013
1 parent a7c8e2c commit 8530b50
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -607,6 +607,7 @@ protected OutgoingBatch extractOutgoingBatch(ProcessInfo processInfo, Node targe
IDataWriter dataWriter, OutgoingBatch currentBatch, boolean useStagingDataWriter,
boolean updateBatchStatistics, ExtractMode mode) {
if (currentBatch.getStatus() != Status.OK || ExtractMode.EXTRACT_ONLY == mode) {

Node sourceNode = nodeService.findIdentity();

TransformWriter transformExtractWriter = null;
Expand Down Expand Up @@ -649,7 +650,7 @@ protected OutgoingBatch extractOutgoingBatch(ProcessInfo processInfo, Node targe
} finally {
transformExtractWriter.close();
}
} else if (!isPreviouslyExtracted(currentBatch)) {
} else if (!isPreviouslyExtracted(currentBatch)) {
int maxPermits = parameterService.getInt(ParameterConstants.CONCURRENT_WORKERS);
String semaphoreKey = useStagingDataWriter ? Long.toString(currentBatch
.getBatchId()) : currentBatch.getNodeBatchId();
Expand All @@ -670,6 +671,7 @@ protected OutgoingBatch extractOutgoingBatch(ProcessInfo processInfo, Node targe

synchronized (lock) {
if (!isPreviouslyExtracted(currentBatch)) {
currentBatch.resetStats();
currentBatch.setExtractCount(currentBatch.getExtractCount() + 1);
if (updateBatchStatistics) {
changeBatchStatus(Status.QY, currentBatch, mode);
Expand Down

0 comments on commit 8530b50

Please sign in to comment.