ajantha-bhat commented on a change in pull request #3686: 
[CARBONDATA-3759]Refactor segmentRefreshInfo and fix cache issue in multiple 
application scenario
URL: https://github.com/apache/carbondata/pull/3686#discussion_r405517034
 
 

 ##########
 File path: 
core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentRefreshInfo.java
 ##########
 @@ -21,12 +21,17 @@
 
 public class SegmentRefreshInfo implements Serializable {
 
-  private Long segmentUpdatedTimestamp;
+  private Long segmentUpdatedTimestamp = 0L;
   private Integer countOfFileInSegment;
+  private Long segmentFileTimestamp = 0L;
 
-  public SegmentRefreshInfo(Long segmentUpdatedTimestamp, Integer 
countOfFileInSegment) {
-    this.segmentUpdatedTimestamp = segmentUpdatedTimestamp;
+  public SegmentRefreshInfo(Long segmentUpdatedTimestamp, Integer 
countOfFileInSegment,
+      Long segmentFileTimestamp) {
+    if (segmentUpdatedTimestamp != null) {
 
 Review comment:
   @kunal642 , @akashrn5 : Isn't the segmentUpdatedTimestamp will be same as 
latest modified segment time. which is segmentFileTimestamp ?
   
   But old store, which doesn't have segmentFile update may not work If we do 
that.  We cannot do this now.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to