Skip to content

Commit 0851850

Browse files
committed
диагностика таймаута active top tags
1 parent 25c71fd commit 0851850

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/scala/ru/org/linux/tag/TagPageController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1998-2025 Linux.org.ru
2+
* Copyright 1998-2026 Linux.org.ru
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at
@@ -46,7 +46,7 @@ object TagPageController {
4646

4747
private val RecentPeriod: time.Duration = java.time.Duration.ofDays(365)
4848

49-
val Timeout: FiniteDuration = 500.millis
49+
val Timeout: FiniteDuration = 1000.millis
5050

5151
def isRecent(date: Instant): Boolean = date.isAfter(Instant.now().minus(RecentPeriod))
5252
}

src/main/scala/ru/org/linux/tag/TagService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class TagService(tagDao: TagDao, elastic: OpenSearchAsyncClient, actorSystem: Ac
198198
.withTimeout(deadline.timeLeft)
199199
.recover {
200200
case ex: TimeoutException =>
201-
logger.warn(s"Active top tags search timed out (${ex.getMessage})")
201+
logger.warn(s"Active top tags for $section / $group / $filter search timed out (${ex.getMessage})")
202202
Seq.empty
203203
case ex =>
204204
logger.warn("Unable to find active top tags", ex)

0 commit comments

Comments
 (0)