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

Reuse spring classloader for failsafe scheduler threads #1252

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

buzzlighty
Copy link
Contributor

Contributes to #953

Description

Fix PreserveContextClassLoaderTaskDecorator in order to set a class loader from invoking thread to a runner thread.

Motivation and Context

Previously this task decorator has been created to resolve above mentioned issue. However there's a bug in this task decorator which prevents it from working as expected. The code in labmda should assign class loader to runner thread but it was assigning it to invoking thread, which does not make sense as it's the same thread which the class loader is being obtained from.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@fatroom
Copy link
Member

fatroom commented Mar 29, 2022

@buzzlighty can you please rebase on master to get the build passing?

@buzzlighty
Copy link
Contributor Author

@fatroom sure, can you have another look please?

@fatroom
Copy link
Member

fatroom commented Mar 30, 2022

@buzzlighty will do today

@fatroom
Copy link
Member

fatroom commented Mar 31, 2022

👍

@fatroom fatroom merged commit 47f7bcc into zalando:main Mar 31, 2022
@fatroom
Copy link
Member

fatroom commented Mar 31, 2022

Thank you for your contribution, included in release 3.2.1

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