diff --git a/src/workerd/io/actor-cache.c++ b/src/workerd/io/actor-cache.c++ index 190b60b3c5a..ffb69137530 100644 --- a/src/workerd/io/actor-cache.c++ +++ b/src/workerd/io/actor-cache.c++ @@ -2056,6 +2056,12 @@ ActorCache::DeleteAllResults ActorCache::deleteAll(WriteOptions options, SpanPar evictOrOomIfNeeded(lock); } + KJ_IF_SOME(t, currentAlarmTime.tryGet()) { + if (t.time != kj::none) { + LOG_WARNING_PERIODICALLY("NOSENTRY deleteAll() called on ActorCache with an alarm still set"); + } + } + return DeleteAllResults{.backpressure = getBackpressure(), .count = kj::mv(result)}; } diff --git a/src/workerd/io/actor-sqlite.c++ b/src/workerd/io/actor-sqlite.c++ index 0eb72b6a95b..8d4b61b395e 100644 --- a/src/workerd/io/actor-sqlite.c++ +++ b/src/workerd/io/actor-sqlite.c++ @@ -767,6 +767,9 @@ ActorCacheInterface::DeleteAllResults ActorSqlite::deleteAll( // the metadata table, to try to match the behavior of ActorCache, which preserves the set alarm // when running deleteAll(). auto localAlarmState = metadata.getAlarm(); + if (localAlarmState != kj::none) { + LOG_WARNING_PERIODICALLY("NOSENTRY deleteAll() called on ActorSqlite with an alarm still set"); + } // deleteAll() cannot be part of a transaction because it deletes the database altogether. So, // we have to close our transactions or fail.