Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: c819f70b75bb180caac31b4701d6aedf05eaafc7
https://github.com/tribe29/checkmk/commit/c819f70b75bb180caac31b4701d6aedf0…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-06-25 (Fri, 25 Jun 2021)
Changed paths:
A .werks/12303
M cmk/base/automations/check_mk.py
M cmk/base/checkers/_abstract.py
M cmk/base/checkers/_checkers.py
M cmk/base/checkers/snmp.py
M cmk/base/config.py
M cmk/base/discovery.py
M cmk/base/modes/check_mk.py
M cmk/fetchers/__init__.py
M cmk/fetchers/_base.py
M cmk/fetchers/controller.py
M tests/unit/cmk/base/checkers/test_agent.py
M tests/unit/cmk/base/checkers/test_cmd_caching.py
M tests/unit/cmk/base/checkers/test_host_sections.py
M tests/unit/cmk/base/checkers/test_tcp_data_source.py
M tests/unit/cmk/base/test_config.py
M tests/unit/cmk/fetchers/test_fetchers.py
Log Message:
-----------
12303 FIX Fix cache miss on discovery
Let cache max age depend on the mode
This changes the type of `max_age` from `int` to its own type in
the fetcher caches and the other changes use mypy and are mechanical.
This fixes a problem with the cache invalidation of the
discovery data. This could have two consequences:
a performance problem where the hosts would be unnecessarily
queries; or the opposite where the data would not
be refreshed.
CMK-8136
Change-Id: Ifa046669f87c5f8d54e52f00c422693f8766339b