Skip to content

Conversation

@joerghoh
Copy link
Contributor

No description provided.

@github-actions
Copy link

Commit-Check ✔️

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
51.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Copy link
Member

@thomasmueller thomasmueller left a comment

Choose a reason for hiding this comment

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

This is more a question:

We already log warnings if a query reads many nodes. What is different is:

  • (A) in the current code (without the PR), warnings are logged when reading many entries from the index / from the node store
  • (B) in this PR, warnings are logged while iterating over the results

It is possible that we see warnings from (A) but not from (B) for queries that don't have a proper index. Additionally, if many of the results are not accessible (missing access rights). Also, if a query has unindexed "order by" and only the first few entries are read.

So, I wonder, were you aware that we already log warnings in (A)? If yes, I do not see this information in the Jira issue. It would be good to add. Or maybe it is not working?

Then, having two kinds of warnings might possibly be a bit confusing? For me it's OK.

@joerghoh
Copy link
Contributor Author

@thomasmueller I am aware of the warnings, when many nodes are read during a query (for whatever reason); these warnings are useful, as they indicate a slowness, but just from looking at them it's normally unclear why that many nodes are read.

This PR adds logs for one of those cases (reading many results).

joerghoh and others added 2 commits December 22, 2025 16:20
…yResultDebugIterator.java


PR feedback

Co-authored-by: Thomas Mueller <thomasm@apache.org>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

3 participants