dongjoon-hyun commented on code in PR #44130:
URL: https://github.com/apache/spark/pull/44130#discussion_r1413219085
##########
core/src/test/scala/org/apache/spark/deploy/master/PersistenceEngineBenchmark.scala:
##########
@@ -124,6 +134,35 @@ object PersistenceEngineBenchmark extends BenchmarkBase {
workerInfo
}
+ private def createDriverInfo(id: Int): DriverInfo = {
+ val now = System.currentTimeMillis()
+ val date = new Date(now)
+ new DriverInfo(now, f"driver-20240101000000-$id%04d", DriverDescription(
+ jarUrl = "local:///opt/spark/examples/jars/spark-examples.jar",
+ mem = 1024,
+ cores = 1,
+ supervise = false,
+ command = DeployTestUtils.createDriverCommand()
+ ), date)
+ }
+
+ private def createApplicationInfo(id: Int): ApplicationInfo = {
+ val now = System.currentTimeMillis()
+ val submitDate = new Date(now)
+ val customResources = Map(
+ GPU -> 3,
Review Comment:
Yes, this benchmark is trying to populate the filled data instead of empty
classes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]