You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by harshach <gi...@git.apache.org> on 2015/07/22 00:57:31 UTC

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

GitHub user harshach opened a pull request:

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

    STORM-951. Storm Hive connector leaking connections.

    

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

    $ git pull https://github.com/harshach/incubator-storm STORM-951

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

    https://github.com/apache/storm/pull/645.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 #645
    
----
commit acb36df704d292b514d5c8e8437dc2d1c84a93d8
Author: Sriharsha Chintalapani <ma...@harsha.io>
Date:   2015-07-21T22:42:22Z

    STORM-951. Storm Hive connector leaking connections.

----


---
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.
---

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

Posted by harshach <gi...@git.apache.org>.
Github user harshach commented on a diff in the pull request:

    https://github.com/apache/storm/pull/645#discussion_r35425503
  
    --- Diff: external/storm-hive/src/main/java/org/apache/storm/hive/bolt/HiveBolt.java ---
    @@ -170,10 +170,10 @@ public void run() {
             }
         }
     
    -    private void flushAllWriters()
    +    private void flushAllWriters(boolean rollToNext)
             throws HiveWriter.CommitFailure, HiveWriter.TxnBatchFailure, HiveWriter.TxnFailure, InterruptedException {
             for(HiveWriter writer: allWriters.values()) {
    -            writer.flush(true);
    +            writer.flush(rollToNext);
    --- End diff --
    
    @caofangkun closing Writer handled in different method you can flushAllAndCloseWriters().


---
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.
---

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

Posted by caofangkun <gi...@git.apache.org>.
Github user caofangkun commented on a diff in the pull request:

    https://github.com/apache/storm/pull/645#discussion_r35401647
  
    --- Diff: external/storm-hive/src/main/java/org/apache/storm/hive/bolt/HiveBolt.java ---
    @@ -170,10 +170,10 @@ public void run() {
             }
         }
     
    -    private void flushAllWriters()
    +    private void flushAllWriters(boolean rollToNext)
             throws HiveWriter.CommitFailure, HiveWriter.TxnBatchFailure, HiveWriter.TxnFailure, InterruptedException {
             for(HiveWriter writer: allWriters.values()) {
    -            writer.flush(true);
    +            writer.flush(rollToNext);
    --- End diff --
    
    If ```rollToNext == false``` should we ``` writer.close()``` ? 
    Like:
    ```
     writer.flush(rollToNext);
     if (!rollToNext) {
        writer.close();
     }
    ```


---
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.
---

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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.
---

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

Posted by vesense <gi...@git.apache.org>.
Github user vesense commented on the pull request:

    https://github.com/apache/storm/pull/645#issuecomment-123536182
  
    +1 LGTM


---
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.
---

[GitHub] storm pull request: STORM-951. Storm Hive connector leaking connec...

Posted by Parth-Brahmbhatt <gi...@git.apache.org>.
Github user Parth-Brahmbhatt commented on the pull request:

    https://github.com/apache/storm/pull/645#issuecomment-123504221
  
    +1.


---
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.
---