apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXMALHAR-1966) Cassandra output operator improvements
Date Wed, 06 Apr 2016 13:47:25 GMT

    [ https://issues.apache.org/jira/browse/APEXMALHAR-1966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228269#comment-15228269
] 

ASF GitHub Bot commented on APEXMALHAR-1966:
--------------------------------------------

Github user bhupeshchawda commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-malhar/pull/227#discussion_r58707219
  
    --- Diff: contrib/src/main/java/com/datatorrent/contrib/cassandra/CassandraPOJOOutputOperator.java
---
    @@ -260,6 +292,17 @@ protected Statement setStatementParameters(PreparedStatement updateCommand,
Obje
         return boundStmnt;
       }
     
    +  @Override
    +  public void processTuple(Object tuple)
    +  {
    +    try {
    +      super.processTuple(tuple);
    +      recordsProcessed++;
    +    } catch (RuntimeException e) {
    +      //super.error.emit(tuple);
    --- End diff --
    
    Also, please log the exception.


> Cassandra output operator improvements
> --------------------------------------
>
>                 Key: APEXMALHAR-1966
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-1966
>             Project: Apache Apex Malhar
>          Issue Type: Improvement
>            Reporter: Priyanka Gugale
>            Assignee: Priyanka Gugale
>
> Update existing Cassandra output operator to:
> 1. Accept use defined parameterized queries, the queries could be for update, insert
or delete.
> 2. Add error port to emit tuples which couldn't be written to database.
> 3. Add metrics
> 4. Provide a way to restrict batch size



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message