You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by GitBox <gi...@apache.org> on 2021/09/20 06:07:29 UTC

[GitHub] [carbondata] Indhumathi27 commented on a change in pull request #4219: [CARBONDATA-4288][CARBONDATA-4289] Fix various issues with Index Server caching mechanism.

Indhumathi27 commented on a change in pull request #4219:
URL: https://github.com/apache/carbondata/pull/4219#discussion_r711895647



##########
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:
       may be need to handle INSERT_OVERWRITE_IN_PROGRESS segment also here




-- 
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: dev-unsubscribe@carbondata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org