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

ARROW-6525: [C++] Avoid aborting in CloseFromDestructor() #5352

Closed
wants to merge 1 commit into from

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Sep 11, 2019

In release mode, only log an error. Still abort in debug mode to point out
any issue in testing conditions.

cpp/src/arrow/io/interfaces.cc Show resolved Hide resolved
#else
std::stringstream ss;
ss << "When destroying file of type " << file_type << ": " << st.message();
ARROW_LOG(FATAL) << st.WithMessage(ss.str());
Copy link
Member

Choose a reason for hiding this comment

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

(different PR, probably) Seems like WithMessage could benefit from a string builder parameter list like the Status factories'

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps. I'll let you open a JIRA :-)

Copy link
Member

Choose a reason for hiding this comment

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

In release mode, only log an error.  Still abort in debug mode to point out
any issue in testing conditions.
@pitrou
Copy link
Member Author

pitrou commented Sep 12, 2019

Rebased.

@pitrou
Copy link
Member Author

pitrou commented Sep 12, 2019

@pitrou pitrou closed this in d1466ad Sep 12, 2019
@pitrou pitrou deleted the ARROW-6525-close-crash branch September 12, 2019 11:41
pprudhvi pushed a commit to pprudhvi/arrow that referenced this pull request Sep 16, 2019
In release mode, only log an error.  Still abort in debug mode to point out
any issue in testing conditions.

Closes apache#5352 from pitrou/ARROW-6525-close-crash and squashes the following commits:

65c4744 <Antoine Pitrou> ARROW-6525:  Avoid aborting in CloseFromDestructor()

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants