akshaytayal commented on code in PR #13518:
URL: https://github.com/apache/gluten/pull/13518#discussion_r4648583017
##########
gluten-core/src/main/scala/org/apache/spark/shuffle/ShuffleManagerRouter.scala:
##########
@@ -131,6 +135,22 @@ private object ShuffleManagerRouter {
}
}
+ private val shuffleBlockResolverAccessor = new ClassValue[Method] {
+ override def computeValue(clazz: Class[_]): Method =
clazz.getMethod("shuffleBlockResolver")
Review Comment:
Done in 22de284. `shuffleBlockResolver` is now looked up once on its
declaring type (`ShuffleManager` before Spark 4.3, `BlockingShuffleManager`
from 4.3), and the `ClassValue` cache is removed. With a package-private
shuffle manager class, the previous per-class lookup throws
`IllegalAccessException` and the new lookup works, on both Spark 4.2 and 4.3.
--
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]