[jira] [Updated] (HBASE-27116) Non-interactive missing for the hbase-shell
[ https://issues.apache.org/jira/browse/HBASE-27116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dong0829 updated HBASE-27116: - Status: Patch Available (was: Open) https://github.com/apache/hbase/pull/4531 > Non-interactive missing for the hbase-shell > --- > > Key: HBASE-27116 > URL: https://issues.apache.org/jira/browse/HBASE-27116 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 2.4.12 >Reporter: Dong0829 >Priority: Major > > 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 >at classpath:/jar-bootstrap.rb:223}} > ``` -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Updated] (HBASE-27116) Non-interactive missing for the hbase-shell
[ https://issues.apache.org/jira/browse/HBASE-27116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dong0829 updated HBASE-27116: - 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 at classpath:/jar-bootstrap.rb:223}} ``` was: 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 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 at classpath:/jar-bootstrap.rb:223}} ``` > Non-interactive missing for the hbase-shell > --- > > Key: HBASE-27116 > URL: https://issues.apache.org/jira/browse/HBASE-27116 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 2.4.12 >Reporter: Dong0829 >Priority: Major > > 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 >at classpath:/jar-bootstrap.rb:223}} > ``` -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Updated] (HBASE-27116) Non-interactive missing for the hbase-shell
[ https://issues.apache.org/jira/browse/HBASE-27116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dong0829 updated HBASE-27116: - 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 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 at classpath:/jar-bootstrap.rb:223}} ``` was: 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 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 at classpath:/jar-bootstrap.rb:223}} ``` > Non-interactive missing for the hbase-shell > --- > > Key: HBASE-27116 > URL: https://issues.apache.org/jira/browse/HBASE-27116 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 2.4.12 >Reporter: Dong0829 >Priority: Major > > 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 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 >at classpath:/jar-bootstrap.rb:223}} > ``` -- This message was sent by Atlassian Jira (v8.20.7#820007)