You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by GitBox <gi...@apache.org> on 2020/03/13 16:33:58 UTC

[GitHub] [flume] MINCWANG opened a new pull request #319: java.lang.IllegalStateException: begin() called when transaction is COMPLETED!

MINCWANG opened a new pull request #319: java.lang.IllegalStateException: begin() called when transaction is COMPLETED!
URL: https://github.com/apache/flume/pull/319
 
 
   In the official website's documentation, custom sink code will cause java.lang.IllegalStateException: begin () called when transaction is COMPLETED!
   
   [http://flume.apache.org/releases/content/1.9.0/FlumeDeveloperGuide.html#sink](http://flume.apache.org/releases/content/1.9.0/FlumeDeveloperGuide.html#sink)
   
   ```
   finally {
               if (txn != null) {
                   txn.close();
               }
           }
   ```
   Add the above code to the top link to solve the problem.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services