You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by Alonzo Zhou <zh...@gmail.com> on 2017/04/01 11:31:58 UTC
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/
-----------------------------------------------------------
(Updated \u56db\u6708 1, 2017, 11:31 a.m.)
Review request for oozie.
Changes
-------
1 add comment to the ambiguous method with empty body
2 Use empty WorkflowActionBean instead of null as placeholder element
3 Make WorkflowActionGetJPAExecutor be able to handle both "acceptable null" and "null exception"
Repository: oozie-git
Description
-------
More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
Diffs (updated)
-----
client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
Diff: https://reviews.apache.org/r/57870/diff/4/
Changes: https://reviews.apache.org/r/57870/diff/3-4/
Testing
-------
Thanks,
Alonzo Zhou
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
Posted by András Piros <an...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/#review171870
-----------------------------------------------------------
Ship it!
Ship It!
- Andr�s Piros
On April 6, 2017, 2:34 p.m., Alonzo Zhou wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57870/
> -----------------------------------------------------------
>
> (Updated April 6, 2017, 2:34 p.m.)
>
>
> Review request for oozie.
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
>
>
> Diffs
> -----
>
> client/src/main/java/org/apache/oozie/client/CoordinatorWfAction.java PRE-CREATION
> client/src/main/java/org/apache/oozie/client/rest/JsonTags.java ca168e0
> client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
> core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
> core/src/main/java/org/apache/oozie/CoordinatorWfActionBean.java PRE-CREATION
> core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
> core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
> core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
> core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
> core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
> core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
> core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
> core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
> core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
>
>
> Diff: https://reviews.apache.org/r/57870/diff/5/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Alonzo Zhou
>
>
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
Posted by Peter Bacsko <pb...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/#review171880
-----------------------------------------------------------
Ship it!
Ship It!
- Peter Bacsko
On �pr. 6, 2017, 2:34 du, Alonzo Zhou wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57870/
> -----------------------------------------------------------
>
> (Updated �pr. 6, 2017, 2:34 du)
>
>
> Review request for oozie.
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
>
>
> Diffs
> -----
>
> client/src/main/java/org/apache/oozie/client/CoordinatorWfAction.java PRE-CREATION
> client/src/main/java/org/apache/oozie/client/rest/JsonTags.java ca168e0
> client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
> core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
> core/src/main/java/org/apache/oozie/CoordinatorWfActionBean.java PRE-CREATION
> core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
> core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
> core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
> core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
> core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
> core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
> core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
> core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
> core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
>
>
> Diff: https://reviews.apache.org/r/57870/diff/5/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Alonzo Zhou
>
>
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
Posted by Alonzo Zhou <zh...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/
-----------------------------------------------------------
(Updated \u56db\u6708 6, 2017, 2:34 p.m.)
Review request for oozie.
Changes
-------
1 refactor the test so that they run as a single testcase (TestCoordWfActionInfoXCommand, TestV2JobServlet)
2 Added a class CoordinatorWfActionBean as an element in the returned list
Repository: oozie-git
Description
-------
More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
Diffs (updated)
-----
client/src/main/java/org/apache/oozie/client/CoordinatorWfAction.java PRE-CREATION
client/src/main/java/org/apache/oozie/client/rest/JsonTags.java ca168e0
client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
core/src/main/java/org/apache/oozie/CoordinatorWfActionBean.java PRE-CREATION
core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
Diff: https://reviews.apache.org/r/57870/diff/5/
Changes: https://reviews.apache.org/r/57870/diff/4-5/
Testing
-------
Thanks,
Alonzo Zhou
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
Posted by Alonzo Zhou <zh...@gmail.com>.
> On \u56db\u6708 3, 2017, 10:23 a.m., Peter Bacsko wrote:
> > core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java
> > Lines 81 (patched)
> > <https://reviews.apache.org/r/57870/diff/4/?file=1682907#file1682907line81>
> >
> > Are we sure that the default, uninitialized instance is good enough?
> >
> > So let's say we store the empty bean as a placeholder. How will that be returned to the user?
> >
> > As I can see, status will be PREP, wfId is null, id is null, everything else is pretty much null.
> >
> > Is this sufficient for us? Won't that be misleading?
hi, i added a class CoordinatorWfActionBean as an element in the returned list, which includes a WorkflowActionBean, an int that corresponds to the coordinatorAction serial number, and a string to explain why the WorkflowActionBean is null.
The packaging looks a bit more robustness and friendly. could you review it for me ? thanks.
- Alonzo
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/#review170838
-----------------------------------------------------------
On \u56db\u6708 6, 2017, 2:34 p.m., Alonzo Zhou wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57870/
> -----------------------------------------------------------
>
> (Updated \u56db\u6708 6, 2017, 2:34 p.m.)
>
>
> Review request for oozie.
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
>
>
> Diffs
> -----
>
> client/src/main/java/org/apache/oozie/client/CoordinatorWfAction.java PRE-CREATION
> client/src/main/java/org/apache/oozie/client/rest/JsonTags.java ca168e0
> client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
> core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
> core/src/main/java/org/apache/oozie/CoordinatorWfActionBean.java PRE-CREATION
> core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
> core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
> core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
> core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
> core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
> core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
> core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
> core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
> core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
>
>
> Diff: https://reviews.apache.org/r/57870/diff/5/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Alonzo Zhou
>
>
Re: Review Request 57870: OOZIE-2827 More directly view of the coordinator’s history from perspective of workflow action.
Posted by Peter Bacsko <pb...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57870/#review170838
-----------------------------------------------------------
core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java
Lines 81 (patched)
<https://reviews.apache.org/r/57870/#comment243714>
Are we sure that the default, uninitialized instance is good enough?
So let's say we store the empty bean as a placeholder. How will that be returned to the user?
As I can see, status will be PREP, wfId is null, id is null, everything else is pretty much null.
Is this sufficient for us? Won't that be misleading?
core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java
Lines 82 (patched)
<https://reviews.apache.org/r/57870/#comment243712>
In this case please return null instead of creating a new bean and handle the null case on the caller side.
core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java
Lines 63 (patched)
<https://reviews.apache.org/r/57870/#comment243711>
Is it possible to refactor the test so that they run as a single testcase?
core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java
Lines 262 (patched)
<https://reviews.apache.org/r/57870/#comment243708>
How much overhead does this test have if we run all subtests as a separate testcase?
Having them separately would be much better.
- Peter Bacsko
On �pr. 1, 2017, 11:31 de, Alonzo Zhou wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57870/
> -----------------------------------------------------------
>
> (Updated �pr. 1, 2017, 11:31 de)
>
>
> Review request for oozie.
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> More detailed view of the coordinator\u2019s history can be observed from perspective of workflow action.
>
>
> Diffs
> -----
>
> client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 8ddb1f8
> core/src/main/java/org/apache/oozie/CoordinatorEngine.java 2f9f822
> core/src/main/java/org/apache/oozie/ErrorCode.java b03ad06
> core/src/main/java/org/apache/oozie/command/coord/CoordWfActionInfoXCommand.java PRE-CREATION
> core/src/main/java/org/apache/oozie/executor/jpa/WorkflowActionGetJPAExecutor.java 0b7f50d
> core/src/main/java/org/apache/oozie/servlet/BaseJobServlet.java 03acbc1
> core/src/main/java/org/apache/oozie/servlet/V2JobServlet.java 6c30f5d
> core/src/test/java/org/apache/oozie/client/TestOozieCLI.java 564db2a
> core/src/test/java/org/apache/oozie/command/coord/TestCoordWfActionInfoXCommand.java PRE-CREATION
> core/src/test/java/org/apache/oozie/servlet/MockCoordinatorEngineService.java 4fc8653
> core/src/test/java/org/apache/oozie/servlet/TestV2JobServlet.java fb203a6
>
>
> Diff: https://reviews.apache.org/r/57870/diff/4/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Alonzo Zhou
>
>