Skip to content

Commit

Permalink
Merge pull request #41 from zucisystems-dev/fix/missing_zip_file_changes
Browse files Browse the repository at this point in the history
paper itemiser indexing issue
  • Loading branch information
Sanjeeya-Velayutham-ZS0029 authored Jun 2, 2023
2 parents 37df916 + aa84ce1 commit ea4b667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/in/handyman/raven/lib/CoproProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public CoproProcessor(final BlockingQueue<I> queue, final Class<O> outputTargetC
this.executorService = Executors.newWorkStealingPool();
this.outputTargetClass = outputTargetClass;
this.jdbi = jdbi;
this.logger = log;
this.logger = logger;
this.actionExecutionAudit = actionExecutionAudit;
this.nodeSize = coproNodes.size();
final LocalDateTime startTime = LocalDateTime.now();
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/in/handyman/raven/lib/FileMergerAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,20 @@ public void execute() throws Exception {
if(log.isInfoEnabled()){
log.info(aMarker, "The request got it successfully the copro url {} ,request body {} and output directory {}", URI,requestBody,outputDir);
}
String name = "file-merger-response";
try (Response response = httpclient.newCall(request).execute()) {
String responseBody = Objects.requireNonNull(response.body()).string();
String name = "file-merger-response";
if (response.isSuccessful()) {
action.getContext().put(name, mapper.readTree(responseBody).toString());
action.getContext().put(name.concat(".success"), "true");
log.info(aMarker, "The Successful Response {} {}", name, responseBody);
} else {
action.getContext().put(name.concat(".error"), "true");
log.error(aMarker, "The Failure Response {} {}", name, responseBody);
}
} catch (Exception e) {
log.info(aMarker, "The Exception occurred ", e);
action.getContext().put(name.concat(".error"), "true");
log.error(aMarker, "The Exception occurred ", e);
throw new HandymanException("Failed to execute", e, action);
}
}
Expand Down

0 comments on commit ea4b667

Please sign in to comment.