8000 Introduce callstack splitting to avoid stackoverflows with large AQL queries by mpoeter · Pull Request #14351 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Introduce callstack splitting to avoid stackoverflows with large AQL queries #14351

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

Merged
merged 12 commits into from
Jun 30, 2021
Prev Previous commit
Next Next commit
Fix jslint.
  • Loading branch information
mpoeter committed Jun 15, 2021
commit b90cba35eb1194508fa6ffa1a17d9f66be830ab8
5 changes: 2 additions & 3 deletions tests/js/server/aql/aql-explain-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,15 @@ function explainSuite () {

nodes.forEach(function(node) {
assertTrue(node.hasOwnProperty("isCallstackSplitEnabled"));
assertTrue(node.isCallstackSplitEnabled ^ (node.type == "RemoteNode"));
assertTrue(node.isCallstackSplitEnabled ^ (node.type === "RemoteNode"));
});

nodes = AQL_EXPLAIN(query, {}, { maxNodesPerCallstack: 2, verbosePlans: true }).plan.nodes;
print(nodes);
let shouldHaveCallstackSplitEnabled = false;
for (let i = nodes.length; i < 0; --i) {
const node = nodes[i - 1];
assertTrue(node.hasOwnProperty("isCallstackSplitEnabled"));
if (node.type == "RemoteNode") {
if (node.type === "RemoteNode") {
shouldHaveCallstackSplitEnabled = false;
}
assertEqual(shouldHaveCallstackSplitEnabled, node.isCallstackSplitEnabled);
Expand Down
0