Murtadha Hubail has posted comments on this change.

Change subject: Add support for persistent local resources to 
IndexLifecycleManager
......................................................................


Patch Set 3:

(6 comments)

Thanks Till. I addressed your comments. I will wait for Yingyi's before 
submitting the new patch.

https://asterix-gerrit.ics.uci.edu/#/c/343/3/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexDataflowHelper.java
File 
hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexDataflowHelper.java:

Line 71:             long resourceID = getResourceID();
> Could we move the declaration of resourceID down to the place it is actuall
it is needed before the try-block to check if there is an old resource id for 
this index. I moved it closer to that check.


Line 73:             index = lcManager.getIndex(file.getFile().getPath());
> Could we create a local variable for "file.getFile().getPath()"?
Done


Line 104:             long resourceID = getResourceID();
> Maybe we can inline resourceID?
Done


Line 110:             index = lcManager.getIndex(file.getFile().getPath());
> Could we create a local variable for "file.getFile().getPath()"?
Done


Line 130:             index = lcManager.getIndex(file.getFile().getPath());
> Could we create a local variable for "file.getFile().getPath()"?
Done


https://asterix-gerrit.ics.uci.edu/#/c/343/3/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java
File 
hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java:

Line 253:         return lr.getResourceId();
> return lr == null ? -1 : lr.getResourceId() ? :)
Done


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I2e8e974fc2f746959639ce94351f8e419a7f9093
Gerrit-PatchSet: 3
Gerrit-Project: hyracks
Gerrit-Branch: master
Gerrit-Owner: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>
Gerrit-Reviewer: Yingyi Bu <[email protected]>
Gerrit-Reviewer: Yingyi Bu <[email protected]>
Gerrit-Reviewer: Young-Seok Kim <[email protected]>
Gerrit-Reviewer: abdullah alamoudi <[email protected]>
Gerrit-HasComments: Yes

Reply via email to