Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7594 Add a SQL client
  3. FLINK-9361

Changing refresh interval in changelog mode leads to exception

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: Table SQL / Client
    • Labels:
      None

      Description

      Changing the refresh interval in changelog mode leads to the following exception in the SQL CLI Client:

      Exception in thread "Thread-5" java.io.IOError: java.io.InterruptedIOException: Command interrupted
      	at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:62)
      	at org.jline.terminal.Terminal.getWidth(Terminal.java:103)
      	at org.apache.flink.table.client.cli.CliClient.isPlainTerminal(CliClient.java:131)
      	at org.apache.flink.table.client.cli.CliClient.clearTerminal(CliClient.java:119)
      	at org.apache.flink.table.client.cli.CliView.display(CliView.java:191)
      	at org.apache.flink.table.client.cli.CliChangelogResultView.display(CliChangelogResultView.java:95)
      	at org.apache.flink.table.client.cli.CliResultView$RefreshThread.run(CliResultView.java:250)
      Caused by: java.io.InterruptedIOException: Command interrupted
      	at org.jline.utils.ExecHelper.exec(ExecHelper.java:46)
      	at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:175)
      	at org.jline.terminal.impl.ExecPty.getSize(ExecPty.java:169)
      	at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
      	... 6 more
      Caused by: java.lang.InterruptedException
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:502)
      	at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395)
      	at org.jline.utils.ExecHelper.waitAndCapture(ExecHelper.java:66)
      	at org.jline.utils.ExecHelper.exec(ExecHelper.java:36)
      	... 9 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                twalthr Timo Walther
                Reporter:
                twalthr Timo Walther
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: