Skip to content

Conversation

@mxsm
Copy link
Member

@mxsm mxsm commented Jan 1, 2023

Make sure set the target branch to develop

What is the purpose of the change

close #5800

Brief changelog

  • Fix start producer.sh can't find java execute file

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@codecov-commenter
Copy link

Codecov Report

Merging #5801 (fe79bd1) into develop (e1dfc0d) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #5801      +/-   ##
=============================================
- Coverage      42.38%   42.37%   -0.01%     
+ Complexity      8223     8220       -3     
=============================================
  Files           1060     1060              
  Lines          73374    73374              
  Branches        9602     9602              
=============================================
- Hits           31096    31092       -4     
- Misses         38364    38367       +3     
- Partials        3914     3915       +1     
Impacted Files Coverage Δ
...e/rocketmq/store/ha/autoswitch/EpochFileCache.java 77.08% <0.00%> (-4.17%) ⬇️
...a/org/apache/rocketmq/filter/util/BloomFilter.java 60.43% <0.00%> (-2.20%) ⬇️
...ava/org/apache/rocketmq/filter/util/BitsArray.java 58.11% <0.00%> (-1.71%) ⬇️
.../org/apache/rocketmq/store/index/IndexService.java 59.00% <0.00%> (-1.00%) ⬇️
...main/java/org/apache/rocketmq/store/CommitLog.java 65.13% <0.00%> (-0.21%) ⬇️
...a/org/apache/rocketmq/store/StoreStatsService.java 34.53% <0.00%> (ø)
...ent/impl/consumer/DefaultLitePullConsumerImpl.java 70.00% <0.00%> (+0.15%) ⬆️
...mq/store/ha/autoswitch/AutoSwitchHAConnection.java 71.62% <0.00%> (+0.27%) ⬆️
...che/rocketmq/acl/plain/PlainPermissionManager.java 78.76% <0.00%> (+0.53%) ⬆️
...he/rocketmq/client/trace/AsyncTraceDispatcher.java 83.65% <0.00%> (+1.44%) ⬆️
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

JAVA_HOME=$(/usr/libexec/java_home)
;;
*)
JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will get an error if which javac get nothing.

Comment on lines +76 to 79
find_java_home

if [ -z "$JAVA_HOME" ]; then
JAVA_HOME=/usr/java
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function find_java_home should be executed only if JAVA_HOME is null. Otherwise, user-specified JAVA_HOME will be overwritten.

@ni-ze
Copy link
Contributor

ni-ze commented Jan 9, 2023

Set your JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.al8.x86_64/jre, this error maybe resolved.

@github-actions
Copy link

This PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.

@github-actions github-actions bot added the stale label Jan 10, 2024
@github-actions
Copy link

This PR was closed because it has been inactive for 3 days since being marked as stale.

@github-actions github-actions bot closed this Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix start producer.sh can't find java execute file

8 participants