Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26772

Shell suspended in background

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.5.0, 3.0.0-alpha-3, 2.4.11
    • shell
    • None

    Description

      The hbase shell process hangs when running in the background with piped input.

      $ cat command.sh
      #!/bin/bash
      echo "list" | bin/hbase shell > shell.out 2>&1 
      $ ./command.sh &
      [1] 62907
      $ 
      [1]  + 62907 suspended (tty output)  ./command.sh

      This regression was introduced with JRuby 9.1 -> 9.2 upgrade and the process hangs on this line: https://github.com/apache/hbase/blob/master/hbase-shell/src/main/ruby/jar-bootstrap.rb#L41

       

      Attachments

        Issue Links

          Activity

            People

              psomogyi Peter Somogyi
              psomogyi Peter Somogyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: