Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11643

Clean up elasticsearch index 'tests' and tests data from FILES_SOURCE table

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: Database, ElasticSearch
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      Hide
      The following SQL query can be executed before to speed up startup on SonarCloud (otherwise the migration will do the purge in any case) :
      DELETE FROM file_sources WHERE data_type='TEST';
      Show
      The following SQL query can be executed before to speed up startup on SonarCloud (otherwise the migration will do the purge in any case) : DELETE FROM file_sources WHERE data_type='TEST';

      Description

      With the drop of tests and coverage details feature (SONAR-11632) and the remove of the usage of FILES_SOURCES#DATA_TYPE (SONAR-11655), the following clean up can now safely be done :

      • Drop of elasticsearch index 'tests'
      • Drop entries with DATA_TYPE='TEST' from FILE_SOURCES table
      • Drop FILE_SOURCES#DATA_TYPE

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.lancelot Julien Lancelot
                Reporter:
                julien.lancelot Julien Lancelot
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: