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.
| 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.
IIUC, the behavior has changed under debug mode, which calls abort() in the past.
|
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]>
Rationale for this change
This is a minor change, just change
DCHECKto warning log.What changes are included in this PR?
change
DCHECKto 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
DictEncoderdtor checking #38117