question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Periodic catalog database reset?

See original GitHub issue

At our company, we use (a slightly changed version of) the github-discovery plugin to add entities to Backstage. In some specific cases, we noticed that some issues were introduced in the Backstage ‘state’:

  • An entity was manually deleted (and apparently not picked up anymore by github-discovery)
  • The main branch of a repo was changed and changes to the entity were not picked up anymore.

Of course specific issues like these could be tackled, but since the catalog is set to readonly, we would also be happy with having a periodic reset of the database. Right now that is at least how we fix these kinds of issues.

We were wondering if there is the possibility of a periodic (nightly) reset of the database. I think the ingrediënts are there, but we lack the required knowledge right now.

Possible Implementation

A combination of the recently added TaskScheduler and some knex logic?

Other ideas? Perhaps we are not thinking correctly about this issue. Help is appreciated!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
leon-vgcommented, Jan 21, 2022

It seems that the latest version indeed fixes both issues. Note that for the Github main branch change to be picked up, it is necessary to both delete the entity and the corresponding location.

0reactions
leon-vgcommented, Jan 21, 2022

Thanks for opening a new issue, @Rugvip. And for the support! Closing this issue is fine by me, since the root causes are fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RESET DATABASE - Oracle Help Center
Use the RESET DATABASE TO INCARNATION command to reset the incarnation of the target database in the RMAN repository to a previous database...
Read more >
7.6 Performing Database Point-In-Time Recovery
However, you can use the RESET DATABASE TO INCARNATION command to specify that SCNs are to be interpreted in the frame of reference...
Read more >
Set database recovery model - SQL Server | Microsoft Learn
Learn how to switch a SQL Server database from one recovery model to another by using SQL Server Management Studio or Transact-SQL.
Read more >
Managing the RMAN Repository - Oracle Information
The reset database command directs RMAN to create a new database incarnation record in the recovery catalog. This new incarnation record indicates the ......
Read more >
26.3. Continuous Archiving and Point-in-Time Recovery (PITR)
Thus, this technique supports point-in-time recovery: it is possible to restore the database to its state at any time since your base backup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found