Hi guys,

just wanted to send a head ups I'm trying to make the pipeline options
classloader usage being enhanced to support an execution where the
sdks-java-core is not in the same classloader than the runner. I sent a
functional PR on that aspect at https://github.com/apache/beam/pull/4674 -
side note: if it is ok to eagerly merge without test I'm fine doing another
PR later to add the test.

I'm planning to add tests later this week but would like to give this
"small" fix some more noise because I think we should try to be better at
handling classloaders and not let our code use the "defaulting pattern"
currentClass.getClassLoader() when we are not sure what to use.

To give a small bakground on where I hit that: I have a test framework
supporting to switch the runner depending some config:

TheTransformTest {
    void testWithStandaloneAndBeamEnvironments() {
        // add asserts on the output if needed

This will execute the method 4 times (once per env).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book

Reply via email to