HBASE-2815 not able to run the test suite in background because TestShell gets suspended on tty output
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@978973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
04bf6f48e4
commit
e60312c1bd
|
@ -454,6 +454,8 @@ Release 0.21.0 - Unreleased
|
||||||
becomes invalid (Benôit Sigoure via Stack)
|
becomes invalid (Benôit Sigoure via Stack)
|
||||||
HBASE-2876 HBase hbck: false positive error reported for parent regions
|
HBASE-2876 HBase hbck: false positive error reported for parent regions
|
||||||
that are in offline state in meta after a split
|
that are in offline state in meta after a split
|
||||||
|
HBASE-2815 not able to run the test suite in background because TestShell
|
||||||
|
gets suspended on tty output (Alexey Kovyrin via Stack)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -30,13 +30,9 @@ module Shell
|
||||||
end
|
end
|
||||||
|
|
||||||
def refresh_width()
|
def refresh_width()
|
||||||
@max_width = Java::jline.Terminal.getTerminal().getTerminalWidth()
|
@max_width = Java::jline.Terminal.getTerminal().getTerminalWidth() if $stdout.tty?
|
||||||
|
# the above doesn't work in some terminals (such as shell running within emacs)
|
||||||
# the above doesn't work in some terminals
|
@max_width = 100 if @max_width.to_i.zero?
|
||||||
# (such as shell running within emacs)
|
|
||||||
if @max_width == 0
|
|
||||||
@max_width = 100
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Takes an output stream and a print width.
|
# Takes an output stream and a print width.
|
||||||
|
|
Loading…
Reference in New Issue