abdullah alamoudi has posted comments on this change. Change subject: [ASTERIXDB-2321][STO] Follow the contract in IIndexCursor.open calls ......................................................................
Patch Set 6: (4 comments) https://asterix-gerrit.ics.uci.edu/#/c/2496/6/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeRangeSearchCursor.java File hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeRangeSearchCursor.java: PS6, Line 373: canCallProceed > this should be made volatile, to prevent reordering Mmmmm, while I understand that volatile will prevent re-ordering, cursors are always used by a single thread. Since, this is the case, I don't think there is a problem.(i,e if an exception is thrown, the vm will make sure the value is set back to false) https://asterix-gerrit.ics.uci.edu/#/c/2496/6/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java File hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java: PS6, Line 176: th = > it seems this isn't needed, can we remove it? Done https://asterix-gerrit.ics.uci.edu/#/c/2496/6/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/util/IndexCursorUtils.java File hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/util/IndexCursorUtils.java: PS6, Line 78: th = > this seems unneeded, remove it? Done PS6, Line 96: th = > this seems unneeded, remove it? Done -- To view, visit https://asterix-gerrit.ics.uci.edu/2496 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I19db2afd2d6ca4a2ca1056cd95ae504b2be69813 Gerrit-PatchSet: 6 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: abdullah alamoudi <[email protected]> Gerrit-Reviewer: Anon. E. Moose #1000171 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: abdullah alamoudi <[email protected]> Gerrit-HasComments: Yes
