abdullah alamoudi has posted comments on this change.

Change subject: [ASTERIXDB-1982][FAIL] Propagate failure in IFrameWriter and 
IDataWriter
......................................................................


Patch Set 4:

(30 comments)

https://asterix-gerrit.ics.uci.edu/#/c/1874/4/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/dataflow/ConnectorDescriptorWithMessagingTest.java
File 
asterixdb/asterix-app/src/test/java/org/apache/asterix/test/dataflow/ConnectorDescriptorWithMessagingTest.java:

PS4, Line 129: throw t;
throw the passed exception


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/dataset/adapter/LookupAdapter.java
File 
asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/dataset/adapter/LookupAdapter.java:

PS4, Line 99: .fail();
do the same for recordReader.fail()?


PS4, Line 101: throw new HyracksDataException(th);
suppress it?


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/operators/ExternalScanOperatorDescriptor.java
File 
asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/operators/ExternalScanOperatorDescriptor.java:

PS4, Line 64: n cause 
good.


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/operators/FeedIntakeOperatorNodePushable.java
File 
asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/operators/FeedIntakeOperatorNodePushable.java:

PS4, Line 95: HyracksDataException.create(e)
store in a var and throw it?


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/std/FlushDatasetOperatorDescriptor.java
File 
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/std/FlushDatasetOperatorDescriptor.java:

PS4, Line 69: this.close();
why?!!!!! not part of the change but interesting


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/base/AbstractOneInputOneOutputOneFramePushRuntime.java
File 
hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/base/AbstractOneInputOneOutputOneFramePushRuntime.java:

PS4, Line 57: HyracksDataException.create(e)
store in temp and throw?


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/meta/AlgebricksMetaOperatorDescriptor.java
File 
hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/meta/AlgebricksMetaOperatorDescriptor.java:

PS4, Line 101: HyracksDataException.create(e)
store in temp and throw?


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/meta/SubplanRuntimeFactory.java
File 
hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/meta/SubplanRuntimeFactory.java:

PS4, Line 165: HyracksDataException.create(e
store in  temp and throw!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/std/SplitOperatorDescriptor.java
File 
hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/std/SplitOperatorDescriptor.java:

PS4, Line 189:  writers[i].fail(cause);
I think fail(HyracksDataException) should never throw an exception!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/Task.java
File 
hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/Task.java:

PS4, Line 396: HyracksDataException.create(e)
store in temp and throw?


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/partitions/MaterializingPipelinedPartition.java
File 
hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/partitions/MaterializingPipelinedPartition.java:

PS4, Line 156: (HyracksDataException.create(e)
throw the propagated exception!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/partitions/ReceiveSideMaterializingCollector.java
File 
hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/partitions/ReceiveSideMaterializingCollector.java:

PS4, Line 164: catch (HyracksException e) {
             :             }
at least log!!!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/comm/io/SerializingDataWriter.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/comm/io/SerializingDataWriter.java:

PS4, Line 68: HyracksDataException.create(e)
throw the propagated failure!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/AbstractDeserializedFileScanOperatorDescriptor.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/AbstractDeserializedFileScanOperatorDescriptor.java:

PS4, Line 90: final HyracksDataException cause = HyracksDataException.create(e);
            :                 writer.fail(cause);
            :                 throw cause;
Good!


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/external/ExternalGroupWriteOperatorNodePushable.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/external/ExternalGroupWriteOperatorNodePushable.java:

PS4, Line 103: HyracksDataException.create(e)
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/preclustered/PreclusteredGroupWriter.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/preclustered/PreclusteredGroupWriter.java:

PS4, Line 194: HyracksDataException.create(e)
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/join/NestedLoopJoinOperatorDescriptor.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/join/NestedLoopJoinOperatorDescriptor.java:

PS4, Line 208: (HyracksDataException.create(e))
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/misc/MaterializerTaskState.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/misc/MaterializerTaskState.java:

PS4, Line 94: writer.fail(HyracksDataException.create(e));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/result/ResultWriterOperatorDescriptor.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/result/ResultWriterOperatorDescriptor.java:

PS4, Line 126: HyracksDataException.create(e
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/sort/AbstractExternalSortRunMerger.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/sort/AbstractExternalSortRunMerger.java:

PS4, Line 139: HyracksDataException.create(t
same


PS4, Line 169: l(HyracksDataException.create(e))
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/sort/AbstractSortRunGenerator.java
File 
hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/sort/AbstractSortRunGenerator.java:

PS4, Line 67: HyracksDataException.create(e));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/integration/CancelJobTest.java
File 
hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/integration/CancelJobTest.java:

PS4, Line 294: fail(HyracksDataException.create(e));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/rewriting/ErrorReportingTest.java
File 
hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/rewriting/ErrorReportingTest.java:

PS4, Line 105: HyracksDataException.create(e));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/rewriting/SuperActivityRewritingTest.java
File 
hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/rewriting/SuperActivityRewritingTest.java:

PS4, Line 89: (HyracksDataException.create(e));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/util/MultiThreadTaskEmulator.java
File 
hyracks-fullstack/hyracks/hyracks-examples/hyracks-integration-tests/src/test/java/org/apache/hyracks/tests/util/MultiThreadTaskEmulator.java:

PS4, Line 79: il(HyracksDataException.create(ex))
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/test/java/org/apache/hyracks/storage/am/btree/test/FramewriterTest.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/test/java/org/apache/hyracks/storage/am/btree/test/FramewriterTest.java:

PS4, Line 479: new HyracksDataException("")
Mockito.Any()


PS4, Line 514: HyracksDataException.create(th1));
same


https://asterix-gerrit.ics.uci.edu/#/c/1874/4/hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexSearchOperatorNodePushable.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexSearchOperatorNodePushable.java:

PS4, Line 217: HyracksDataException.create(th)
same


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7a79c0e697e5918d09191821a6481249935123e2
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Murtadha Hubail <mhub...@apache.org>
Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Till Westmann <ti...@apache.org>
Gerrit-Reviewer: abdullah alamoudi <bamou...@gmail.com>
Gerrit-HasComments: Yes

Reply via email to