Coder Social home page Coder Social logo

Comments (6)

home-assistant avatar home-assistant commented on July 20, 2024

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of recorder can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign recorder Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


recorder documentation
recorder source
(message by IssueLinks)

from core.

karwosts avatar karwosts commented on July 20, 2024

I'll guess this isn't really something that needs to be addressed for the milestone, as I don't think there's anything actually wrong with the new API, it's just exposing what I feel might be an unrelated long standing issue in the recorder behavior.

from core.

bdraco avatar bdraco commented on July 20, 2024

This isn't a regression.

Did you by chance upgrade, downgrade, upgrade without restoring an external at the point of downgrade?

from core.

bdraco avatar bdraco commented on July 20, 2024

I'm guessing you are using SQLite so that's probably unlikely and this is a bug in the purge code.

Given how much coverage we have for this I'll need a copy of the database to be able to find it

from core.

karwosts avatar karwosts commented on July 20, 2024

This is stock core/SQLite. It's a dev instance though so I abuse it pretty hard, changing branches and pulling new changes pretty frequently.

from core.

bdraco avatar bdraco commented on July 20, 2024

On Jan 27/28 2023 HA was started up with an old version after the data was migrated to the new format so there are some old rows in the old format that are not being purged.

This type of issue will only happen for upgrade->downgrade->upgrade with the database not matching the version

It can be solved with
delete from states where last_updated is not null;, than wait for the next nightly purge to cleanup

from core.

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.