Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
1.2.0, 2.2.0
-
None
-
None
Description
In the docker container or distributed nodes, the initialization script(setup.sh) may be executed many times. Ranger controls the initialization process through database table(x_db_version_h). However, when the number of database connections is too large or the network is abnormal, the initialization script will judge abnormally, the script will trigger reconstruction, and the data will be lost.So is it reasonable to drop tables in script(ranger_core_db_XX.sql).
For example, the related table of Ranger has been created before, and another docker container is started to execute the setup.sh script. However, due to network problems, the criterion fails and the reconstruction operation is being triggered.The initialization log is as follows,