Skip to content

Commit

Permalink
Make the GpuTimeZoneDB class idempotent, such that when it is shutdow…
Browse files Browse the repository at this point in the history
…n, it can be recovered and useable again (#1670)
  • Loading branch information
NVnavkumar authored Jan 2, 2024
1 parent 38e503c commit 4358580
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/nvidia/spark/rapids/jni/GpuTimeZoneDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public Thread newThread(Runnable r) {
public static void shutdown() {
if (instance.isLoaded()) {
instance.close();
// Recreate a new instance to reload the database if necessary
instance = new GpuTimeZoneDB();
}
}

Expand Down

0 comments on commit 4358580

Please sign in to comment.