Skip to content

Commit

Permalink
Do not catch exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gibchikafa committed Jul 10, 2024
1 parent 4bf3396 commit 3186e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,11 +1100,7 @@ protected String makeQueryName(String queryName, FeatureGroupBase featureGroup)

public void closeSparkSession() {
if (getSparkSession() != null) {
try {
getSparkSession().stop();
} catch (Exception e) {
// No-OP
}
getSparkSession().stop();
}
}
}
5 changes: 1 addition & 4 deletions utils/python/hsfs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,4 @@ def parse_isoformat_date(da: str) -> datetime:
run_feature_monitoring(job_conf)

if spark is not None:
try:
spark.stop()
except Exception as e:
pass
spark.stop()

0 comments on commit 3186e1a

Please sign in to comment.