Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.4.12
-
None
-
None
Description
During test 2.4.12, we found a lot of our integration testing failure for the non-interactive mode in hbase-shell, looks like in 2.4.12, we removed the "shell.eval_io" for the non-interactive shell, this caused the input/output handle behavior for shell is the same for interactive and non-interactive which caused unexpected error, for example:
```
echo -e "disable_all '.*'\ny" | hbase shell -n
=====Old version 2.4.4=====
t1
Disable the above 1 tables (y/n)?
1 tables successfully disabled
Took 0.7811 seconds
=====New version 2.4.12=====
hbase:001:0> disable_all '.*'t1
test_tableDisable the above 2 tables (y/n)?
Took 0.5270 seconds
NoMethodError: undefined method `chomp' for nil:NilClass
command at uri:classloader:/shell/commands/disable_all.rb:41
command_safe at uri:classloader:/shell/commands.rb:49
translate_hbase_exceptions at uri:classloader:/shell/commands.rb:122
command_safe at uri:classloader:/shell/commands.rb:49
....
run at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:427
<main> at classpath:/jar-bootstrap.rb:223}}
```
Attachments
Issue Links
- is related to
-
HBASE-26469 correct HBase shell exit behavior to match code passed to exit
- Resolved
- links to