-
Notifications
You must be signed in to change notification settings - Fork 266
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
Spring Integration SMB Half Upload on Graceful Shutdown #244
Comments
Try to upgrade to the latest I don't think that we can do something on the matter from Spring Integration code base since we fully delegate to the |
That does seem to be the issue. I added the |
Sure! But still: isn't that what would better to discuss with Please, consider to contact with their developers or ask the question on StackOverflow. Our knowledge here is limited with what internals of that library. Thanks for understanding. |
That's fine. I'll see if I can reach out to them. Thanks! |
I have a service that is using spring-integration-smb 1.2.0 to upload zipped documents to a file share. It is also running in Kubernetes. After some investigation, we found that the service is uploading corrupt files as the service is being scaled down. The simple solution was to update to 1.2.1 which partially fixed the issue only now the service is submitting half of the data. More specifically, if the zipped file that's being uploaded contains 10 images it may only upload 5 or 6.
Here is a sample of the client we are using to upload
So in its current form, it is actually better for us not to update to 1.2.1 because this service using Apache Camel routes to route messages from a message broker to the SmbUploadClient. With 1.2.0 it will throw an exception when shutting down mid-upload and not dequeue the message on the broker triggering a retry on a different instance. While 1.2.1 will dequeue the message, not retry the message, and still break things downstream. Any help here would be greatly appreciated.
Steps to repro:
Please let me know if you have different results on the repro steps.
The text was updated successfully, but these errors were encountered: