Giter Site home page Giter Site logo

Comments (5)

linear avatar linear commented on June 8, 2024

VAX-1803 cannot start electric after a wipe

from electric.

MichalNemec avatar MichalNemec commented on June 8, 2024
SELECT slot_name,
       slot_type,
       database,
       active,
       restart_lsn,
       confirmed_flush_lsn
FROM pg_replication_slots;

showed me after wipe, that the replication still existed, wasnt cleared properly i assume, deleting it fixed it.
Could be also a good hint for people to check that.

from electric.

alco avatar alco commented on June 8, 2024

Hey @MichalNemec . Could you give us more details about the wiping process? What did you remove? Was Electric running at that time?

from electric.

MichalNemec avatar MichalNemec commented on June 8, 2024

My usecase is a little bit different, dotnet backend holds migrations, so in the development process when i create a migration on backend side, then electric does not know about new changes in database schema.

What im doing is this:

  1. kill electric docker container
  2. use https://electric-sql.com/docs/reference/roadmap#failure-modes code to wipe it
  3. start electric again
  4. do app migration (only enable electric on tables)
  5. generate schema and continue with the work

However step 2 probably got messed up and step 3 didnt hint me that i didnt remove everything properly.

im doing this process because app should reflect what is in the database and backend holds the "real" database, so backend should be doing migrations. App should only get stuff from cli and generate db. Thats my usecase tho.

from electric.

alco avatar alco commented on June 8, 2024

@MichalNemec Thanks for sharing the details. We'll review that documentation page and bring it up to date.

from electric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.