Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3703

Data loss during initialization

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.2.0, 2.2.0
    • None
    • admin
    • 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,

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            amazingBoy_hbh Binhua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment