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

Adding parameters to delay file processing in specific cases #2095

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

ljuillerat
Copy link
Contributor

Purpose

Resolves some use cases where file transfer must be timed out. Especially where file content is not consistent or file not finalized to be retrieved.

Goals

2 additional properties are added to the VFS transport listener to manage:

  • Empty files (boolean to state if they need to be read or not)
  • Files that are not complete and where content is still changing by the time (we can define a value which is telling the check delay in ms). As long as these files are changing, they will not be picked up.

Samples

To ignore empty files, parameter has to be added to listening proxy:
<parameter name="transport.vfs.CheckSizeIgnoreEmpty">true</parameter>

To check if file is still uploading, we have to add this parameter to listening proxy:
<parameter name="transport.vfs.CheckSizeInterval">100</parameter>

@CLAassistant
Copy link

CLAassistant commented Aug 24, 2023

CLA assistant check
All committers have signed the CLA.

@ljuillerat ljuillerat changed the title Feature/wso2 212 Adding parameters to delay file processing in specific cases Aug 24, 2023
@arunans23
Copy link
Member

Thank you for your contribution. It seems this PR has some conflicts. Can you resolve them to merge the PR?

@ljuillerat
Copy link
Contributor Author

Building CI seems failing but for external reasons. Would it be possible to have a look ?

@arunans23 arunans23 merged commit ac4ebd5 into wso2:master Aug 22, 2024
1 of 2 checks passed
@arunans23
Copy link
Member

Thank you for addressing the review comments. Created a doc issue to track the doc changes. wso2/docs-mi#809

shilmyhasan pushed a commit to shilmyhasan/wso2-synapse-1 that referenced this pull request Aug 28, 2024
Remove warn log from consumeAndDiscard method
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.

3 participants