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

FailoverReactor did not stop when spring application failed to start #3161

Closed
afghanistanyn opened this issue Jun 23, 2020 · 5 comments
Closed
Labels
status/invalid This doesn't seem right

Comments

@afghanistanyn
Copy link

Issue Description

Type: bug report

nacos FailoverReactor did not stop when spring application failed to start

my application always print logs when app failed to start
12:00:33.223 [com.alibaba.nacos.naming.failover] DEBUG com.alibaba.nacos.client.naming.run - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
12:00:38.223 [com.alibaba.nacos.naming.failover] DEBUG com.alibaba.nacos.client.naming.run - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
12:00:43.224 [com.alibaba.nacos.naming.failover] DEBUG com.alibaba.nacos.client.naming.run - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
12:00:48.225 [com.alibaba.nacos.naming.failover] DEBUG com.alibaba.nacos.client.naming.run - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
12:00:53.226 [com.alibaba.nacos.naming.failover] DEBUG com.alibaba.nacos.client.naming.run - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
...

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

<nacos.client.version>1.1.1</nacos.client.version>
<nacos.config.version>0.8.0</nacos.config.version>

Anything else we need to know?

i use supervisor to start the app, the status is always running even app failed to start

@KomachiSion
Copy link
Collaborator

Can you use new version to have a try?
If still problem, please detail your reproduce step.

@KomachiSion
Copy link
Collaborator

No response more than 7 days, close issue

@coolbeevip
Copy link

coolbeevip commented Nov 5, 2020

I have the same problem, and it doesn’t happen every time. It is normal after restarting the service

nacos-client 1.2.1
spring-cloud-starter-alibaba-nacos-config 2.2.1
spring-cloud-starter-alibaba-nacos-discovery 2.2.1

INFO log stops at the following location

2020-11-05 14:00:32,916 [main] O [com.alibaba.nacos.client.naming] InitUtils.java:56 - initializer namespace from System Property :null
2020-11-05 14:00:32,917 [main] O [com.alibaba.nacos.client.naming] InitUtils.java:65 - initializer namespace from System Environment :null
2020-11-05 14:00:32,918 [main] O [com.alibaba.nacos.client.naming] InitUtils.java:75 - initializer namespace from System Property :null

After modifying the log level to DEBUG, you can see the following log

2020-11-05 14:00:37,949 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:00:42,950 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:00:47,950 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:00:51,320 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:00:51,320 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:00:52,951 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:00:57,951 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:02,934 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:01:02,952 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:07,952 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:12,953 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:17,953 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:21,321 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:01:21,322 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:01:21,806 [java-sdk-http-connection-reaper] G [o.a.h.impl.conn.PoolingHttpClientConnectionManager] PoolingHttpClientConnectionManager.java:441 - Closing connections idle longer than 60000 MILLISECONDS
2020-11-05 14:01:22,954 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:27,954 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:32,935 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:01:32,955 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:37,955 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:42,956 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:47,956 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:51,322 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:01:51,323 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:01:52,957 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:01:57,957 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:02,936 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:02:02,958 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:07,958 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:12,959 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:17,960 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:21,323 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:02:21,323 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:02:21,807 [java-sdk-http-connection-reaper] G [o.a.h.impl.conn.PoolingHttpClientConnectionManager] PoolingHttpClientConnectionManager.java:441 - Closing connections idle longer than 60000 MILLISECONDS
2020-11-05 14:02:22,960 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:27,961 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:32,936 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:02:32,961 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:37,962 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:42,962 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:47,963 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:51,324 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:02:51,324 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:02:52,963 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:02:57,964 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:02,937 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:03:02,964 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:07,965 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:12,965 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:17,966 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:21,324 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:03:21,325 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:03:21,808 [java-sdk-http-connection-reaper] G [o.a.h.impl.conn.PoolingHttpClientConnectionManager] PoolingHttpClientConnectionManager.java:441 - Closing connections idle longer than 60000 MILLISECONDS
2020-11-05 14:03:22,966 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:27,967 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:32,938 [com.alibaba.nacos.client.naming.updater] G [com.alibaba.nacos.client.naming] NamingProxy.java:169 - server list provided by user: [10.19.88.22:8848]
2020-11-05 14:03:32,967 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:37,968 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:42,968 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:47,969 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00
2020-11-05 14:03:51,325 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:421 - HikariPool-1 - Pool stats (total=10, active=0, idle=10, waiting=0)
2020-11-05 14:03:51,325 [HikariPool-1 housekeeper] G [com.zaxxer.hikari.pool.HikariPool] HikariPool.java:517 - HikariPool-1 - Fill pool skipped, pool is at sufficient level.
2020-11-05 14:03:52,969 [com.alibaba.nacos.naming.failover] G [com.alibaba.nacos.client.naming] FailoverReactor.java:110 - failover switch is not found, failover00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00

@tuyrk
Copy link

tuyrk commented Dec 30, 2020

I have the same problem

@afghanistanyn
Copy link
Author

solved, just update the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants