dongjoon-hyun opened a new pull request #29979:
URL: https://github.com/apache/spark/pull/29979


   ### What changes were proposed in this pull request?
   
   This PR aims to use `LinkedHashMap` instead of `Map` for 
`newlyCreatedExecutors`.
   
   ### Why are the changes needed?
   
   This makes INFO/DEBUG messages more readable.
   
   **BEFORE**
   ```
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 8 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 2 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 5 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 4 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 7 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 10 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 9 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 3 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 DEBUG ExecutorPodsAllocator: Executor with id 6 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:24:21 INFO ExecutorPodsAllocator: Deleting 9 excess pod requests 
(5,10,6,9,2,7,3,8,4).
   ```
   
   **AFTER**
   ```
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 2 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 3 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 4 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 5 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 6 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 7 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 8 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 9 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 DEBUG ExecutorPodsAllocator: Executor with id 10 was not 
found in the Kubernetes cluster since it was created 0 milliseconds ago.
   20/10/08 10:25:17 INFO ExecutorPodsAllocator: Deleting 9 excess pod requests 
(2,3,4,5,6,7,8,9,10).
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Pass the CI or `build/sbt -Pkubernetes "kubernetes/test"`


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

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