Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8217

Example DbH2ServerStartup produces a huge annoying output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.4
    • 2.5
    • None
    • None

    Description

      Example DbH2ServerStartup produces a huge annoying output on STDOUT redirected to file in autotests:

      Type 'q' and press 'Enter' to stop H2 TCP server...
       

      Due to code following:

      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.
              }
      }
      

      I suppose we can put Thread.sleep(1000) in the while loop and reduce repeating lines

      Attachments

        Activity

          People

            Unassigned Unassigned
            skozlov Sergey Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: