This is an automated email from the ASF dual-hosted git repository. tomsun28 pushed a commit to branch 2.0.0 in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit 7a65f5c146468115d642d40da9df57ad989b5ecd Author: tomsun28 <[email protected]> AuthorDate: Fri Oct 9 13:39:08 2026 +0800 fix(manager): include config_revision in ServiceCredentialMigration marker insert hzb_config.config_revision is NOT NULL (V200) but the raw JDBC marker insert only supplied (type, content), crashing context startup on any database where the marker row is absent — the startup coordinator then falls back to config_recovery_required degraded mode. Found via local smoke test of the merged tree. --- .../apache/hertzbeat/manager/config/ServiceCredentialMigration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/config/ServiceCredentialMigration.java b/hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/config/ServiceCredentialMigration.java index a2aa94ad78..c20037d7b7 100644 --- a/hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/config/ServiceCredentialMigration.java +++ b/hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/config/ServiceCredentialMigration.java @@ -18,6 +18,7 @@ package org.apache.hertzbeat.manager.config; import java.util.List; +import java.util.UUID; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.util.AesUtil; @@ -64,8 +65,8 @@ public class ServiceCredentialMigration implements CommandLineRunner { return; } int migrated = migrateStoredCredentials(); - jdbcTemplate.update("INSERT INTO hzb_config(type, content) VALUES (?, ?)", - MIGRATION_MARKER, "complete"); + jdbcTemplate.update("INSERT INTO hzb_config(type, content, config_revision) VALUES (?, ?, ?)", + MIGRATION_MARKER, "complete", UUID.randomUUID().toString()); if (migrated > 0) { log.info("Migrated {} stored service credential parameters", migrated); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
