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 for https://github.com/wso2/streaming-integrator/issues/165 #118

Merged
merged 8 commits into from
Feb 17, 2021

Conversation

this.scheduledFuture = siddhiAppContext.getScheduledExecutorService().
scheduleAtFixedRate(fileSourcePoller, 0, 1, TimeUnit.SECONDS);
}
if (isTailingEnabled && fileSourceConfiguration.getFileServerConnector() != null) {
Copy link
Member

Choose a reason for hiding this comment

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

If tailing disabled, and if its a large file which will take time more than the persisting interval, the file processing may stop. Isnt it?
Shall we use filePointer and resolve that issue?
This may affect for the files that will be processing in a given dir.uri as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Ramindu,
In the existing pause() method, the file processing thread is not stopped which is the reason why I thought that there is nothing to resume in the resume() method, assuming that the file will be processed anyway. But let's check this further, to make sure that happens. I have created a separate issue to track this particular issue: #120.

Thanks

dilini-muthumala and others added 5 commits January 13, 2021 23:02
Resolves following issues in file:move():
'include.by.regexp' and 'exclude.root.dir' parameters in file:move() are not dynamic
When 'exclude.root.dir' parameter is set to true, the destination path does not get created correctly
When four parameters are given, the regex is always set to ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants