2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#2682] Addressed comments

This commit is contained in:
Francis Dupont
2023-02-07 09:42:17 +01:00
parent 06ec4d525d
commit 0c99d67dbc
3 changed files with 27 additions and 20 deletions

View File

@@ -1,3 +1,10 @@
2092. [bug] fdupont
Added logic to kea-dhcp4 and kea-dhcp6 to catch and log
database connection errors that occur during lease
reclamation. Prior to this such errors caused the
reclamation timer to not get rescheduled.
(Gitlab #2682)
2091. [bug] marcin
Fixed a bug that caused a response to a config-get command
to lack the configured read-timeout, write-timeout, and

View File

@@ -2343,8 +2343,8 @@ AllocEngine::reclaimExpiredLeases6(const size_t max_leases,
.arg(timeout);
try {
reclaimExpiredLeases6NoExc(max_leases, timeout, remove_lease,
max_unwarned_cycles);
reclaimExpiredLeases6Internal(max_leases, timeout, remove_lease,
max_unwarned_cycles);
} catch (const std::exception& ex) {
LOG_ERROR(alloc_engine_logger,
ALLOC_ENGINE_V6_LEASES_RECLAMATION_FAILED)
@@ -2353,10 +2353,10 @@ AllocEngine::reclaimExpiredLeases6(const size_t max_leases,
}
void
AllocEngine::reclaimExpiredLeases6NoExc(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles) {
AllocEngine::reclaimExpiredLeases6Internal(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles) {
// Create stopwatch and automatically start it to measure the time
// taken by the routine.
@@ -2506,8 +2506,8 @@ AllocEngine::reclaimExpiredLeases4(const size_t max_leases,
.arg(timeout);
try {
reclaimExpiredLeases4NoExc(max_leases, timeout, remove_lease,
max_unwarned_cycles);
reclaimExpiredLeases4Internal(max_leases, timeout, remove_lease,
max_unwarned_cycles);
} catch (const std::exception& ex) {
LOG_ERROR(alloc_engine_logger,
ALLOC_ENGINE_V4_LEASES_RECLAMATION_FAILED)
@@ -2516,10 +2516,10 @@ AllocEngine::reclaimExpiredLeases4(const size_t max_leases,
}
void
AllocEngine::reclaimExpiredLeases4NoExc(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles) {
AllocEngine::reclaimExpiredLeases4Internal(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles) {
// Create stopwatch and automatically start it to measure the time
// taken by the routine.

View File

@@ -665,10 +665,10 @@ public:
/// of expired leases, after which the system issues a warning if there
/// are still expired leases in the database. If this value is 0, the
/// warning is never issued.
void reclaimExpiredLeases6NoExc(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles = 0);
void reclaimExpiredLeases6Internal(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles = 0);
/// @brief Deletes reclaimed leases expired more than specified amount
/// of time ago.
@@ -741,10 +741,10 @@ public:
/// of expired leases, after which the system issues a warning if there
/// are still expired leases in the database. If this value is 0, the
/// warning is never issued.
void reclaimExpiredLeases4NoExc(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles = 0);
void reclaimExpiredLeases4Internal(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles = 0);
/// @brief Deletes reclaimed leases expired more than specified amount
/// of time ago.