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

Tests with long names can't be indexed

    Details

      Description

      Server fails to start if a test has a name greater than 32k characters long. Error is:

      2017.12.15 16:50:32 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [tests/test] ...
      2017.12.15 16:50:33 ERROR web[][o.s.s.es.BulkIndexer] index [tests], type [test], id [AWAHTVPWGMOJGXTZ-o09], message [java.lang.IllegalArgumentException: DocValuesField "name" is too large, must be <= 32766]
      2017.12.15 16:50:33 ERROR web[][o.s.s.es.BulkIndexer] index [tests], type [test], id [AWAHTVPWGMOJGXTZ-o0-], message [java.lang.IllegalArgumentException: DocValuesField "name" is too large, must be <= 32766]
      2017.12.15 16:50:33 ERROR web[][o.s.s.es.BulkIndexer] index [tests], type [test], id [AWAHTVPWGMOJGXTZ-o08], message [java.lang.IllegalArgumentException: DocValuesField "name" is too large, must be <= 32766]
      
      2017.12.15 16:50:37 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
      java.lang.IllegalStateException: Unrecoverable indexation failures
      

      There's no workaround to manually fix database before upgrading.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.brandhof Simon Brandhof
                Reporter:
                simon.brandhof Simon Brandhof
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: