Closed evidanary closed 10 years ago
@yash-ranadive Thank you for the contribution! What you implemented was exactly how I was initially going to do it.
However, after giving it some thought, there's a problem with how FileRotationPolicy
s work with respect to time. If you have a slow data source (i.e. you only get tuples every now and then), the file rotation may not occur at the intended time (since it is triggered by the arrival of a tuple).
So I implemented it a little bit differently, in a way that doesn't rely on the arrival of a tuple to trigger the rotation.
I'm going to close this PR, but thank you for taking the time to contribute!
Great! How did you implement it? When can we see it merged?
With a dirty use of instanceof. ;)
I also added some synchronization since the rotation could be triggered in a different thread.
Check the latest commit.
This is my first time contributing to an open source project. Please do let me know if something seems off.