[ https://issues.apache.org/jira/browse/IGNITE-8217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Kozlov updated IGNITE-8217: ---------------------------------- Description: Example DbH2ServerStartup produces a huge annoying output on STDOUT redirected to file: {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 was: 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 > 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 > Priority: Minor > Fix For: 2.5 > > > Example DbH2ServerStartup produces a huge annoying output on STDOUT > redirected to file: > {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)