Bookworm → Java 21 → Gerrit 3.11 → Gerrit 3.12
The Gerrit hosts are currently running Debian Bullseye and the application runs under Java 17. Gerrit 3.12 will drop support for Java 17 and require Java 21.
Both Debian Bullseye and Bookworm come with Java 17.
For Debian Bookworm we have component/jdk21 which let us upgrade to Java 21 (T392448#10759611).
Therefore we should reimage the Gerrit hosts from Bullseye to Bookworm, keeping java 17.