10000 Bug fix/print on violated block ordering by mchacki · Pull Request #21743 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Bug fix/print on violated block ordering #21743

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 8 commits into from
May 2, 2025

Conversation

mchacki
Copy link
Member
@mchacki mchacki commented Apr 30, 2025

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:

@cla-bot cla-bot bot added the cla-signed label Apr 30, 2025
@mchacki mchacki self-assigned this Apr 30, 2025
Comment on lines 295 to 297
for (auto it2 = _blocks.rbegin(); it2 != _blocks.rend(); ++it2) {
LOG_TOPIC("a6c2d", WARN, Logger::AQL) << (*it2)->printBlockAndDependenciesInfo();
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe print this only once, even if multiple blocks violate the assumption?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed!

// We have a dependency that has already been seen, we need to log this
// situation in theory this could lead to deadlocks. Some Blocks are
// fine we just want to see those here.
// Gather Nodes are known to violate this, but they are safe.
10000
Copy link
Member

Choose a reason for hiding this comment

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

Should we not do the warning for gather nodes then, to not spam the log with warnings?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would like to point you to the following line:

seenDependency != nullptr && block->getPlanNode()->getType() != ExecutionNode::GATHER) {

;)

Copy link
Member
@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

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

LGTM

mchacki and others added 4 commits April 30, 2025 15:08
…starting async tasks although we already stopped them
* sleeping barber in SharedQueryState

* double entry in change log

* Add oskar branch parameter to CircleCI

* disable vector index on ARM for now, faiss is known to be crashy now. (#21718)

* disable vector index on ARM for now, faiss is known to be crashy now.

* lint

* lint

* disable on ARM

* disable on ARM

---------

Co-authored-by: Vadim Kondratev <vadim@arangodb.com>
Co-authored-by: Wilfried Goesgens <willi@arangodb.com>
Copy link
Member
@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

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

LGTM

@neunhoef neunhoef marked this pull request as ready for review May 2, 2025 10:52
@neunhoef neunhoef merged commit ab24ca0 into 3.12.4 May 2, 2025
7 checks passed
@neunhoef neunhoef deleted the bug-fix/print-on-violated-block-ordering branch May 2, 2025 11:02
@KVS85 KVS85 added this to the 3.12.4.4 milestone May 2, 2025
mchacki added a commit that referenced this pull request May 19, 2025
* 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>
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.

5 participants
0