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

obproxy didn't bind to listen_port #9

Closed
stutiredboy opened this issue Jun 21, 2021 · 2 comments
Closed

obproxy didn't bind to listen_port #9

stutiredboy opened this issue Jun 21, 2021 · 2 comments

Comments

@stutiredboy
Copy link
Contributor

stutiredboy commented Jun 21, 2021

for example:

bin/obproxy -o enable_strict_kernel_release=False,enable_cluster_checkout=False,syslog_level=DEBUG --listen_port 3306 --prometheus_listen_port 22884 --rs_list "192.168.1.243:3306;192.168.1.244:3306;192.168.1.245:3306"

obproxy.log showed obproxy init succ with port 3306:

[2021-06-21 17:38:05.419882] INFO  [PROXY] ob_proxy_config.cpp:46 [7932][Y0-0] [lt=3] [dc=0] | listen_port                          = 3306
[2021-06-21 17:38:05.422586] INFO  [PROXY] ob_mysql_proxy_server_main.cpp:232 [7932][Y0-0] [lt=6] [dc=0] succ init mysql proxy port by config(proxy_port={10.90.71.13:0}, port=3306})

but actually, it didn't bind to the listen_port, instead it used a random port(after reboot obproxy, the port will change)

image

This bug may caused by these commits:

image

commits before de1c5e3 is ok.

@stutiredboy
Copy link
Contributor Author

5d57e2a

commit in src/obproxy/iocore/net/ob_inet.h may be the root cause of this sistuation.

@wgs13579
Copy link
Collaborator

fixed

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

No branches or pull requests

2 participants