Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dubbo-6463] fix issue: start.sh can't work when dubbo.properties contain commented dubbo.protocol.port property #6508

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

yiocio
Copy link
Contributor

@yiocio yiocio commented Jul 23, 2020

What is the purpose of the change

fix issue #6463 : start.sh can't work when dubbo.properties contain commented dubbo.protocol.port property

Brief changelog

dubbo-container/dubbo-container-api/src/main/resources/META-INF/assembly/bin/start.sh

Verifying this change

When configure the port of dubbo protocol in dubbo.properties file, start.sh will parse dubbo.properties using sed and get the dubbo protocol port number, then determine whether the application starts successfully by checking whether the port is opened.

But the mechanism of parsing dubbo protocol port isn't rigorous, when my dubbo.properties contains commented dubbo.protocol.port like this:

#dubbo.protocol.port=20943
dubbo.protocol.port=20945

start.sh will get wrong port number, and can't work normally.

Copy link
Member

@AlbumenJ AlbumenJ left a comment

Choose a reason for hiding this comment

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

LGTM.

@AlbumenJ AlbumenJ merged commit 24ca37b into apache:master Feb 25, 2021
AlbumenJ added a commit to AlbumenJ/dubbo that referenced this pull request May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants