lukecwik commented on pull request #11351:
URL: https://github.com/apache/beam/pull/11351#issuecomment-708536481
That would work.
> Hi @lukecwik - Interestingly enough, I'm having it failing on the 2.23.0
version ?
>
> Code : catch (Exception e) {
> System.out.println("Failed to filter user data " + c.element());
> e.printStackTrace();
>
> I assume to work around would be to change it from send it to StackTrace
to another print out ?
>
> Errror :
> java.lang.IllegalStateException:
[BEAM-9399](https://issues.apache.org/jira/browse/BEAM-9399): publish should
not be called with the lock as it may cause deadlock
> at
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState(Preconditions.java:507)
> at
org.apache.beam.runners.dataflow.worker.logging.JulHandlerPrintStreamAdapterFactory$JulHandlerPrintStream.publishIfNonEmpty(JulHandlerPrintStreamAdapterFactory.java:380)
> at
org.apache.beam.runners.dataflow.worker.logging.JulHandlerPrintStreamAdapterFactory$JulHandlerPrintStream.println(JulHandlerPrintStreamAdapterFactory.java:332)
> at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:748)
> at java.lang.Throwable.printStackTrace(Throwable.java:655)
> at java.lang.Throwable.printStackTrace(Throwable.java:643)
> at java.lang.Throwable.printStackTrace(Throwable.java:634)
> at
com.metix.historic.transforms.FilterAndMapPatientsByAge.processElement(FilterAndMapPatientsByAge.java:25)
Yes, using another printstream would work around the issue.
@scwhittle Any ideas as to why it would be broken in 2.23?
----------------------------------------------------------------
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]