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 output streams and channels loudly when creating segments. #1685

Merged
merged 1 commit into from
Aug 29, 2015

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Aug 29, 2015

CloseQuietly can suppress errors when closing streams that indicate the file
was not actually written properly.

try {
fileOutputStream = new FileOutputStream(indexFile);
channel = fileOutputStream.getChannel();
try (FileOutputStream fileOutputStream = new FileOutputStream(indexFile);
Copy link
Contributor

Choose a reason for hiding this comment

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

I did not know you could do that

@drcrallen
Copy link
Contributor

I LIKE THIS PR

👍

@drcrallen
Copy link
Contributor

omg it actually did it. I did not expect <h1> tags to work in the comments

@gianm
Copy link
Contributor Author

gianm commented Aug 29, 2015

LOUD NOISES!

@drcrallen
Copy link
Contributor

DruidCoordinatorTest.testCoordinatorRun:328 » test timed out after 1500 milli... travis failure unrelated?

that's a new one

@gianm
Copy link
Contributor Author

gianm commented Aug 29, 2015

I can't see how that would be related

@gianm gianm closed this Aug 29, 2015
@gianm gianm reopened this Aug 29, 2015
@himanshug
Copy link
Contributor

LGTM

@gianm gianm closed this Aug 29, 2015
@gianm gianm reopened this Aug 29, 2015
@gianm gianm closed this Aug 29, 2015
@gianm gianm reopened this Aug 29, 2015
himanshug added a commit that referenced this pull request Aug 29, 2015
Close output streams and channels loudly when creating segments.
@himanshug himanshug merged commit 04ff6cd into apache:master Aug 29, 2015
@gianm gianm deleted the close-loudly branch September 23, 2022 19:21
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