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

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

                Author: ASF GitHub Bot
            Created on: 11/May/21 17:01
            Start Date: 11/May/21 17:01
    Worklog Time Spent: 10m 
      Work Description: suztomo commented on a change in pull request #14474:
URL: https://github.com/apache/beam/pull/14474#discussion_r619557479



##########
File path: 
runners/java-fn-execution/src/test/java/org/apache/beam/runners/fnexecution/logging/GrpcLoggingServiceTest.java
##########
@@ -108,9 +113,16 @@ public void 
testMultipleClientsFailingIsHandledGracefullyByServer() throws Excep
         tasks.add(
             () -> {
               CountDownLatch waitForTermination = new CountDownLatch(1);
-              ManagedChannel channel =
-                  
InProcessChannelBuilder.forName(server.getApiServiceDescriptor().getUrl())
-                      .build();
+              String url = server.getApiServiceDescriptor().getUrl();
+              System.out.println(
+                  System.currentTimeMillis()
+                      + ": i:"
+                      + instructionId
+                      + ", thread: "
+                      + Thread.currentThread().getName()
+                      + ", url: "
+                      + url);

Review comment:
       Got the following output for the timeout. The countdown in 
grpc-default-executor-8 and grpc-default-executor-9 did not happen.
   
   ```
   Standard Output
   1619214227946: i:1, thread: pool-123-thread-1, url: InProcessServer_96
   1619214227962: i:2, thread: pool-123-thread-2, url: InProcessServer_96
   1619214227965: Thread: grpc-default-executor-0, about to count down: 
java.util.concurrent.CountDownLatch@56c8e14a[Count = 1]
   1619214227971: i:1, thread: pool-123-thread-1, waiting for latch 
java.util.concurrent.CountDownLatch@4e14f763[Count = 1]
   1619214227971: Thread: grpc-default-executor-0, finished count down: 
java.util.concurrent.CountDownLatch@56c8e14a[Count = 0]
   1619214227965: i:2, thread: pool-123-thread-2, waiting for latch 
java.util.concurrent.CountDownLatch@56c8e14a[Count = 1]
   1619214227972: i:3, thread: pool-123-thread-3, url: InProcessServer_96
   1619214227972: i:2, thread: pool-123-thread-2, the 
latch(java.util.concurrent.CountDownLatch@56c8e14a[Count = 0]) returned?: true
   1619214227976: i:3, thread: pool-123-thread-3, waiting for latch 
java.util.concurrent.CountDownLatch@16506179[Count = 1]
   1619214287972: i:1, thread: pool-123-thread-1, the 
latch(java.util.concurrent.CountDownLatch@4e14f763[Count = 1]) returned?: false
   1619214287976: i:3, thread: pool-123-thread-3, the 
latch(java.util.concurrent.CountDownLatch@16506179[Count = 1]) returned?: false
   1619214288094: Thread: grpc-default-executor-8, about to count down: 
java.util.concurrent.CountDownLatch@24793c9d[Count = 1]
   1619214288094: Thread: grpc-default-executor-8, finished count down: 
java.util.concurrent.CountDownLatch@24793c9d[Count = 0]
   1619214288104: Thread: grpc-default-executor-8, about to count down: 
java.util.concurrent.CountDownLatch@2abec662[Count = 1]
   1619214288104: Thread: grpc-default-executor-8, finished count down: 
java.util.concurrent.CountDownLatch@2abec662[Count = 0]
   1619214288113: Thread: grpc-default-executor-9, about to count down: 
java.util.concurrent.CountDownLatch@3157d068[Count = 1]
   1619214288114: Thread: grpc-default-executor-9, finished count down: 
java.util.concurrent.CountDownLatch@3157d068[Count = 0]
   1619214288172: Thread: grpc-default-executor-7, about to count down: 
java.util.concurrent.CountDownLatch@6f4c3384[Count = 1]
   1619214288172: Thread: grpc-default-executor-7, finished count down: 
java.util.concurrent.CountDownLatch@6f4c3384[Count = 0]
   1619214288180: Thread: grpc-default-executor-8, about to count down: 
java.util.concurrent.CountDownLatch@6b83cc59[Count = 1]
   1619214288186: Thread: grpc-default-executor-8, finished count down: 
java.util.concurrent.CountDownLatch@6b83cc59[Count = 0]
   1619214288186: Thread: grpc-default-executor-10, about to count down: 
java.util.concurrent.CountDownLatch@44c364e8[Count = 1]
   1619214288186: Thread: grpc-default-executor-10, finished count down: 
java.util.concurrent.CountDownLatch@44c364e8[Count = 0]
   Standard Error
   [grpc-default-executor-4] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-4] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-4] WARN 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
failed unexpectedly.
   org.apache.beam.vendor.grpc.v1p36p0.io.grpc.StatusRuntimeException: 
CANCELLED: client cancelled
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Status.asRuntimeException(Status.java:526)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onCancel(ServerCalls.java:284)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.PartialForwardingServerCallListener.onCancel(PartialForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:23)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Contexts$ContextualizedServerCallListener.onCancel(Contexts.java:96)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closedInternal(ServerCallImpl.java:353)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closed(ServerCallImpl.java:341)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1Closed.runInContext(ServerImpl.java:844)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   [grpc-default-executor-4] WARN 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
failed unexpectedly.
   org.apache.beam.vendor.grpc.v1p36p0.io.grpc.StatusRuntimeException: 
CANCELLED: client cancelled
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Status.asRuntimeException(Status.java:526)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onCancel(ServerCalls.java:284)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.PartialForwardingServerCallListener.onCancel(PartialForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:23)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Contexts$ContextualizedServerCallListener.onCancel(Contexts.java:96)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closedInternal(ServerCallImpl.java:353)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closed(ServerCallImpl.java:341)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1Closed.runInContext(ServerImpl.java:844)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   [grpc-default-executor-0] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-2] WARN 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
failed unexpectedly.
   org.apache.beam.vendor.grpc.v1p36p0.io.grpc.StatusRuntimeException: 
CANCELLED: client cancelled
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Status.asRuntimeException(Status.java:526)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onCancel(ServerCalls.java:284)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.PartialForwardingServerCallListener.onCancel(PartialForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:23)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onCancel(ForwardingServerCallListener.java:40)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.Contexts$ContextualizedServerCallListener.onCancel(Contexts.java:96)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closedInternal(ServerCallImpl.java:353)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.closed(ServerCallImpl.java:341)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1Closed.runInContext(ServerImpl.java:844)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
org.apache.beam.vendor.grpc.v1p36p0.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   [grpc-default-executor-5] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-6] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-5] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
hanged up.
   [grpc-default-executor-7] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-7] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
hanged up.
   [grpc-default-executor-6] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Logging client 
hanged up.
   [grpc-default-executor-6] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-9] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [grpc-default-executor-8] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - Beam Fn 
Logging client connected.
   [Test worker] INFO 
org.apache.beam.runners.fnexecution.logging.GrpcLoggingService - 3 Beam Fn 
Logging clients still connected during shutdown.
   ```
   
   Given this timestamp, it did wait for 60 seconds, and the latch did not come.
   
   ```
   1619214227976: i:3, thread: pool-123-thread-3, waiting for latch 
java.util.concurrent.CountDownLatch@16506179[Count = 1]
   1619214287972: i:1, thread: pool-123-thread-1, the 
latch(java.util.concurrent.CountDownLatch@4e14f763[Count = 1]) returned?: false
   ```
   
   Interestingly the latch was changed after the thread giving up the 60-second 
timeout.




-- 
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:
[email protected]


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

    Worklog Id:     (was: 594634)
    Time Spent: 127h 50m  (was: 127h 40m)

> Upgrade beam-vendor-grpc-1_26_0-0.3 to fix CVE-2020-27216
> ---------------------------------------------------------
>
>                 Key: BEAM-11227
>                 URL: https://issues.apache.org/jira/browse/BEAM-11227
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system
>    Affects Versions: 2.21.0, 2.22.0, 2.23.0, 2.24.0, 2.25.0
>            Reporter: Boury Mbodj
>            Assignee: Tomo Suzuki
>            Priority: P1
>              Labels: apache-beam, beam
>          Time Spent: 127h 50m
>  Remaining Estimate: 0h
>
> *+Description+**:* [Apache Beam :: Vendored Dependencies :: GRPC :: 
> 1.26.0|https://mvnrepository.com/artifact/org.apache.beam/beam-vendor-grpc-1_26_0]
>  » 
> [0.3|https://mvnrepository.com/artifact/org.apache.beam/beam-vendor-grpc-1_26_0/0.3]
>  uses the dependency Eclipse Jetty (9.2.10.v20150310), which is prone to a  
> privilege escalation vulnerability. This issue (CVE-2020-27216) was published 
> on 23/10/2020.
> *+Affected Versions:+*
>  Eclipse Jetty versions 9.4.32.v20200930 and prior, 10.0.0.beta2 and prior 
> and 11.0.0.beta2 and prior.
>  *+Recommendation/+* *+Update Suggestion:+*
> Update the Eclipse Jetty dependency to version 9.4.33.v20201020, 
> 10.0.0.beta3, 11.0.0.beta3 or later.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to