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

Make AppRunner recreate AppContext on every run #208

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

jirifilip
Copy link
Collaborator

We hit some issues on Databricks where, if we run a Pramen job repeatedly on an all-purpose cluster or in a notebook, the AppContext gets created only once. In the AppContext creation process, metastore config is parsed and configured. Thus, if we change the metastore config between runs on an all-purpose cluster, it has no effect on the pipeline run, since Pramen will be using an already created AppContext from the JVM process (with old metastore table definitions).

So far did not remove any dead code (AppContextFactory and its tests) in case we would like to use it in the future.

@github-actions
Copy link

github-actions bot commented Jun 12, 2023

Unit Test Coverage

File Coverage [73.7%]
AppRunner.scala 73.7%
Total Project Coverage 78.7% 🍏

Copy link
Collaborator

@yruslan yruslan left a comment

Choose a reason for hiding this comment

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

Makes perfect sense!

Btw, you can ignore Jacoco warnings, especially for this class, and you can merge as is.

@jirifilip jirifilip marked this pull request as ready for review June 12, 2023 09:49
@jirifilip jirifilip merged commit e208a20 into main Jun 12, 2023
@jirifilip jirifilip deleted the bug_fix/make-app-context-local branch June 12, 2023 09:49
@yruslan yruslan mentioned this pull request Jun 19, 2023
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.

2 participants