Skip to content

Adding resource monitors to MERGE and COLLECT methods #21899

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

Draft
wants to merge 22 commits into
base: devel
Choose a base branch
from

Conversation

knakatasf
Copy link

Scope & Purpose

Adding resource monitors (specifically ResourceUsageScope) to MERGE and COLLECT methods to throw the exception when their performance exceeds a memory usage limit.

MERGE

  • Added ResourceUsageScope to ExecutorExpressionContext.
  • Added increaseMemoryUsage() logic to mergeParameters() method of ObjectFunctions.cpp.
  • Added testing functions to aql-memory-limit.js
  • Need to investigate how to pass the memory usage that MERGE used to AqlItemBlock.

COLLECT

  • Added ResourceUsageScope to SortedCollectExecutor.

  • Added ResourceUsageScope to one of the Aggregators.

  • Need to add the scope to other aggregators.

  • Need to add testing functions of this functionality.

  • 💩 Bugfix

  • 🍕 New feature

  • 🔥 Performance improvement

  • 🔨 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 📖 CHANGELOG entry made
  • 📚 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.12.0: (Please link PR)
    • Backport for 3.11: (Please link PR)
    • Backport for 3.10: (Please link PR)

Related Information

  • Docs PR:
  • Enterprise PR:
  • GitHub issue / Jira ticket:
  • Design document:

@cla-bot cla-bot bot added the cla-signed label Aug 1, 2025
@knakatasf knakatasf force-pushed the feature/merge-resource-monitor branch from 8cc0119 to 64c2c45 Compare August 7, 2025 00:23
@cpjulia cpjulia force-pushed the feature/merge-resource-monitor branch from 64c2c45 to 4f64c8e Compare August 7, 2025 14:31
@knakatasf knakatasf force-pushed the feature/merge-resource-monitor branch from 4f64c8e to 64c2c45 Compare August 7, 2025 16:58
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.

2 participants