Details
Description
DB setup script looks for a specific version (Ranger 2.0.0-SNAPSHOT) to decide if patches need to be applied:
select version from x_db_version_h where version = 'DB_PATCHES' and inst_by = 'Ranger 2.0.0-SNAPSHOT' and active = 'Y'; select version from x_db_version_h where version = 'JAVA_PATCHES' and inst_by = 'Ranger 2.0.0-SNAPSHOT' and active = 'Y';
However, the optimized schema creation script comes with a generic version (Ranger 1.0.0):
INSERT INTO x_db_version_h (version,inst_at,inst_by,updated_at,updated_by,active) VALUES ('DB_PATCHES',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y'); INSERT INTO x_db_version_h (version,inst_at,inst_by,updated_at,updated_by,active) VALUES ('JAVA_PATCHES',CURRENT_TIMESTAMP,'Ranger 1.0.0',CURRENT_TIMESTAMP,'localhost','Y');
The result is that a separate check is executed for each patch, which takes time. It will be good if the status entries have the exact ranger version rather a base version.
Attachments
Attachments
Issue Links
- links to