[GitHub] [spark] panbingkun commented on a diff in pull request #41218: [SPARK-43576][CORE] Remove unused declarations from Core module

2023-05-25 Thread via GitHub


panbingkun commented on code in PR #41218:
URL: https://github.com/apache/spark/pull/41218#discussion_r1206196456


##
core/src/main/resources/org/apache/spark/ui/static/executorspage.js:
##
@@ -126,7 +126,6 @@ function totalDurationAlpha(totalGCTime, totalDuration) {
 (Math.min(totalGCTime / totalDuration + 0.5, 1)) : 1;
 }
 
-// When GCTimePercent is edited change ToolTips.TASK_TIME to match

Review Comment:
   ToolTips.TASK_TIME - Shaded red when garbage collection (GC) time is over 
10% of task time
   
   - Adding this variable for the first time
   CommitID: c037d25482ea63430fb42bfd86124c268be5a4a4 
   JIRA: https://issues.apache.org/jira/browse/SPARK-12149
   [SPARK-12149][WEB UI] Executor UI improvement suggestions - Color UI
   PR: https://github.com/apache/spark/pull/10154
   First 
declaration:https://github.com/apache/spark/pull/10154/files#diff-91f8d288f7aa0726fc067ad9eb67aff41c474ada4d702e5b393bd81ae5aee7b5R91-R92
   First 
use:https://github.com/apache/spark/pull/10154/files#diff-3bb7f9962a6343cbc09be474b85f2f9ed2e80047f4863d447faa407d925f425cR82
   
   
   - The variable content is directly hard coding in 
`executorspage-template.html` file
   CommitID: b9bab4dcf6cec5ec9e9860871f9dd1ec633a1d22
   JIRA: https://issues.apache.org/jira/browse/SPARK-15951
   [SPARK-15951] Change Executors Page to use datatables to support sorting 
columns and searching
   PR: https://github.com/apache/spark/pull/13670
   The variable content is directly hard coding: 
https://github.com/apache/spark/pull/13670/files#diff-cc6993f75c03b53bb41d8d7113ed3d5157580e583672da68b15cbe4d9f374e15R36
   Delete: 
https://github.com/apache/spark/pull/13670/files#diff-3bb7f9962a6343cbc09be474b85f2f9ed2e80047f4863d447faa407d925f425cL94
   
   
   **So I think it needs to be removed; Meanwhile, I did not find any usage in 
the `spark` code base using the following command: find . -name "*" -type file 
-print0 | xargs -0 grep "TASK_TIME"**
   
   



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] panbingkun commented on a diff in pull request #41218: [SPARK-43576][CORE] Remove unused declarations from Core module

2023-05-18 Thread via GitHub


panbingkun commented on code in PR #41218:
URL: https://github.com/apache/spark/pull/41218#discussion_r1198432812


##
core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala:
##
@@ -128,8 +128,6 @@ class HadoopRDD[K, V](
 
   protected val jobConfCacheKey: String = "rdd_%d_job_conf".format(id)
 
-  protected val inputFormatCacheKey: String = "rdd_%d_input_format".format(id)

Review Comment:
   Ok, Let's reserve it.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org