Skip to content

Commit

Permalink
ENH: lib/pipeline: redis OOM can be low memory
Browse files Browse the repository at this point in the history
related: #1405
  • Loading branch information
Sebastian Wagner committed May 13, 2019
1 parent 6c8d952 commit 382196e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CHANGELOG
### Core
- Add more and fix some existing type annotations.
- `intelmq.lib.bot`: Use `statistics_*` parameters for bot's statistics (#1402).
- `intelmq.lib.pipeline`: redis: OOM can also be low memory, add this to log message (#1405).

### Development
- Applied isort to all core files and core-related test files, sorting the imports there (every thing except bots and bots' tests).
Expand Down
2 changes: 1 addition & 1 deletion intelmq/lib/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def send(self, message, path="_default", path_permissive=False):
"OOM command not allowed when used memory > 'maxmemory'." in exc.args[0]:
raise MemoryError(exc.args[0])
elif 'Redis is configured to save RDB snapshots, but is currently not able to persist on disk' in exc.args[0]:
raise IOError(28, 'No space left on device. Redis can\'t save its snapshots.')
raise IOError(28, 'No space left on device or in memory. Redis can\'t save its snapshots. Look at redis\'s logs.')
raise exceptions.PipelineError(exc)

def receive(self):
Expand Down

0 comments on commit 382196e

Please sign in to comment.