[bug](avro) fix avro jni reader coredump with nullptr#64699
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
/review |
|
Codex automated review failed and did not complete. Error: You've hit your usage limit. Visit https://chatgpt.com/codex/settings/usage to purchase more credits or try again at 11:44 AM. Please inspect the workflow logs and rerun the review after the underlying issue is resolved. |
|
/review |
There was a problem hiding this comment.
Automated review completed for PR 64699.
Summary opinion: I found no substantiated blocking issue in this PR. The patch only guards insertion of time_zone in JniConnector::open() when RuntimeState* is null. The null-state path is the Avro schema-only reader, whose constructor sets _is_table_schema; Java Avro schema parsing does not consume time_zone, and normal scan paths still call open(_state, _profile) with a non-null state.
Critical checkpoints:
- Changed files: GitHub and local diff both report only
be/src/exec/connector/jni_connector.cpp. - Existing review context: no existing inline review comments or replies were present.
- Duplicate suppression: no prior inline thread or ledger candidate covered an issue requiring suppression.
- Correctness: no evidence of changed scan semantics outside the null-state Avro schema-fetch crash path.
- Session/config propagation: normal JNI scan paths still receive
time_zone; schema-only Avro parsing does not require it. - Tests/style:
git diff --checkon the changed file passed. I did not run a full build or regression suite because the patch is a narrow null guard.
Subagent conclusions:
optimizer-rewrite: no candidate found; convergence round 1 returnedNO_NEW_VALUABLE_FINDINGS.tests-session-config: no candidate found; convergence round 1 returnedNO_NEW_VALUABLE_FINDINGS.- No subagent candidates became inline comments, and none were dismissed as duplicates. Main dismissals are recorded in
.code-review.r4svrC/subagent_review_findings.md.
User focus: no additional user-provided review focus was supplied.
Review instruction note: no repository-local SKILL.md code-review skill was present in this checkout, so the review followed the supplied .code-review.r4svrC/review_prompt.txt instructions and repository evidence.
|
run buildall |
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
What problem does this PR solve?
Problem Summary:
when fetch_table_schema call by FE rpc, will not pass runtime state object, so it's nullptr.
master branch have been refactor so it's no problem.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)