-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-38117: [C++][Parquet] Change DictEncoder dtor checking to warning log #38118
GH-38117: [C++][Parquet] Change DictEncoder dtor checking to warning log #38118
Conversation
|
536bb89
to
9b77ec6
Compare
cpp/src/parquet/encoding.cc
Outdated
~DictEncoderImpl() override { | ||
#ifndef NDEBUG | ||
if (!buffered_indices_.empty()) { | ||
ARROW_LOG(WARNING) << "DictEncoderImpl destroyed without flushing or closing"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARROW_LOG(WARNING) << "DictEncoderImpl destroyed without flushing or closing"; | |
ARROW_LOG(WARNING) << "DictEncoderImpl is destroyed without flushing or closing"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, the behavior has changed under debug mode, which calls abort() in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason is described here: #38117
I think we can just remove the check/warning. It does not seem very useful, and other encoders don't have it. |
@pitrou removed now. |
Oops, I should have changed the PR title before merging... |
My bad... So sorry for fotget changing the title. |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 02ad5ae. There were 5 benchmark results indicating a performance regression:
The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
…rning log (apache#38118) ### Rationale for this change This is a minor change, just change `DCHECK` to warning log. ### What changes are included in this PR? change `DCHECK` to warning log. ### Are these changes tested? no, I don't know how to test this, any idea is welcome. ### Are there any user-facing changes? no * Closes: apache#38117 Authored-by: mwish <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
…rning log (apache#38118) ### Rationale for this change This is a minor change, just change `DCHECK` to warning log. ### What changes are included in this PR? change `DCHECK` to warning log. ### Are these changes tested? no, I don't know how to test this, any idea is welcome. ### Are there any user-facing changes? no * Closes: apache#38117 Authored-by: mwish <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
…rning log (apache#38118) ### Rationale for this change This is a minor change, just change `DCHECK` to warning log. ### What changes are included in this PR? change `DCHECK` to warning log. ### Are these changes tested? no, I don't know how to test this, any idea is welcome. ### Are there any user-facing changes? no * Closes: apache#38117 Authored-by: mwish <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
Rationale for this change
This is a minor change, just change
DCHECK
to warning log.What changes are included in this PR?
change
DCHECK
to warning log.Are these changes tested?
no, I don't know how to test this, any idea is welcome.
Are there any user-facing changes?
no
DictEncoder
dtor checking #38117