LuciferYang commented on code in PR #50012:
URL: https://github.com/apache/spark/pull/50012#discussion_r1963920510
##########
core/src/test/scala/org/apache/spark/ExecutorAllocationManagerSuite.scala:
##########
@@ -1946,7 +1938,7 @@ private object ExecutorAllocationManagerSuite extends
PrivateMethodTester {
private def numExecutorsToAdd(
manager: ExecutorAllocationManager,
rp: ResourceProfile): Int = {
- val nmap = manager invokePrivate _numExecutorsToAddPerResourceProfileId()
+ val nmap = manager.numExecutorsToAddPerResourceProfileId
Review Comment:
`invokePrivate` is a reflection-based invocation method that is only
necessary when the corresponding function is defined as `private`. Since the
current corresponding function can already be called directly, there is no need
to use the `invokePrivate` approach for invocation anymore.
--
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]