ArafatKhan2198 commented on PR #7472: URL: https://github.com/apache/ozone/pull/7472#issuecomment-2503114801
Thank you, @devabhishekpal, for the proposal. I understand we are adding a new column to the RECON_TASK_STATUS_TABLE to track the status of tasks and determine whether they were successfully executed previously. This approach works well for a freshly installed cluster; however, it may lead to compatibility issues in upgraded clusters. When upgrading Ozone and Recon, we only modify the code, not the database tables. Therefore, it’s essential to write an alter script to add this new column to the existing table. This script should execute when it detects that the newly added column in the RECON_TASK_STATUS_TABLE is missing. However, it must be implemented carefully to ensure the alter script runs only once and not on every restart. To address this requirement, please leverage the newly introduced Recon Layout Feature, which is designed for managing changes involving database table modifications. You can refer to the Developer Documentation for the Recon Layout Feature here: [Recon Layout Feature Documentation](https://docs.google.com/document/d/1GfN-xBvvpAKOMgzoEmf_GOFt-nlyCMu9ZHqj5ug5l3w/edit?addon_store&tab=t.0#heading=h.tfszc17ucbxl). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
