Luo Chen has posted comments on this change.

Change subject: [ASTERIXDB-2204][STO] Fix implementations and usages of 
IIndexCursor
......................................................................


Patch Set 6:

(1 comment)

https://asterix-gerrit.ics.uci.edu/#/c/2324/6/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/impls/LSMRTree.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/impls/LSMRTree.java:

PS6, Line 111:     public ILSMDiskComponent doFlush(ILSMIOOperation operation) 
throws HyracksDataException {
> 100% Agree
Just a thought (inspired by https://asterix-gerrit.ics.uci.edu/#/c/2300/). So 
in that patch, we keep track of the list of files created by the component, and 
delete them all after a failed operation. In this case, we can have a 
single/global place to clean up files, which is much cleaner.

Following that idea, can we maintain a list of active resources maintained by a 
flush/merge operation? That is, every time the operation opens a resource, it 
also registers this resource to the list; every time a resource is successfully 
closed/destroyed, it's removed from that list. Thus, when an exception throw, 
we simply have a global place to clean up all active resources, and 
doFlush/doMerge method would be much simpler...


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I98a7a8b931eb24dbe11bf2bdc61b754ca28ebdf9
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: Taewoo Kim <[email protected]>
Gerrit-Reviewer: Taewoo Kim <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>
Gerrit-Reviewer: abdullah alamoudi <[email protected]>
Gerrit-HasComments: Yes

Reply via email to