arvindKandpal-ksolves commented on PR #7973:
URL: https://github.com/apache/hbase/pull/7973#issuecomment-4179303976
Hi @liuxiaocs7 @NihalJain @Apache9,
- Following up on the discussion in #8015 , I did a quick deep dive into the
codebases and wanted to share why things were acting weird:
- The Root Cause: The backport only brought over the Ruby files but missed
the Java backend (reopenTableRegions), which is why the shell is throwing the
NoMethodError.
- Why CI passed on branch-2.5 but failed on branch-2.6:
I verified that the broken Ruby code actually exists in both branches.
However, the **tests_runner.rb** in branch-2.5 hardcodes the test discovery
pattern to only look for `/**/*_test.rb`. Since the new test is named
reopen_regions_test_cluster.rb, the 2.5 runner completely ignores it!
branch-2.6 uses an updated runner that correctly catches the file, which is why
it crashes there.
- If the changes are going to be reverted, I believe no action is needed
from my side. Please let me know if I can help further.
In branch-2.5 (hbase-shell/src/test/ruby/tests_runner.rb) :
```
files = Dir[ File.dirname(__FILE__) + "/**/*_test.rb" ]
```
In branch-2.6 (hbase-shell/src/test/ruby/tests_runner.rb):
```
files = Dir[ File.dirname(__FILE__) + "/" + test_suite_pattern ]
```
If I’m mistaken anywhere, please feel free to correct me.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]