Skip to content
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

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

mapleFU
Copy link
Member

@mapleFU mapleFU commented Oct 7, 2023

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

@mapleFU mapleFU requested a review from wgtmac as a code owner October 7, 2023 15:32
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

⚠️ GitHub issue #38117 has been automatically assigned in GitHub to PR creator.

~DictEncoderImpl() override {
#ifndef NDEBUG
if (!buffered_indices_.empty()) {
ARROW_LOG(WARNING) << "DictEncoderImpl destroyed without flushing or closing";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ARROW_LOG(WARNING) << "DictEncoderImpl destroyed without flushing or closing";
ARROW_LOG(WARNING) << "DictEncoderImpl is destroyed without flushing or closing";

Copy link
Member

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.

Copy link
Member Author

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

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 7, 2023
@pitrou
Copy link
Member

pitrou commented Oct 18, 2023

I think we can just remove the check/warning. It does not seem very useful, and other encoders don't have it.

@mapleFU
Copy link
Member Author

mapleFU commented Oct 19, 2023

@pitrou removed now.

@pitrou pitrou merged commit 02ad5ae into apache:main Oct 19, 2023
31 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Oct 19, 2023
@pitrou
Copy link
Member

pitrou commented Oct 19, 2023

Oops, I should have changed the PR title before merging...

@mapleFU
Copy link
Member Author

mapleFU commented Oct 19, 2023

My bad... So sorry for fotget changing the title.

@conbench-apache-arrow
Copy link

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.

JerAguilon pushed a commit to JerAguilon/arrow that referenced this pull request Oct 23, 2023
…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]>
loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…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]>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++][Parquet] Debug Build might fail in DictEncoder dtor checking
3 participants