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

Following a new leader should abort current load of the AOF #690

Open
Kilowhisky opened this issue Jun 22, 2023 · 0 comments
Open

Following a new leader should abort current load of the AOF #690

Kilowhisky opened this issue Jun 22, 2023 · 0 comments

Comments

@Kilowhisky
Copy link

Describe the bug
If I start up a server that has a (large) AOF on disk and then immediately tell the server to FOLLOW a new leader. The server responds with an error that its currently loading the AOF and cannot accept the request. I have to wait for the AOF to be fully loaded before I can tell it to FOLLOW a new leader.

To Reproduce

  1. Startup server and insert large set of data in order to grow the AOF.
  2. Startup a secondary server and more or less leave it empty.
  3. Restart the first server and while its busy trying to load the AOF, instruct it to FOLLOW the second server.
  4. Watch it complain about not being able to complete the request.

Expected behavior
I would expect certain commands to immediately stop the AOF loading as they make it pointless.

  1. FLUSHDB
  2. FOLLOW

Operating System (please complete the following information):

  • OS: Linux
  • CPU: amd64
  • Version: 1.30.0 (edge)
  • Container: Docker
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

1 participant