Skip to content

Conversation

@ph
Copy link
Contributor

@ph ph commented Aug 25, 2015

Multiple threads were accessing the tempfile when we were trying to
shutdown the pipeline. This issues was the cause of a non deterministic
test for testing the file rotation.

Fixes #23

Multiple threads were accessing the tempfile when we were trying to shutdown the pipeline. This issues was the cause of a non deterministic test for testing the file rotation. Fixes #23
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This initialization wasn't need to actually test the move_file_to_bucket.

@ph
Copy link
Contributor Author

ph commented Aug 25, 2015

@purbon The spec added to test the synchronization issue when doing a file rotation wasn't shutting down the pipeline cleanly. I have discovered that the #teardown method wasn't using synchronization when trying to close the file.

@ph
Copy link
Contributor Author

ph commented Aug 25, 2015

Would you mind reviewing this?

@ph
Copy link
Contributor Author

ph commented Sep 1, 2015

@purbon I have fixed the failling test, can you review the changes?

@purbon
Copy link

purbon commented Sep 2, 2015

@ph code looks good to me. If I understand the issue properly, test are supposed to catch also the synchronization issue now, right?

@ph
Copy link
Contributor Author

ph commented Sep 2, 2015

Yes they are catching it, I did a 100 iterations run and I did not get any more error.

@purbon
Copy link

purbon commented Sep 2, 2015

++ go for it LGTM

@elasticsearch-bot
Copy link

Merged sucessfully into master!

@ph ph closed this in 6b63cce Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants