This is a warning from DefaultRefFilter which is emitted at most once per minute
if it needs to do a full scan of all refs to check their visibility for the user who triggered the operation.
This is a performance warning since these scans can take a long time on large repos,
that's unrelated to corruption of persistent caches.
I guess it emitting every second , latest from container log. Is there any option to suppress or get rid of this check ?
--------------------------------------------------------------------
[2026-02-05T15:07:13.367Z] [SSH git-upload-pack sigma/build (AutoBot)] INFO com.google.gerrit.server.permissions.DefaultRefFilter :
Performing visibility check for all refs. This can be expensive. [CONTEXT ratelimit_period="1 SECONDS" skipped=9 TRACE_ID="177052013633366-79cf5g54" project="sigma/build" request="GIT_UPLOAD" ]
[2026-02-05T15:07:14.420Z] [SSH git-upload-pack project/infra/jobs (arden)] INFO com.google.gerrit.server.permissions.DefaultRefFilter :
Performing visibility check for all refs. This can be expensive. [CONTEXT ratelimit_period="1 SECONDS" skipped=12 TRACE_ID="17703045896231-515895c" project="project/infra/jobs" request="GIT_UPLOAD" ]
[2026-02-05T15:07:15.575Z] [SSH git-upload-pack project/infra/jobs (arden)] INFO com.google.gerrit.server.permissions.DefaultRefFilter :
Performing visibility check for all refs. This can be expensive. [CONTEXT ratelimit_period="1 SECONDS" skipped=15 TRACE_ID="1770304054863-d64d9b78" project="project/infra/jobs" request="GIT_UPLOAD" ]
----------------------------------------------------------------
Check h2 trace files which end up in the cache directory, on k8s-gerrit deployments they are in /var/gerrit/cache.
H2 trace files have names like e.g. git_modified_files-v2.trace.db.
In git_modified_files-v2.trace.db file
-------------------------------------------
2026-01-24 07:30:46.630535Z database: flush
org.h2.message.DbException: Out of memory. [90108-232]
at org.h2.message.DbException.get(DbException.java:212)
at org.h2.message.DbException.convert(DbException.java:401)
at org.h2.mvstore.db.Store.lambda$new$0(Store.java:122)
at org.h2.mvstore.MVStore.handleException(MVStore.java:1546)
at org.h2.mvstore.FileStore.writeInBackground(FileStore.java:1847)
at org.h2.mvstore.FileStore$BackgroundWriterThread.run(FileStore.java:2256)
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Out of memory. [90108-232]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
... 6 more
Caused by: java.lang.OutOfMemoryError: Java heap space
-------------------------------------------
I remember we removed 2-3 db files like git_tags-v2.mv.db, persisted_projects-v2.mv.db then only gerrit started working back.