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

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

                Author: ASF GitHub Bot
            Created on: 13/Apr/18 18:26
            Start Date: 13/Apr/18 18:26
    Worklog Time Spent: 10m 
      Work Description: bsidhom commented on a change in pull request #5008: 
[BEAM-3994] Use typed client pool sinks and sources
URL: https://github.com/apache/beam/pull/5008#discussion_r181470695
 
 

 ##########
 File path: 
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/FnApiControlClientPoolService.java
 ##########
 @@ -34,13 +34,14 @@
     implements FnService {
   private static final Logger LOGGER = 
LoggerFactory.getLogger(FnApiControlClientPoolService.class);
 
-  private final BlockingQueue<FnApiControlClient> clientPool;
+  private final ThrowingConsumer<? super FnApiControlClient> clientPool;
   private final Collection<FnApiControlClient> vendedClients = new 
CopyOnWriteArrayList<>();
   private final HeaderAccessor headerAccessor;
   private AtomicBoolean closed = new AtomicBoolean();
 
   private FnApiControlClientPoolService(
-      BlockingQueue<FnApiControlClient> clientPool, HeaderAccessor 
headerAccessor) {
+      ThrowingConsumer<? super FnApiControlClient> clientPool,
 
 Review comment:
   I tried to rename this, but it made for a surprisingly annoying time when 
trying to rebase this into the correct commit. I don't think it's worth making 
that change here because this file is going away anyway.

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


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

    Worklog Id:     (was: 90930)
    Time Spent: 2h  (was: 1h 50m)

> Use typed sinks and sources for FnApiControlClientPoolService
> -------------------------------------------------------------
>
>                 Key: BEAM-3994
>                 URL: https://issues.apache.org/jira/browse/BEAM-3994
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-core
>            Reporter: Ben Sidhom
>            Assignee: Ben Sidhom
>            Priority: Minor
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> We operate with blocking queues directly when managing control clients with 
> the FnApiControlClientPoolService. This makes interactions with the client 
> pool difficult to understand. We should instead make client sources and sinks 
> explicit.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to