scwhittle commented on a change in pull request #16537:
URL: https://github.com/apache/beam/pull/16537#discussion_r786645321
##########
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:
Created a subclass
--
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]