You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If the command topic is deleted when backups are enabled, and then the server is restarted, the command topic gets recreated even though a backup file exists. The server will most likely immediately enter a DEGRADED state due to the backup not matching the newly created command topic
Describe the solution you'd like
As part of startup, we could avoid creating the command topic if the backup file is enabled and the server detects a backup file exists.
Ensure topic doesn't check to see if backups are enabled or if a backup file exists already, so it'll just always create a command topic when the server starts up and the broker doesn't have a command topic.
The text was updated successfully, but these errors were encountered:
… a valid backup exists #7753 (#8257)
* fix: Avoid recreating command topic when it has been deleted and a valid backup exists.
* fix Integration test avoidRecreatingCommandTopicWithActiveBackup
* Added a new unit test in CommandTopicBackupImplTest and fixed checkstyle errors.
* Fixed unit test failure due to a NullPointerException. Also, improved error messages.
* Fix integration test failure. Also, refactor integration test code changes into its own test file: QuickDegradeAndRestoreCommandTopicIntegrationTest
* Addressed Steven's review comment. Also, got rid of an unnecessary import in RestoreCommandTopicIntegrationTest
* Addressed Steven's review comment by swapping check for degraded state and topic exists in integration test.
Is your feature request related to a problem? Please describe.
If the command topic is deleted when backups are enabled, and then the server is restarted, the command topic gets recreated even though a backup file exists. The server will most likely immediately enter a DEGRADED state due to the backup not matching the newly created command topic
Describe the solution you'd like
As part of startup, we could avoid creating the command topic if the backup file is enabled and the server detects a backup file exists.
Additional context
In KsqlRestApplication
Ensure topic doesn't check to see if backups are enabled or if a backup file exists already, so it'll just always create a command topic when the server starts up and the broker doesn't have a command topic.
The text was updated successfully, but these errors were encountered: