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

[Sentinel] Notification script fails to execute which fills up disk space. #4443

Open
techmaniack opened this issue Nov 15, 2017 · 2 comments
Labels
Milestone

Comments

@techmaniack
Copy link

Sample log entries:

1317:X 11 Nov 18:03:04.179 # -script-error /etc/notify.sh 99 0
1317:X 11 Nov 18:03:04.179 # -script-error /etc/notify.sh 99 0
1317:X 11 Nov 18:03:04.179 # -script-error /etc/notify.sh 99 0

Script.

#!/usr/bin/env bash
if [ $1 = '+promoted-slave' ]
then
	curl URI
fi

These log entries filled up entire disk which brought the host down.

In the readme it is mentioned that the notification script will be retried max of 10 times, why would it go in this dead loop?

redis version: 3.2.4

@techmaniack techmaniack changed the title Notification script fails to execute which fills up disk space. [Sentinel] Notification script fails to execute which fills up disk space. Nov 16, 2017
@antirez
Copy link
Contributor

antirez commented Nov 16, 2017

Thanks for reporting @techmaniack, this is an interesting thing, moreover there is a general problem with Redis in general terms: the logging system should be somewhat able to recognize duplicated entries (even not adjacent, but the same error reported multiple times in a short time) and limit it, syslog style, saying [55 times in the latest 2 minutes] ... and stuff like that. Here there is also the additional problem of the script being retried too many times, I'll check what is the exact theoretical semantics and the practical one as well.

@antirez antirez added this to the Urgent milestone Nov 22, 2017
@techmaniack
Copy link
Author

You can close this issue if it's already fixed or not in the roadmap.

Or if you think that it's a low hanging fruit (can be worked upon by someone who have never seen the redis codebase), I could send a patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants