Skip to content

OKR_Demo_DB resetted nicht richtig #1486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
peggimann opened this issue Mar 25, 2025 · 0 comments
Open
1 task

OKR_Demo_DB resetted nicht richtig #1486

peggimann opened this issue Mar 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@peggimann
Copy link
Collaborator

Beim Startup des Pods der Demo Umgebung, wird die alte DB nicht sauber aufgeräumt, dies führt dazu, dass SQL exceptions den Pod daran hindern aufzustarten und dieser in einen Crash-Backoff loop gerät.

Reproduce the Bug

Den Openshift pod löschen damit ein neuer hochgefahren wird.

Hinweise

  • Das db skript src/main/resources/db/data-migration-demo/afterMigrate__0_initialData.sql beinhaltet truncate statements, jedoch nicht für alle Entities. Zudem scheint das skript nicht sauber die truncates auszuführen.

Vorgehenesweise

  • Skript manuell aus Intellij gegen die DEMO DB laufen lassen und schauen dass die Truncate statements am anfang die Tabellen sauber aufräumen
  • Sicherstellen, dass die Migrationsskripte in der richtigen reihenfolge gerunned werden
  • Aktuallisieren des Wiederkehrenden aftermigrate skript.

Akzeptanzkriterien

  • Der pod kann gelöscht werden und beim Aufstarten stellet er mittels flyway skripts automatisch die gewünschten DB Schemas her
@peggimann peggimann added the bug Something isn't working label Mar 25, 2025
@peggimann peggimann assigned peggimann and unassigned peggimann Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant