Skip to content
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

Merged
merged 4 commits into from Jul 25, 2023

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Jul 18, 2023

  • Added reportError config to retrieve a Map.of("error", "<ERROR_OBTAINED>"), if any
  • Updated config docs

}
});
}
}
}
}

private Object getError(BlockingQueue<RowResult> queue, boolean reportError, Exception e, String fileName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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) {
Copy link
Contributor

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:

Suggested change
if (reportError) {
if (!reportError) {


RowResult result = new RowResult(-1, Map.of("error", error));
QueueUtil.put(queue, result, 10);
return null;
Copy link
Contributor

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

@conker84 conker84 merged commit 4d97c9c into dev Jul 25, 2023
5 of 7 checks passed
@conker84 conker84 deleted the return-errors-in-run-procs branch July 25, 2023 09:38
vga91 added a commit that referenced this pull request Jul 25, 2023
* [V8keNXu0] error details while using apoc.cypher.run* procedures

* Added long-running query (~1min)

* Small changes review

* Changed method name
vga91 added a commit that referenced this pull request Jul 26, 2023
…) (#3687)

* [V8keNXu0] error details while using apoc.cypher.run* procedures (#3668)

* [V8keNXu0] error details while using apoc.cypher.run* procedures

* Added long-running query (~1min)

* Small changes review

* Changed method name

* decreased heap size like 4.4

* lightened tests
vga91 added a commit that referenced this pull request Dec 22, 2023
* [V8keNXu0] error details while using apoc.cypher.run* procedures

* Added long-running query (~1min)

* Small changes review

* Changed method name
vga91 added a commit that referenced this pull request Dec 22, 2023
* [V8keNXu0] error details while using apoc.cypher.run* procedures

* Added long-running query (~1min)

* Small changes review

* Changed method name
vga91 added a commit that referenced this pull request Dec 22, 2023
…) (#3881)

* [V8keNXu0] error details while using apoc.cypher.run* procedures (#3668)

* [V8keNXu0] error details while using apoc.cypher.run* procedures

* Added long-running query (~1min)

* Small changes review

* Changed method name

* [V8keNXu0] fix for 4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants