You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/07/24 18:54:21 UTC

[GitHub] [hbase] bitoffdev opened a new pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

bitoffdev opened a new pull request #2141:
URL: https://github.com/apache/hbase/pull/2141


   ## Changelog
   
   - Refactor Shell.export_commands to define commands using ruby lambdas.
     Additionally, this change stores a reference to shell_inst in scope so that
     we no longer need to assume the existance of the variable @shell.
   - Add logic to Shell class for constructing an IRB workspace with its own
     binding and non-global receiver. This workspace is loaded with all HBase and
     IRB commands.
   - Create new method on Shell for evaluating input from an arbitrary IO instance
     within the created IRB workspace. This is based on work by Hsieh that was
     previously in bin/hirb.rb. This method is more generic and more testable.
     This single pattern can be used for both executing files and reading from
     stdin, therefore reducing complexity.
   - Move special 'help' and 'tools' command definitions to shell.rb. These
     commands are tightly linked with an instance of the shell, so it is easiest
     to have them defined together.
   - Remove all global includes of HBaseConstants from ruby test files. Before
     this change, tests were loading these constants into the top level, which
     could cause tests to pass that should really fail.
   - Try to reduce the number of places that constants are included. I think it's
     best to reference each ruby constant's full name, but where that would cause
     a big diff I instead moved the include to the innermost Module or Class.
   - Update docs and comments
   - Remove unneccessary includes
   - Add shell --top-level-cmds compatibility flag. Since this PR removes all the
     HBase symbols from the top-level receiver (ie. main Object), it is possible
     (albeit unlikely) that this will break operator scripts. This flag will
     export all the commands at the top-level like the shell previously did.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] saintstack merged pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
saintstack merged pull request #2141:
URL: https://github.com/apache/hbase/pull/2141


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] Apache-HBase commented on pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on pull request #2141:
URL: https://github.com/apache/hbase/pull/2141#issuecomment-663767544


   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |   0m 21s |  Docker mode activated.  |
   | -0 :warning: |  yetus  |   0m  3s |  Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck  |
   ||| _ Prechecks _ |
   ||| _ master Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 22s |  Maven dependency ordering for branch  |
   | +1 :green_heart: |  mvninstall  |   4m 37s |  master passed  |
   | -0 :warning: |  javadoc  |   0m 16s |  root in master failed.  |
   ||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 11s |  Maven dependency ordering for patch  |
   | +1 :green_heart: |  mvninstall  |   4m 21s |  the patch passed  |
   | -0 :warning: |  javadoc  |   0m 14s |  root in the patch failed.  |
   ||| _ Other Tests _ |
   | -1 :x: |  unit  | 233m 25s |  root in the patch failed.  |
   |  |   | 246m 27s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile |
   | GITHUB PR | https://github.com/apache/hbase/pull/2141 |
   | Optional Tests | javac javadoc unit |
   | uname | Linux f0d3b70732de 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/hbase-personality.sh |
   | git revision | master / 975cdf7b88 |
   | Default Java | 2020-01-14 |
   | javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-root.txt |
   | javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-root.txt |
   | unit | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-root.txt |
   |  Test Results | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/testReport/ |
   | Max. process+thread count | 4544 (vs. ulimit of 12500) |
   | modules | C: hbase-shell . U: . |
   | Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/console |
   | versions | git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) |
   | Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] Apache-HBase commented on pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on pull request #2141:
URL: https://github.com/apache/hbase/pull/2141#issuecomment-663784601


   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |   0m 32s |  Docker mode activated.  |
   | -0 :warning: |  yetus  |   0m  3s |  Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck  |
   ||| _ Prechecks _ |
   ||| _ master Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 27s |  Maven dependency ordering for branch  |
   | +1 :green_heart: |  mvninstall  |   3m 48s |  master passed  |
   | +1 :green_heart: |  javadoc  |   2m 14s |  master passed  |
   ||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 14s |  Maven dependency ordering for patch  |
   | +1 :green_heart: |  mvninstall  |   3m 26s |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   2m 20s |  the patch passed  |
   ||| _ Other Tests _ |
   | -1 :x: |  unit  | 323m 25s |  root in the patch failed.  |
   |  |   | 339m 14s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile |
   | GITHUB PR | https://github.com/apache/hbase/pull/2141 |
   | Optional Tests | javac javadoc unit |
   | uname | Linux fd4e3dfff5ea 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/hbase-personality.sh |
   | git revision | master / 975cdf7b88 |
   | Default Java | 1.8.0_232 |
   | unit | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-root.txt |
   |  Test Results | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/testReport/ |
   | Max. process+thread count | 5193 (vs. ulimit of 12500) |
   | modules | C: hbase-shell . U: . |
   | Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/console |
   | versions | git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) |
   | Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] Apache-HBase commented on pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on pull request #2141:
URL: https://github.com/apache/hbase/pull/2141#issuecomment-663687955


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |   0m 32s |  Docker mode activated.  |
   ||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  No case conflicting files found.  |
   | +1 :green_heart: |  @author  |   0m  0s |  The patch does not contain any @author tags.  |
   ||| _ master Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 26s |  Maven dependency ordering for branch  |
   ||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m  7s |  Maven dependency ordering for patch  |
   | -0 :warning: |  rubocop  |   1m 32s |  The patch generated 31 new + 1770 unchanged - 27 fixed = 1801 total (was 1797)  |
   | +1 :green_heart: |  whitespace  |   0m  0s |  The patch has no whitespace issues.  |
   ||| _ Other Tests _ |
   | +1 :green_heart: |  asflicense  |   0m 22s |  The patch does not generate ASF License warnings.  |
   |  |   |   4m 24s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-general-check/output/Dockerfile |
   | GITHUB PR | https://github.com/apache/hbase/pull/2141 |
   | Optional Tests | dupname asflicense rubocop |
   | uname | Linux faad208bbbee 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/hbase-personality.sh |
   | git revision | master / 975cdf7b88 |
   | rubocop | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/artifact/yetus-general-check/output/diff-patch-rubocop.txt |
   | Max. process+thread count | 52 (vs. ulimit of 12500) |
   | modules | C: . hbase-shell U: . |
   | Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2141/1/console |
   | versions | git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) rubocop=0.80.0 |
   | Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] Apache-HBase commented on pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on pull request #2141:
URL: https://github.com/apache/hbase/pull/2141#issuecomment-664612746






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hbase] saintstack commented on pull request #2141: HBASE-11686 Shell code should create a binding / irb workspace instead of polluting the root namespace

Posted by GitBox <gi...@apache.org>.
saintstack commented on pull request #2141:
URL: https://github.com/apache/hbase/pull/2141#issuecomment-664762424


   Failures are in the abandoned backup module. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org