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

Close streams when Managed* classes are deleted #76

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

Frassle
Copy link
Contributor

@Frassle Frassle commented Nov 5, 2019

Add "leaveOpen" parameter to opt out of this (same parameter name as
StreamWriter/Reader).

Add "leaveOpen" parameter to opt out of this (same parameter name as
StreamWriter/Reader).
herebebeasties
herebebeasties previously approved these changes Nov 7, 2019
@@ -34,6 +35,10 @@ class ManagedOutputStream final : public arrow::io::OutputStream

~ManagedOutputStream()
{
arrow::Status st = this->Close();
if (!st.ok()) {
ARROW_LOG(FATAL) << "Error ignored when destroying ManagedOutputStream: " << st;

Choose a reason for hiding this comment

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

Should this be FATAL if it's ignored and we carry on regardless? ERROR perhaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it should be ERROR.

@GPSnoopy
Copy link
Contributor

GPSnoopy commented Nov 7, 2019

I'll have some time to work on ParquetSharp end of next week. We've got a PR update to vcpkg Arrow that has been accepted, the latest releases of Arrow fixes quite a few Parquet bugs.

@GPSnoopy GPSnoopy self-assigned this Nov 7, 2019
@GPSnoopy GPSnoopy changed the base branch from master to Arrow-0.15.1 November 12, 2019 17:43
@GPSnoopy GPSnoopy merged commit f20c58d into G-Research:Arrow-0.15.1 Nov 12, 2019
@GPSnoopy GPSnoopy mentioned this pull request Nov 12, 2019
@GPSnoopy
Copy link
Contributor

Being merged into master as part of PR #77. Nuget package already built: https://www.nuget.org/packages/ParquetSharp/2.0.2-beta2

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.

3 participants