You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Upgrading related joni and jcodings to 2.1.48 and 1.0.58 respectively
Adding -W0 option to JRUBY_OPTS as it outputs below warning when hbase shell is launched;
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
CHECKS
Launched HBase shell.
Executed unit tests without cluster;
[INFO] Running org.apache.hadoop.hbase.client.TestShellNoCluster
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 s - in org.apache.hadoop.hbase.client.TestShellNoCluster
[INFO] Running org.apache.hadoop.hbase.client.TestTableShell
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.595 s - in org.apache.hadoop.hbase.client.TestTableShell
No more vulnerable snakeyaml dependency;
> jar -tvf ./lib/jruby-complete-* | grep -i snake
0 Wed Mar 08 16:02:56 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/
22 Wed Mar 08 10:02:04 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/.jrubydir
0 Wed Mar 08 16:02:56 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/
34 Wed Mar 08 10:02:04 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/.jrubydir
0 Wed Mar 08 16:02:56 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/2.6/
30 Wed Mar 08 10:02:04 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/2.6/.jrubydir
292124 Wed Mar 08 10:02:04 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/2.6/snakeyaml-engine-2.6.jar
305 Wed Mar 08 10:02:04 UTC 2023 META-INF/jruby.home/lib/ruby/stdlib/org/snakeyaml/snakeyaml-engine/maven-metadata-local.xml
>
@busbey I think it is OK to bump the jruby version for master, branch-3 and branch-2, I'm not sure if it is OK to bump them for other 2.x release lines. WDYT?
Looks like jruby-complete-9.4.X.X breaks HBase Shell non-interactive mode, please refer to jruby/jruby#7600 (comment).
> hbase shell -n
ERROR NoMethodError: undefined method `conf' for IRB:Module
NoMethodError: undefined method `conf' for IRB:Module
initialize at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/workspace.rb:72
new at org/jruby/RubyClass.java:904
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MOTIVATION
Current version of
jruby
(9.3.9.0) hassnakeyaml
dependency version1.33
which is affected by critical CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1471SOLUTION
jruby
to the latest version;9.4.2.0
joni
andjcodings
to2.1.48
and1.0.58
respectively-W0
option toJRUBY_OPTS
as it outputs below warning whenhbase
shell is launched;CHECKS
snakeyaml
dependency;