Skip to content

Commit

Permalink
0001192: Unrouted batches can't be extracted http://localhost:31415/b…
Browse files Browse the repository at this point in the history
…atch/-1-50 [^] gets a 404
  • Loading branch information
chenson42 committed Apr 26, 2013
1 parent 2d6f7bb commit 9dec3e8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -648,6 +648,10 @@ public boolean extractBatchRange(Writer writer, String nodeId, long startBatchId
OutgoingBatch batch = outgoingBatchService.findOutgoingBatch(batchId, nodeId);
if (batch != null) {
Node targetNode = nodeService.findNode(nodeId);
if (targetNode == null && Constants.UNROUTED_NODE_ID.equals(nodeId)) {
targetNode = new Node();
targetNode.setNodeId("-1");
}
if (targetNode != null) {
IDataReader dataReader = new ExtractDataReader(symmetricDialect.getPlatform(),
new SelectFromSymDataSource(batch, sourceNode, targetNode));
Expand Down

0 comments on commit 9dec3e8

Please sign in to comment.