Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Forward port for: print on violated block ordering (#21743)#21773

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mchacki wants to merge1 commit intodevel
base:devel
Choose a base branch
Loading
frombug-fix-devel/print-on-violated-block-ordering

Conversation

mchacki
Copy link
Member

Scope & Purpose

This PR adds more visibility into a violated assumptions. The cleanup of AQL expects Blocks to be in a particular order in the cleanup lists. This PR should add visibility in cases where it is unexpectedly not.

  • 💩 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

(Please reference tickets / specification / other PRs etc)

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

* Added printing for violation of shutdown ordering* Exclude GatherNodes from order violation checks. Added more informative printing* Applied review comment. Also added ALERT. Also print if we are still starting async tasks although we already stopped them---------Co-authored-by: Max Neunhoeffer <max@arangodb.com>
@mchackimchacki self-assigned thisMay 19, 2025
Comment on lines +1058 to +1076
bool hasStoppedAsyncTasks = block->hasStoppedAsyncTasks();
if (hasStoppedAsyncTasks) {
LOG_TOPIC("14d22", WARN, Logger::AQL)
<< "[query#" << block->getQuery().id() << "] ALERT"
<< block->printBlockInfo()
<< " was asked to stop async task. We still start one. "
"This is an allowed rare race.";
}

auto stopGuard =
ScopeGuard([block, hasStoppedAsyncTasks]() noexcept {
if (hasStoppedAsyncTasks) {
LOG_TOPIC("14d21", WARN, Logger::AQL)
<< "[query#" << block->getQuery().id()
<< "] CLEAR ALERT" << block->printBlockInfo()
<< " We completed the task of the aforementioned "
"race. All is fine.";
}
});
Copy link
Member

Choose a reason for hiding this comment

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

These should not be onWARN, but probably onDEBUG.

Copy link
Member

Choose a reason for hiding this comment

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

If they are DEBUG, then we do not see them in production, or?

Copy link
Member

Choose a reason for hiding this comment

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

Unless we increase the log level on deployments of interest. But these aren't messages we generally want to see on WARN, or am I wrong?

Comment on lines +292 to +295
LOG_TOPIC("a6c2b", WARN, Logger::AQL)
<< "ALERT Stopping async tasks for " << block->printBlockInfo()
<< " but have already stopped dependency "
<< seenDependency->printBlockInfo();
Copy link
Member

Choose a reason for hiding this comment

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

I think this could actually be bumped to ERROR.

Copy link
Member

Choose a reason for hiding this comment

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

Fine with me.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@neunhoefneunhoefneunhoef left review comments

@goedderzgoedderzgoedderz left review comments

At least 1 approving review is required to merge this pull request.

Assignees

@mchackimchacki

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mchacki@neunhoef@goedderz

[8]ページ先頭

©2009-2025 Movatter.jp