Skip to content

Commit

Permalink
Minor changes based on review
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
nmarton-da committed Jul 21, 2021
1 parent 26d55b2 commit a8382b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ object PreemptableSequence {
go(body).transformWith {
// since we check countdown to 0, starting from negative means unlimited retries
case Failure(ex) if maxAmountOfRetries == 0 =>
logger.info(
s"Maximum amount of retries reached ($maxAmountOfRetries) failing permanently. (${ex.getMessage})"
logger.warn(
s"Maximum amount of retries reached ($maxAmountOfRetries) failing permanently.",
ex,
)
Future.failed(ex)
case Success(t) => Future.successful(t)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ object ParallelIndexerFactory {
.map(_ -> System.nanoTime())
)
.map(_ => ())
.keepAlive( // TODO ha: remove as stable. This keepAlive approach was introduced for safety with async commit. This is still needed until HA is mandatory for Postgres to ensure safety with async commit.
.keepAlive( // TODO ha: remove as stable. This keepAlive approach was introduced for safety with async commit. This is still needed until HA is mandatory for Postgres to ensure safety with async commit. This will not needed anymore if HA is enabled by default, since the Ha mutual exclusion implementation with advisory locks makes impossible to let a db-shutdown go undetected.
keepAliveMaxIdleDuration,
() =>
if (dbDispatcher.currentHealth() == HealthStatus.healthy) {
Expand Down

0 comments on commit a8382b2

Please sign in to comment.