[External] : Re: StructuredTaskScope and Futures
Pedro Lamarão
pedro.lamarao at prodist.com.br
Thu Jan 5 12:56:01 UTC 2023
>
> 2. If the purpose is just logging, wouldn’t it be more helpful if, upon
> failure, the policy would add all the exceptions as suppressed exceptions
> to the one it throws? Moreover, if you want to log an exception associated
> with each specific fork, the forks could log it themselves.
>
>
> Those suppressed exceptions are interesting, independently of the success
> of the computation.
> If each fork logs itself, you make the monitoring work harder because you
> are loosing the information that the errors are part of the same
> computation.
>
This is solved by log correlation techniques that you already need in order
to solve the same problem for the internal logging of each task.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230105/b42de34e/attachment.htm>
More information about the loom-dev
mailing list