vikramahuja1001 commented on a change in pull request #4219:
URL: https://github.com/apache/carbondata/pull/4219#discussion_r711920184
##########
File path:
integration/spark/src/main/scala/org/apache/carbondata/indexserver/DistributedRDDUtils.scala
##########
@@ -108,7 +108,20 @@ object DistributedRDDUtils {
val wrapper: IndexInputSplit = legacySegment
.asInstanceOf[IndexInputSplitWrapper].getDistributable
val executor = validExecutorIds(index % validExecutorIds.length)
- wrapper.setLocations(Array("executor_" + executor))
+ tableToExecutorMapping.putIfAbsent(tableUniqueName,
Review comment:
done
##########
File path:
integration/spark/src/main/scala/org/apache/carbondata/indexserver/DistributedRDDUtils.scala
##########
@@ -164,6 +177,14 @@ object DistributedRDDUtils {
}
}
+ def isSegmentInProgress(request: IndexInputFormat, segment: String): Boolean
= {
+ request.getReadCommittedScope.getSegmentList.find(_.getLoadName
+ .equalsIgnoreCase(segment)) match {
+ case Some(value) =>
value.getSegmentStatus.equals(SegmentStatus.INSERT_IN_PROGRESS)
Review comment:
done
--
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]