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

improve shutdown impl to work on java 17+ #163

Merged
merged 1 commit into from Jul 21, 2022

Conversation

pwinckles
Copy link
Contributor

What this does

When I originally wrote the code that shutsdown the executor, I used reflection to get the info necessary to save the tasks that hadn't been processed. This will not work in Java 17+. This PR reworks the shutdown to no longer require reflection.

How to test

Start an export and abort it while it's still running using ctrl+c. Then, verify the inflight tasks were logged.

Copy link
Contributor

@dbernstein dbernstein left a comment

Choose a reason for hiding this comment

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

The code looks good and builds locally. There is a problem with the CI build but that appears to be related to the fact that this project is still on Travis and needs to be migrated to github actions. I'll create a ticket for that and once I've confirmed all is well locally I will merge. Thank you @pwinckles !

@dbernstein dbernstein merged commit 121f78a into fcrepo-exts:main Jul 21, 2022
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.

None yet

2 participants