graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Lookup cache: bubble up error results without modifying

Open patrickmann opened this issue 1 year ago • 0 comments

Resolves #19159

Description

Lookup cache needs to distinguish between empty results and error results. The latter should not be altered, in particular the TTL.

How Has This Been Tested?

Unit test

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Refactoring (non-breaking change)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have read the CONTRIBUTING document.
  • [x] I have added tests to cover my changes.

patrickmann avatar Jun 18 '24 13:06 patrickmann