Thanks.--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/4b4c7fa0-fb12-41f8-aa65-6fa7b4b673b9n%40googlegroups.com.
On 2 Mar 2026, at 09:40, Matthias Sohn <matthi...@gmail.com> wrote:On Mon, Mar 2, 2026 at 10:30 AM Z <vista...@gmail.com> wrote:Dear Gerrit Community,gerrit version 3.12.4 and following cachegit_file_diff-v2.mv.dbgit_modified_files-v2.mv.dbmodified_files-v2.mv.dbdiff_summary-v2.mv.dbchange_kind-v2.mv.dbweb_sessions-v2.mv.dbgerrit_file_diff-v2.mv.dbIf these caches become unusually large, what problems might that cause?We found that huge persistent h2 caches can lead to OOM errors and that such huge h2 caches
can be caused by offline reindexing the complete changes index.
We mitigated this with https://gerrit-review.googlesource.com/c/gerrit/+/473823 which allows to make persistent
caches read-only during offline reindexing. This feature is available since Gerrit 3.13.
Thanks.--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/4b4c7fa0-fb12-41f8-aa65-6fa7b4b673b9n%40googlegroups.com.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3RrDiDNyr_MaiSKA2fbn525GT_hL6ExYaRCPZaU8kQwMA%40mail.gmail.com.
On 2 Mar 2026, at 10:12, Z <vista...@gmail.com> wrote:Hi,luca:Thank you for your reply.>>> If the cache-chroniclemap also becomes very large, could it lead to OOM (Out of Memory)?
Thank you.Luca Milanesio 在 2026年3月2日 星期一下午5:55:58 [UTC+8] 的信中寫道:
On 9 Mar 2026, at 00:12, Z <vista...@gmail.com> wrote:Hi, luca:I have decided to accept your suggestion to use the cache-chroniclemap . However, when I then executed cache turning with the command "SSH cache-chroniclemap analyze-h2-caches", the following error occurred. Could you please advise on how to resolve it? Thank you.java.lang.Exception: fatal: Table "data" not found (candidates are: "DATA"); SQL statement:
SELECT COUNT(*), AVG(OCTET_LENGTH(k)), AVG(OCTET_LENGTH(v)) FROM data [42103-232]
at com.googlesource.gerrit.modules.cache.chroniclemap.H2CacheCommand.getStats(H2CacheCommand.java:62)
at com.googlesource.gerrit.modules.cache.chroniclemap.AnalyzeH2Caches.run(AnalyzeH2Caches.java:60)
at com.google.gerrit.sshd.SshCommand.lambda$start$1(SshCommand.java:87)
at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:509)
at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:940)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "data" not found (candidates are: "DATA"); SQL statement:
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/ae469c74-ddea-4c64-9810-4da763880714n%40googlegroups.com.
I'm very sorry, Luca. When choosing to reply to you, the system restricts your email address as unknown, so I can only select "Reply All."
However, some of the H2 version 2 cache databases under review_site/cache/ are quite large, especially the ones mentioned earlier, such as:
git_file_diff-v2.mv.db
git_modified_files-v2.mv.db
modified_files-v2.mv.db
diff_summary-v2.mv.db
change_kind-v2.mv.db
web_sessions-v2.mv.db
gerrit_file_diff-v2.mv.db
Do you mean that I should directly configure cache-chroniclemap and then restart Gerrit?
Hi,
> On 11 Mar 2026, at 23:33, Z <vista...@gmail.com> wrote:
>
> I'm very sorry, Luca. When choosing to reply to you, the system restricts your email address as unknown, so I can only select "Reply All."
>
> However, some of the H2 version 2 cache databases under review_site/cache/ are quite large, especially the ones mentioned earlier, such as:
>
> git_file_diff-v2.mv.db
> git_modified_files-v2.mv.db
> modified_files-v2.mv.db
> diff_summary-v2.mv.db
> change_kind-v2.mv.db
> web_sessions-v2.mv.db
> gerrit_file_diff-v2.mv.db
>My bad, I misread the error. The issue is about the CASE_INSENSITIVE_IDENTIFIERS which is false by default in H2.
>In [2] I’ve turned off the automatic switch to upper case identifiers and now it doesn’t find the ‘DATA’ table.
> I believe it’s something I can fix.
> Do you mean that I should directly configure cache-chroniclemap and then restart Gerrit?
> I still suggest waiting for my fix and do the tuning again.
> P.S. Cache-chroniclemap is under BSL, please read carefully [3] and ensure you can legally use it in production.
On 18 Mar 2026, at 02:07, Z <vista...@gmail.com> wrote:Thanks you for your reply. lucaLuca Milanesio 在 2026年3月12日 星期四下午3:27:28 [UTC+8] 的信中寫道:Hi,
> On 11 Mar 2026, at 23:33, Z <vista...@gmail.com> wrote:
>
> I'm very sorry, Luca. When choosing to reply to you, the system restricts your email address as unknown, so I can only select "Reply All."
>
> However, some of the H2 version 2 cache databases under review_site/cache/ are quite large, especially the ones mentioned earlier, such as:
>
> git_file_diff-v2.mv.db
> git_modified_files-v2.mv.db
> modified_files-v2.mv.db
> diff_summary-v2.mv.db
> change_kind-v2.mv.db
> web_sessions-v2.mv.db
> gerrit_file_diff-v2.mv.db
>My bad, I misread the error. The issue is about the CASE_INSENSITIVE_IDENTIFIERS which is false by default in H2.
>In [2] I’ve turned off the automatic switch to upper case identifiers and now it doesn’t find the ‘DATA’ table.
> I believe it’s something I can fix.ok,wait for you and will it be fixed in the stable-3.12 branch? Thanks.
> Do you mean that I should directly configure cache-chroniclemap and then restart Gerrit?
> I still suggest waiting for my fix and do the tuning again.
> P.S. Cache-chroniclemap is under BSL, please read carefully [3] and ensure you can legally use it in production.Also, Cache-chroniclemap is for learning purposes only, not for commercial.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/0d3456a3-c3af-4a28-bdfd-febb5340ede5n%40googlegroups.com.