> On April 12, 2013, 5:26 p.m., Mona Chitnis wrote:
> > Similar to how you handle ClassNotFoundException for the 
> > JMSJobEventListener, should we throw exception in EventHandlerService too? 
> > I'm thinking if the configured listener string in invalid, then we will 
> > still end up filling up the event queue, with no listener draining it on 
> > the other end - pointless
> 
> Virag Kothari wrote:
>     Seems unlikely. If the configured listener string is invalid, the init() 
> on listener will fail and EventHandlerService will not be started. 
>     Also, the messaging utils is user facing so we need to be more careful 
> about error messages and exception handling. 
>     Probably, we need better error message and error handling for EHS but 
> that can be added later as it only affects the system admins and not the 
> actual users.

yes it struck me after thinking more on my comment. thanks


> On April 12, 2013, 5:26 p.m., Mona Chitnis wrote:
> > trunk/core/src/test/java/org/apache/oozie/jms/TestJMSJobEventListener.java, 
> > line 292
> > <https://reviews.apache.org/r/9622/diff/6/?file=280527#file280527line292>
> >
> >     can another test be added to check a combination EventStatus=abc AND 
> > MessageType=JOB, and given that both Workflowjob and coordinatorAction 
> > events were produced, both should be received
> 
> Virag Kothari wrote:
>     We have selector on five fields, and we think about AND or OR on all of 
> them, the no. of combintations will be huge. So I am only having a a basic 
> AND and OR test on selectors.
>     Also, the selectors are applied on JMS side. So even if the unit test 
> case works bcoz it uses activemq, there is no gaurantee that the integration 
> test will go through as the JMS provider may be different. So we can have 
> more combination of selectors and events in end to end test.

ok fair enough


- Mona


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9622/#review19083
-----------------------------------------------------------


On April 12, 2013, 7:38 p.m., Virag Kothari wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9622/
> -----------------------------------------------------------
> 
> (Updated April 12, 2013, 7:38 p.m.)
> 
> 
> Review request for oozie.
> 
> 
> Description
> -------
> 
> Description at https://issues.apache.org/jira/browse/OOZIE-1234
> 
> OOZIE-1209 generates events and handles them by calling appropriate 
> listeners. This patch provides JMS implementation of those listeners. Also, 
> the messages are serialized using JSON and there is a deserializer to 
> construct the Java object back from json.
> 
> 
> This addresses bug OOZIE-1234.
>     https://issues.apache.org/jira/browse/OOZIE-1234
> 
> 
> Diffs
> -----
> 
>   trunk/client/pom.xml 1467063 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/jms/JMSHeaderConstants.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/jms/JMSMessagingUtils.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/jms/JSONMessageDeserializer.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/jms/MessageDeserializer.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/message/CoordinatorActionMessage.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/message/EventMessage.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/message/JobMessage.java
>  PRE-CREATION 
>   
> trunk/client/src/main/java/org/apache/oozie/client/event/message/WorkflowJobMessage.java
>  PRE-CREATION 
>   trunk/core/pom.xml 1467063 
>   trunk/core/src/main/java/org/apache/oozie/event/CoordinatorActionEvent.java 
> 1467063 
>   
> trunk/core/src/main/java/org/apache/oozie/event/listener/JobEventListener.java
>  1467063 
>   
> trunk/core/src/main/java/org/apache/oozie/event/messaging/JSONMessageSerializer.java
>  PRE-CREATION 
>   
> trunk/core/src/main/java/org/apache/oozie/event/messaging/MessageFactory.java 
> PRE-CREATION 
>   
> trunk/core/src/main/java/org/apache/oozie/event/messaging/MessageSerializer.java
>  PRE-CREATION 
>   trunk/core/src/main/java/org/apache/oozie/jms/ConnectionContext.java 
> 1467063 
>   trunk/core/src/main/java/org/apache/oozie/jms/DefaultConnectionContext.java 
> 1467063 
>   trunk/core/src/main/java/org/apache/oozie/jms/JMSExceptionListener.java 
> 1467063 
>   trunk/core/src/main/java/org/apache/oozie/jms/JMSJobEventListener.java 
> PRE-CREATION 
>   trunk/core/src/main/java/org/apache/oozie/service/EventHandlerService.java 
> 1467063 
>   
> trunk/core/src/test/java/org/apache/oozie/jms/TestDefaultConnectionContext.java
>  PRE-CREATION 
>   trunk/core/src/test/java/org/apache/oozie/jms/TestJMSJobEventListener.java 
> PRE-CREATION 
>   
> trunk/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java
>  1467063 
>   
> trunk/core/src/test/java/org/apache/oozie/service/TestJMSAccessorService.java 
> 1467063 
>   trunk/pom.xml 1467063 
> 
> Diff: https://reviews.apache.org/r/9622/diff/
> 
> 
> Testing
> -------
> 
> Unit test cases added. Test case for JMS connection failure pending. End to 
> end test pending
> 
> 
> Thanks,
> 
> Virag Kothari
> 
>

Reply via email to