LuciferYang commented on code in PR #43783:
URL: https://github.com/apache/spark/pull/43783#discussion_r1391012993


##########
core/src/main/scala/org/apache/spark/executor/ProcfsMetricsGetter.scala:
##########
@@ -47,7 +46,7 @@ private[spark] class ProcfsMetricsGetter(procfsDir: String = 
"/proc/") extends L
   private val testing = Utils.isTesting
   private val pageSize = computePageSize()
   private var isAvailable: Boolean = isProcfsAvailable
-  private val pid = computePid()
+  private val pid = ProcessHandle.current()

Review Comment:
   nit: Perhaps this variable should be renamed.
   
   



-- 
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]

Reply via email to