The GitHub Actions job "Build" on jackrabbit-oak.git/OAK-12394 has failed.
Run started by GitHub user thomasmueller (triggered by thomasmueller).

Head commit for run:
157cc898a29f37cd8eae407c764bd898da18c0e2 / Mișu Bercea <[email protected]>
OAK-12394: Async indexing LAST_INDEXED_TIME metric should reflect durable repo 
property (#3112)

* OAK-12394: Initialise LAST_INDEXED_TIME counter from durable repo property on 
startup

The LAST_INDEXED_TIME counter starts at 0 on every restart, so a lane that
fails immediately after restart is invisible to monitoring — the counter
never advances past 0 and the > 0 guard in alert queries silently drops it.

Initialise the counter at construction from the durable
:async/<lane>-LastIndexedTo repository property. A correct non-zero value
is then visible from the first scrape after startup, even if the lane has
not yet completed a successful cycle.

* Update 
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java

Co-authored-by: Thomas Mueller <[email protected]>

---------

Co-authored-by: Mihai Bercea <[email protected]>
Co-authored-by: Thomas Mueller <[email protected]>

Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/34486768223

With regards,
GitHub Actions via GitBox

Reply via email to