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

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

                Author: ASF GitHub Bot
            Created on: 18/Jan/22 04:27
            Start Date: 18/Jan/22 04:27
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #16537:
URL: https://github.com/apache/beam/pull/16537#discussion_r786281423



##########
File path: 
sdks/java/fn-execution/src/main/java/org/apache/beam/sdk/fn/data/BeamFnDataInboundObserver2.java
##########
@@ -62,6 +62,9 @@ public static BeamFnDataInboundObserver2 forConsumers(
   private final Map<String, Map<String, EndpointStatus<TimerEndpoint<?>>>>
       transformIdToTimerFamilyIdToTimerEndpoint;
   private final CancellableQueue<BeamFnApi.Elements> queue;
+  // Share an exception used for close as constructing exception stack traces 
is expensive.
+  private static final Exception closeException =

Review comment:
       This will confuse people if we keep the original stack trace since it 
will be bound to the construction of this instance.
   
   We'll want to create an exception type or find a suitable alternative that 
passes false for `writeableStackTrace`:
   
https://docs.oracle.com/javase/7/docs/api/java/lang/RuntimeException.html#RuntimeException(java.lang.String,%20java.lang.Throwable,%20boolean,%20boolean)




-- 
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: 710238)
    Time Spent: 47h 50m  (was: 47h 40m)

> Optimize Java SDK harness
> -------------------------
>
>                 Key: BEAM-13015
>                 URL: https://issues.apache.org/jira/browse/BEAM-13015
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-harness
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: P2
>          Time Spent: 47h 50m
>  Remaining Estimate: 0h
>
> Use profiling tools to remove bundle processing overhead in the SDK harness.



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

Reply via email to