You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by sakanaou <gi...@git.apache.org> on 2016/12/13 09:52:45 UTC

[GitHub] storm pull request #1824: STORM-2242: Persisting Trident state honors config...

GitHub user sakanaou opened a pull request:

    https://github.com/apache/storm/pull/1824

    STORM-2242: Persisting Trident state honors configured batch.size.rows

    Persisting the Trident state in `org.apache.storm.cassandra.trident.state.CassandraState` with batching enabled does not honor the configuration for `cassandra.batch.size.rows`.
    
    This results in a warning at least:
    ```
    10:33:33.720 [SharedPool-Worker-16] WARN  o.a.c.cql3.statements.BatchStatement - Batch of prepared statements for [gin.ngram_count] is of size 5200, exceeding specified threshold of 5120 by 80.
    ```
    
    An exception like this is also possible:
    ```
    10:30:54.287 [SharedPool-Worker-1] ERROR o.a.c.cql3.statements.BatchStatement - Batch of prepared statements for [gin.df] is of size 103428, exceeding specified threshold of 51200 by 52228. (see batch_size_fail_threshold_in_kb)
    10:30:54.295 [Thread-29-b-1-executor[7 7]] WARN  o.a.s.c.trident.state.CassandraState - Batch write operation is failed.
    10:30:54.297 [Thread-29-b-1-executor[7 7]] ERROR org.apache.storm.daemon.executor -
    com.datastax.driver.core.exceptions.InvalidQueryException: Batch too large
        at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:50) ~[cassandra-driver-core-3.1.0.jar:na]
        at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37) ~[cassandra-driver-core-3.1.0.jar:na]
        at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245) ~[cassandra-driver-core-3.1.0.jar:na]
        at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:64) ~[cassandra-driver-core-3.1.0.jar:na]
        at org.apache.storm.cassandra.trident.state.CassandraState.updateState(CassandraState.java:159) ~[storm-cassandra-1.0.2.IQSER_20161212.jar:1.0.2.IQSER_20161212]
        at org.apache.storm.cassandra.trident.state.CassandraStateUpdater.updateState(CassandraStateUpdater.java:34) [storm-cassandra-1.0.2.IQSER_20161212.jar:1.0.2.IQSER_20161212]
        at org.apache.storm.cassandra.trident.state.CassandraStateUpdater.updateState(CassandraStateUpdater.java:30) [storm-cassandra-1.0.2.IQSER_20161212.jar:1.0.2.IQSER_20161212]
        at org.apache.storm.trident.planner.processor.PartitionPersistProcessor.finishBatch(PartitionPersistProcessor.java:98) [storm-core-1.0.2.jar:1.0.2]
        at org.apache.storm.trident.planner.SubtopologyBolt.finishBatch(SubtopologyBolt.java:151) [storm-core-1.0.2.jar:1.0.2]
        at org.apache.storm.trident.topology.TridentBoltExecutor.finishBatch(TridentBoltExecutor.java:266) [storm-core-1.0.2.jar:1.0.2]
    ```
    
    This effectivly disables the usage of batching.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sakanaou/storm STORM-2242

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/1824.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1824
    
----
commit 192f5dbcaff47b2ce43bf256ccc6cc3f2ede5181
Author: sakanaou <sa...@users.noreply.github.com>
Date:   2016-12-13T09:48:09Z

    STORM-2242: Persisting Trident state honors configured batch.size.rows

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---