New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V8keNXu0] error details while using apoc.cypher.run* procedures #3668
Conversation
} | ||
}); | ||
} | ||
} | ||
} | ||
} | ||
|
||
private Object getError(BlockingQueue<RowResult> queue, boolean reportError, Exception e, String fileName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private Object getError(BlockingQueue<RowResult> queue, boolean reportError, Exception e, String fileName) { | |
private void getError(BlockingQueue<RowResult> queue, boolean reportError, Exception e, String fileName) { |
} | ||
}); | ||
} | ||
} | ||
} | ||
} | ||
|
||
private Object getError(BlockingQueue<RowResult> queue, boolean reportError, Exception e, String fileName) { | ||
if (reportError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would reverse the condition check:
if (reportError) { | |
if (!reportError) { |
|
||
RowResult result = new RowResult(-1, Map.of("error", error)); | ||
QueueUtil.put(queue, result, 10); | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you reverse the condition you can get rid of this
* [V8keNXu0] error details while using apoc.cypher.run* procedures * Added long-running query (~1min) * Small changes review * Changed method name
* [V8keNXu0] error details while using apoc.cypher.run* procedures * Added long-running query (~1min) * Small changes review * Changed method name
* [V8keNXu0] error details while using apoc.cypher.run* procedures * Added long-running query (~1min) * Small changes review * Changed method name
reportError
config to retrieve aMap.of("error", "<ERROR_OBTAINED>")
, if any