CloudMigrations: Add warnings for bugs with HA setups (#107265)

add warnings for HA bug
This commit is contained in:
Michael Mandrus
2025-06-26 12:03:50 -04:00
committed by GitHub
parent 918c93ee4e
commit 3ec907bbe6
2 changed files with 3 additions and 1 deletions
@@ -659,7 +659,8 @@ func (s *Service) uploadSnapshot(ctx context.Context, session *cloudmigration.Cl
// nolint:gosec
indexFile, err := os.Open(indexFilePath)
if err != nil {
return fmt.Errorf("opening index files: %w", err)
// TODO: Clean this notice once we've fixed the HA bug
return fmt.Errorf("opening index files: %w. If you are running Grafana in a highly-available setup, try scaling down to one replica to avoid a known bug: https://github.com/grafana/grafana/issues/107264", err)
}
defer func() {
if closeErr := indexFile.Close(); closeErr != nil {