-
Notifications
You must be signed in to change notification settings - Fork 240
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
Update timezone test framework to support both GPU and CPU POC #9739
Changes from 2 commits
1fed95a
bb3e8e0
9220316
ff64818
8811320
bace77f
e005508
8dd1ead
4fbd07b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,14 @@ package com.nvidia.spark.rapids | |
import java.lang.reflect.InvocationTargetException | ||
import java.time.ZoneId | ||
import java.util.Properties | ||
|
||
import scala.collection.JavaConverters._ | ||
import scala.sys.process._ | ||
import scala.util.Try | ||
|
||
import ai.rapids.cudf.{Cuda, CudaException, CudaFatalException, CudfException, MemoryCleaner} | ||
import com.nvidia.spark.rapids.filecache.{FileCache, FileCacheLocalityManager, FileCacheLocalityMsg} | ||
import com.nvidia.spark.rapids.jni.GpuTimeZoneDB | ||
import com.nvidia.spark.rapids.python.PythonWorkerSemaphore | ||
import org.apache.commons.lang3.exception.ExceptionUtils | ||
|
||
import org.apache.spark.{ExceptionFailure, SparkConf, SparkContext, TaskFailedReason} | ||
import org.apache.spark.api.plugin.{DriverPlugin, ExecutorPlugin, PluginContext, SparkPlugin} | ||
import org.apache.spark.internal.Logging | ||
|
@@ -381,6 +379,7 @@ class RapidsExecutorPlugin extends ExecutorPlugin with Logging { | |
s"Driver timezone is $driverTimezone and executor timezone is " + | ||
s"$executorTimezone. Set executor timezone to $driverTimezone.") | ||
} | ||
GpuTimeZoneDB.cacheDatabase() | ||
} | ||
|
||
GpuCoreDumpHandler.executorInit(conf, pluginContext) | ||
|
@@ -503,6 +502,7 @@ class RapidsExecutorPlugin extends ExecutorPlugin with Logging { | |
} | ||
|
||
override def shutdown(): Unit = { | ||
GpuTimeZoneDB.shutdown() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the more of these shutdown calls we have the higher is the risk that one of them will throw and leave the remaining ones up. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Understood. FWIW, See NVIDIA/spark-rapids-jni#1553 and There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
GpuSemaphore.shutdown() | ||
PythonWorkerSemaphore.shutdown() | ||
GpuDeviceManager.shutdown() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it seems
initTimezoneDB()
is a more proper name comparing tocacheDatabase
.