Git Product home page Git Product logo

Comments (6)

Zavierazo avatar Zavierazo commented on August 20, 2024

Hi devs @stevenschlansker @mikebell90 @gokceyucel @nedtwigg @pennello, I think the best to solve this are modify ProcessOutputLogger and add a new condition before the readLine. I tried to create a pull request for it, but I do not have permission to create branches.

            try {
                //Stop read when the buffer is empty
                if (!reader.ready()) {
                    return;
                }
                logger.info(reader.readLine());
            } catch (IOException e) {
                logger.error("while reading output", e);
                return;
            } finally {
                try {
                    reader.close();
                } catch (final IOException e) {
                    logger.error("caught i/o exception closing reader", e);
                }
            }

from otj-pg-embedded.

mikebell90 avatar mikebell90 commented on August 20, 2024

Thanks for writing in. @pennello committed that one so he'll probably make the call. I think your solution is still faulty and has a race, so it's not really a solution - a bandaid.

from otj-pg-embedded.

vikeshpandey avatar vikeshpandey commented on August 20, 2024

when can i expect a fix for this. It not really nice to see unwanted exceptions in your tests. It becomes more misleading when there is an exception but the program still continues.

from otj-pg-embedded.

pennello avatar pennello commented on August 20, 2024

Hey all, I think this is addressed by #69.

@pandey-vikesh

but why do i see this exception?

The reason is that we made a mistake in our implementation of the ProcessOutputLogger. Accidentally, we unconditionally closed the reader just after reading the first line! Oops!

when can i expect a fix for this.

Now! : ]

It not really nice to see unwanted exceptions in your tests. It becomes more misleading when there is an exception but the program still continues.

Totally agreed; this has been annoying us too.

@Zavierazo

but I do not have permission to create branches

Note that if you wanted, you could still have created a branch by forking the repo.

from otj-pg-embedded.

mikebell90 avatar mikebell90 commented on August 20, 2024

To clarify @pandey-vikesh we released 0.11.1 to fix the stream closed issue. Closing, but feel free to reopen if it doesn't solve your problem.

from otj-pg-embedded.

vikeshpandey avatar vikeshpandey commented on August 20, 2024

from otj-pg-embedded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.