Skip to content

Cached items get removed when upstream fetch is unsuccessful #4254

@agneevX

Description

@agneevX

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Issue Details

  • Version of AdGuard Home server:
    • 0.107.3
  • How did you install AdGuard Home:
    • Docker
  • How did you setup DNS configuration:
  • If it's a router or IoT, please write device model:
  • CPU architecture:
    • arm64
  • Operating system and version:
    • Ubuntu 20.04.3

Issue Details

It seems that cached records get deleted when an upstream query is unsuccessful, after the cached query is served.

I lost at internet at 5:16:29 PM, so when the query was made one second later, a cached query was served.
At 5:36:31, when the internet was back up already, the query was fetched from upstreams, instead of from the cache.

However I'd say this requires some more testing.

Additional Information

I remember v0.107.0 serving cached records for an infinite amount of time when upstreams were unreachable. This is why actually the network was functional even though I had misconfigured upstreams, funny story!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions