Skip to content

Tests: fix spawning of unmonitored servers#7756

Merged
yossigo merged 1 commit intoredis:unstablefrom
yossigo:fix-unmonitored-servers-in-tests
Sep 7, 2020
Merged

Tests: fix spawning of unmonitored servers#7756
yossigo merged 1 commit intoredis:unstablefrom
yossigo:fix-unmonitored-servers-in-tests

Conversation

@yossigo
Copy link
Collaborator

@yossigo yossigo commented Sep 7, 2020

There is an inherent race condition in port allocation for spawned
servers. If a server fails to start because a port is taken, a new port
is allocated. This fixes a problem where the logs are not truncated and
as a result a large number of unmonitored servers are started.

There is an inherent race condition in port allocation for spawned
servers. If a server fails to start because a port is taken, a new port
is allocated. This fixes a problem where the logs are not truncated and
as a result a large number of unmonitored servers are started.
@oranagra
Copy link
Member

oranagra commented Sep 7, 2020

@yossigo is a similar fix applicable for instances.tcl

@yossigo
Copy link
Collaborator Author

yossigo commented Sep 7, 2020

@oranagra No, instances.tcl does not pattern match the log but simply tries to connect to the port.

@yossigo yossigo merged commit 2df4cb9 into redis:unstable Sep 7, 2020
oranagra pushed a commit that referenced this pull request Sep 10, 2020
There is an inherent race condition in port allocation for spawned
servers. If a server fails to start because a port is taken, a new port
is allocated. This fixes a problem where the logs are not truncated and
as a result a large number of unmonitored servers are started.

(cherry picked from commit 2df4cb9)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
There is an inherent race condition in port allocation for spawned
servers. If a server fails to start because a port is taken, a new port
is allocated. This fixes a problem where the logs are not truncated and
as a result a large number of unmonitored servers are started.
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
There is an inherent race condition in port allocation for spawned
servers. If a server fails to start because a port is taken, a new port
is allocated. This fixes a problem where the logs are not truncated and
as a result a large number of unmonitored servers are started.

(cherry picked from commit 2df4cb9)
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.

2 participants