[ 
https://issues.apache.org/jira/browse/BEAM-13236?focusedWorklogId=686892&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-686892
 ]

ASF GitHub Bot logged work on BEAM-13236:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Nov/21 15:29
            Start Date: 26/Nov/21 15:29
    Worklog Time Spent: 10m 
      Work Description: mosche commented on a change in pull request #15955:
URL: https://github.com/apache/beam/pull/15955#discussion_r757583625



##########
File path: 
sdks/java/io/kinesis/src/main/java/org/apache/beam/sdk/io/kinesis/KinesisIO.java
##########
@@ -917,30 +971,6 @@ public void startBundle() {
         putFutures = Collections.synchronizedList(new ArrayList<>());
         /** Keep only the first {@link MAX_NUM_FAILURES} occurred exceptions */
         failures = new LinkedBlockingDeque<>(MAX_NUM_FAILURES);
-        initKinesisProducer();
-      }
-
-      private synchronized void initKinesisProducer() {

Review comment:
       Yet another issue is synchronisation when creating the producer 
instance. If the producer is statically shared among writers of the same JVM, 
synchronisation cannot be done on `this`.
   Otherwise there might be multiple producer deamons running, with only the 
latest one being used.




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 686892)
    Time Spent: 2h 10m  (was: 2h)

> Properly close kinesis producer on teardown
> -------------------------------------------
>
>                 Key: BEAM-13236
>                 URL: https://issues.apache.org/jira/browse/BEAM-13236
>             Project: Beam
>          Issue Type: Task
>          Components: io-java-kinesis
>            Reporter: Moritz Mack
>            Assignee: Moritz Mack
>            Priority: P2
>              Labels: aws, ios, kinesis
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Each KPL producer uses it's own native deamon, so properly cleaning up once 
> not used anymore is important.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to