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_r405472125
 
 

 ##########
 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:
   In case of update scenario, If we fill `segmentUpdatedTimestamp` as 
`segmentFileTimestamp`, will there be a problem ? I think no need to have 
`segmentFileTimestamp` variable. We can just  use `segmentUpdatedTimestamp` and 
fill this based on segment modified time

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to