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 error handling for when two instances of hlink try to point to the same database #28

Open
riley-harper opened this issue Aug 2, 2022 · 0 comments

Comments

@riley-harper
Copy link
Contributor

When two instances of hlink try to load data from the same database, a huge error is printed by Spark. One of the important lines printed looks like

ERROR XSDB6: Another instance of Derby may have already booted the database <database_path>

With Spark 2, I was able to catch the Python exception that's thrown and print a more useful error message, but the huge JVM stack trace was still printed. In Spark 3, I think that we can set the spark.sql.pyspark.jvmStacktrace.enabled configuration option to prevent Spark from printing these stack traces. This may have an effect on other places where we get large JVM stack traces too.

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

No branches or pull requests

1 participant