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

fix: catch filenotfound exception when rollover before upload #103

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

liuyang1520
Copy link
Collaborator

@liuyang1520 liuyang1520 commented Feb 2, 2023

Summary

Issue: #71

  • fix: catch filenotfound exception when rollover before upload

It seems that this issue happens when another thread (coroutine) processes the file and delete it before this one, then it tries to get the file. This issue should rarely happen, and is not easy to reproduce. readEventsContent will list all available files then open one by one with another catch of FileNotFoundException, so we can safely let it execute.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@liuyang1520 liuyang1520 merged commit 80bc1f5 into main Feb 3, 2023
@liuyang1520 liuyang1520 deleted the catch-filenotfound-exception branch February 3, 2023 02:14
github-actions bot pushed a commit that referenced this pull request Feb 3, 2023
## [1.6.1](v1.6.0...v1.6.1) (2023-02-03)

### Bug Fixes

* catch filenotfound exception when rollover before upload ([#103](#103)) ([80bc1f5](80bc1f5))
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

🎉 This PR is included in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants