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

Delete staged resources if batch manually set to "NE" to recreate batch #39

Closed
wants to merge 1 commit into from

Conversation

woehrl01
Copy link
Contributor

This PR leads to recreating the staged resources if a batch is manually set to "NE". This is required as according to the documentation you have to wait either until the resource times out or you have to clear the staged area, if you manually adjust the batch content on conflict or error.

After modifying the batch you will have to clear the Staging Area manually or wait for the staged version of the batch to timeout and clear itself.

With this change you can fully control the resolving scenario via sql, without having to additionally log into the application server and manually delete the file or even have to restart the service.

Additionally it ensures that any new batch is really extracted and cannot be hijacked with a random file.

Copy link
Contributor

@mmichalek mmichalek left a comment

Choose a reason for hiding this comment

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

These changes have been committed and added to the issue tracker as: 0003275: Allow users to reset batch status to NE to force re-extraction of a batch. Thank you for your PR!!!

@mmichalek mmichalek closed this Oct 10, 2017
@chenson42
Copy link
Contributor

This causes batch corruption issues for common batches. This needs to be backed out for 3.8 and maybe a new flag can be added to force re-extraction for 3.9.

@woehrl01
Copy link
Contributor Author

If you are happy with a new flag/column, I'll create a new PR. Sorry for any inconvenience!

@chenson42
Copy link
Contributor

That would be great. Can you do it on the 3.9 branch? We are going to release that in the next several weeks.

@woehrl01
Copy link
Contributor Author

Absolutely! Will do tomorrow! 👍

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