Skip to content

Commit

Permalink
0005602: Parse exception of batch should remove it from staging
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 28, 2022
1 parent 9d2f042 commit 0e76685
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -51,6 +51,7 @@
import org.jumpmind.symmetric.io.data.DataContext;
import org.jumpmind.symmetric.io.data.DataEventType;
import org.jumpmind.symmetric.io.data.IDataReader;
import org.jumpmind.symmetric.io.data.ProtocolException;
import org.jumpmind.symmetric.io.stage.IStagedResource;
import org.jumpmind.util.CollectionUtils;
import org.jumpmind.util.Statistics;
Expand Down Expand Up @@ -191,7 +192,7 @@ public Object readNext() {
+ "The number of columns (%d) reported for table '%s' doesn't match up with the token count (%d) data: %s",
columnCount, context.getLastParsedTable().getFullyQualifiedTableName(), tokens.length,
ArrayUtils.toString(tokens));
throw new IllegalStateException(msg);
throw new ProtocolException(msg);
}
data.putParsedData(CsvData.ROW_DATA, CollectionUtils.copyOfRange(tokens, 1, columnCount + 1));
data.putParsedData(CsvData.PK_DATA, CollectionUtils.copyOfRange(tokens, columnCount + 1, tokens.length));
Expand Down

0 comments on commit 0e76685

Please sign in to comment.