asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Blow (Code Review)" <>
Subject Change in asterixdb[master]: [ASTERIXDB-2204][STO] Fix implementations and usages of IInd...
Date Sun, 11 Feb 2018 20:29:58 GMT
Michael Blow has posted comments on this change.

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

Patch Set 20:

File hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/util/

PS20, Line 42: public static Throwable destroy(IDestroyable destroyable, Throwable root)
can we refactor callers of this to pass the throwable first, then just inline this method
at line 36 above?  it seems strange to have both destroy(IDestroyable destroyable, Throwable
root) and destroy(Throwable root, IDestroyable destroyable) be valid signatures.
File hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/

PS20, Line 189: null, 
can remove this now, right?

PS20, Line 190:         failure = DestroyUtils.destroy(failure, mutableBTreeOpCtxs);
              :         failure = DestroyUtils.destroy(insertSearchCursor, failure);
see comment in DestroyUtils, very confusing to support both parameter orders for DestroyUtils.destroy()

PS20, Line 189:        Throwable failure = DestroyUtils.destroy(null, mutableBTreeAccessors);
              :         failure = DestroyUtils.destroy(failure, mutableBTreeOpCtxs);
              :         failure = DestroyUtils.destroy(insertSearchCursor, failure);
              :         failure = DestroyUtils.destroy(memCursor, failure);
can't we just have one statement here:

Throwable failure = DestroyUtils.destroy(mutableBTreeAccessors, mutableBTreeOpCtxs, insertSearchCursor,

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I98a7a8b931eb24dbe11bf2bdc61b754ca28ebdf9
Gerrit-PatchSet: 20
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Luo Chen <>
Gerrit-Reviewer: Michael Blow <>
Gerrit-Reviewer: Murtadha Hubail <>
Gerrit-Reviewer: Taewoo Kim <>
Gerrit-Reviewer: Taewoo Kim <>
Gerrit-Reviewer: Till Westmann <>
Gerrit-Reviewer: abdullah alamoudi <>
Gerrit-HasComments: Yes

View raw message