Skip to content
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

Issue on history cleaner #434

Closed
RaiBnod opened this issue Aug 16, 2022 · 0 comments · Fixed by #435
Closed

Issue on history cleaner #434

RaiBnod opened this issue Aug 16, 2022 · 0 comments · Fixed by #435
Assignees
Labels

Comments

@RaiBnod
Copy link
Member

RaiBnod commented Aug 16, 2022

History cleaner does the history clean and only stores the data of certain hours. Let's say:

  • it has to store data for 1 day and
  • the device has been offline for 2 days

Now, when the program loads up all the history data gets deleted. And it starts creating the history records again from index 1. But at other ends, the history sync services Postgres, and InfluxDB they have a marker (history_sync_logs table) of the last time data was synced. As the result, it doesn't sync the value till history reaches up to that marker.

The solution is, when the cleaner does the clean job, add additional where conditions for don't delete the last record at any cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants