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

Update AQL Queries to work with Clustered ArangoDB Deploys #1150

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

1nv8rzim
Copy link
Contributor

@1nv8rzim 1nv8rzim commented Oct 18, 2024

When using a clustered ArangoDB deploy you need to manually set the collections that you will be accessing as they can be sharded against dbservers. To do with you just need to add WITH [collection] at the beginning of the queries for any cross-collection queries.

Example Error:

File "/app/plugins/feeds/public/abusech_malwarebazaar.py", line 117, in analyze malware_file.link_to(sha256_data, "sha256", self.name)
File "/app/core/database_arango.py", line 483, in link_to neighbors = list(self._db.aql.execute(aql, bind_vars=args))
 [TRUNCATED UNIMPORTANT PART]
arango.exceptions.AQLQueryExecuteError: [HTTP 400][ERR 1521] AQL: collection not known to traversal: 'observables'. please add  'WITH observables' as the first line in your AQL (while executing)

@tomchop tomchop merged commit 68c6e8b into yeti-platform:main Oct 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants