You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "JackieTien97 (via GitHub)" <gi...@apache.org> on 2026/08/06 09:08:04 UTC
[PR] [To dev/1.3] Reduce query execution warning log size [iotdb]
JackieTien97 opened a new pull request, #18415:
URL: https://github.com/apache/iotdb/pull/18415
## Description
This PR reduces excessive WARN log output when query execution fails for expected reasons.
- Classify expected query exceptions in `AbstractDriverThread`, following the behavior on `master`.
- Do not emit `[ExecuteFailed]` WARN stack traces for memory exhaustion, IoTDB business exceptions, or date parsing errors.
- Preserve WARN stack traces for unexpected internal errors and log their root causes.
- Replace the complete TVList `dataTypes` list in memory-reservation warnings with `dataTypeCount`.
- Add unit tests for exception classification and abort-cause mapping.
## Root cause
`ResourceByPathUtils` printed every data type in an aligned TVList. A 5,000-column aligned series therefore generated a warning of roughly 35 KB for each memory-reservation failure. The same expected failure was then caught by `AbstractDriverThread`, which emitted another `[ExecuteFailed]` WARN with a full stack trace.
Under sustained memory pressure, these duplicate and oversized records caused the DataNode WARN log to grow rapidly and added avoidable logging and allocation overhead.
## Impact
Known query failures are still propagated to the query through the existing 1.3 abort-cause interface. The concise TVList memory warning remains available for diagnosis, while duplicate stack traces and unbounded column-list output are removed. Unexpected exceptions continue to produce WARN stack traces.
## Tests
```shell
./mvnw -pl iotdb-core/datanode -am \
-Dtest=AbstractDriverThreadTest \
-DfailIfNoTests=false \
-Dsurefire.failIfNoSpecifiedTests=false test
```
Result: 2 tests passed; reactor build succeeded.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [To dev/1.3] Reduce query execution warning log size [iotdb]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #18415:
URL: https://github.com/apache/iotdb/pull/18415#issuecomment-5204192624
## [Codecov](https://app.codecov.io/gh/apache/iotdb/pull/18415?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `86.66667%` with `2 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 44.33%. Comparing base ([`60b1880`](https://app.codecov.io/gh/apache/iotdb/commit/60b18800b6a892317354d46fe5b013dbc9bc0629?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`648028d`](https://app.codecov.io/gh/apache/iotdb/commit/648028d938eac42162bf2e64d9833d09b806b27a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
| [Files with missing lines](https://app.codecov.io/gh/apache/iotdb/pull/18415?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...ngine/execution/schedule/AbstractDriverThread.java](https://app.codecov.io/gh/apache/iotdb/pull/18415?src=pr&el=tree&filepath=iotdb-core%2Fdatanode%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fiotdb%2Fdb%2Fqueryengine%2Fexecution%2Fschedule%2FAbstractDriverThread.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aW90ZGItY29yZS9kYXRhbm9kZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaW90ZGIvZGIvcXVlcnllbmdpbmUvZXhlY3V0aW9uL3NjaGVkdWxlL0Fic3RyYWN0RHJpdmVyVGhyZWFkLmphdmE=) | 88.88% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/iotdb/pull/18415?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...engine/schemaregion/utils/ResourceByPathUtils.java](https://app.codecov.io/gh/apache/iotdb/pull/18415?src=pr&el=tree&filepath=iotdb-core%2Fdatanode%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fiotdb%2Fdb%2Fschemaengine%2Fschemaregion%2Futils%2FResourceByPathUtils.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aW90ZGItY29yZS9kYXRhbm9kZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaW90ZGIvZGIvc2NoZW1hZW5naW5lL3NjaGVtYXJlZ2lvbi91dGlscy9SZXNvdXJjZUJ5UGF0aFV0aWxzLmphdmE=) | 83.33% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/iotdb/pull/18415?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## dev/1.3 #18415 +/- ##
=============================================
- Coverage 44.33% 44.33% -0.01%
Complexity 198 198
=============================================
Files 3634 3634
Lines 245828 245838 +10
Branches 30139 30141 +2
=============================================
Hits 108984 108984
- Misses 136844 136854 +10
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/iotdb/pull/18415?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [To dev/1.3] Reduce query execution warning log size [iotdb]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 merged PR #18415:
URL: https://github.com/apache/iotdb/pull/18415
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org