Sergey Kozlov created IGNITE-8217:
-------------------------------------

             Summary: Example DbH2ServerStartup produces a huge annoying output
                 Key: IGNITE-8217
                 URL: https://issues.apache.org/jira/browse/IGNITE-8217
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: Sergey Kozlov
             Fix For: 2.5


Example DbH2ServerStartup produces a huge annoying output:
{noformat}
Type 'q' and press 'Enter' to stop H2 TCP server...
 {noformat}
Due to code following:
{code:java}
try {
            do {
                System.out.println("Type 'q' and press 'Enter' to stop H2 TCP 
server...");
            }
            while ('q' != System.in.read());
        }
        catch (IOException ignored) {
            // No-op.
        }
}
{code}
I suppose we can put {{Thread.sleep(1000)}} in the \{{while}} loop and reduce 
repeating lines



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to