kunal642 commented on a change in pull request #3237: [CARBONDATA-3399] Implement excutor id based distribution for indexserver
URL:
https://github.com/apache/carbondata/pull/3237#discussion_r287939633
##########
File path: integration/spark2/src/main/scala/org/apache/carbondata/indexserver/DistributedRDDUtils.scala
##########
@@ -47,10 +46,24 @@ object DistributedRDDUtils {
.getDistributable.getSegment.getIndexSize)
val executorCache = DistributedRDDUtils.executorToCacheSizeMapping
// check if any executor is dead.
- val invalidExecutors = executorCache.keySet().asScala.diff(executorsList)
- if (invalidExecutors.nonEmpty) {
+ val invalidHosts = executorCache.keySet().asScala.diff(executorsList.keySet)
+ if (invalidHosts.nonEmpty) {
// extract the dead executor host name
- DistributedRDDUtils.invalidateExecutors(invalidExecutors.toSeq)
+ DistributedRDDUtils.invalidateHosts(invalidHosts.toSeq)
+ } else {
Review comment:
removed this code from else part
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services