Skip to content

Add null check when calling catalog.close in SparkTestBase#1529

Merged
rdblue merged 1 commit intoapache:masterfrom
kbendick:fix-npe-calling-catalog-close-in-spark-test-base
Sep 30, 2020
Merged

Add null check when calling catalog.close in SparkTestBase#1529
rdblue merged 1 commit intoapache:masterfrom
kbendick:fix-npe-calling-catalog-close-in-spark-test-base

Conversation

@kbendick
Copy link
Contributor

As pointed out by @RussellSpitzer in his PR https://github.com/apache/iceberg/pull/1525/files, there is the possibility that the catalog is null when the tests are running. This error likely come from killing tests early while debugging, but that's something that probably a good handful of us do in our workflow and this will make the output less verbose.

I've cherry picked this change from his PR, as that PR will likely take much more time to merge in due to its scope and the community can benefit from this fix now.

@rdblue
Copy link
Contributor

rdblue commented Sep 30, 2020

Thanks, @kbendick!

@RussellSpitzer
Copy link
Member

Thanks for taking care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants