abdullah alamoudi has posted comments on this change.

Change subject: [ASTERIXDB-2414][STO] Fix name of merge files
......................................................................


Patch Set 4:

(1 comment)

https://asterix-gerrit.ics.uci.edu/#/c/2820/4/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMIndexFileManager.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMIndexFileManager.java:

PS4, Line 212:         String start = firstTimestampRange[0];
             :         String end = lastTimestampRange[1];
             :         if (end.compareTo(start) <= 0) {
             :             throw new IllegalArgumentException(
             :                     "A Merge file must have end greater than 
start. Found end: " + end + " and start: " + start);
             :         }
             :         // Get the range of timestamps by taking the earliest 
and the latest timestamps
             :         return new 
LSMComponentFileReferences(baseDir.getChild(start + DELIMITER + end), null, 
null);
             :     }
> The alphabetical comparison is because the start and end follow the format 
Changing the comparator will also work but I prefer this way because it is more 
pleasant to see them  named start_end than end_start.


-- 
To view, visit https://asterix-gerrit.ics.uci.edu/2820
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I861765bc0f293bdfdf0285f97884d536204fdb1e
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <[email protected]>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Dmitry Lychagin <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Luo Chen <[email protected]>
Gerrit-Reviewer: Michael Blow <[email protected]>
Gerrit-Reviewer: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>
Gerrit-Reviewer: Wail Alkowaileet <[email protected]>
Gerrit-Reviewer: abdullah alamoudi <[email protected]>
Gerrit-HasComments: Yes

Reply via email to