Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16941

Fix invalid mapping in Elasticsearch sequence generator seqgen and audit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF09, 7.2
    • Fix Version/s: 6.0-HF10, 6.0-HF12, 7.3
    • Component/s: Elasticsearch

      Description

      The invalid mapping can not be set on Elasticsearch > 1.1.2 and < 1.5.

      You can see this error log:

      org.elasticsearch.index.mapper.MapperParsingException: Root type mapping not empty after parsing! Remaining fields:   [sequence : {_source={enabled=0}, _all={enabled=0}, _type={index=no}, enabled=0}]
      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:276)
      	at org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:190)
      	at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:440)
      	at org.elasticsearch.cluster.metadata.MetaDataMappingService$4.execute(MetaDataMappingService.java:503)
      	at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:328)
      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      

      The sequence generator service is not properly initialized and NPE are following.

      Same problem on nuxeo-elasticsearch-audit the mapping need to adapted (fixed in 6.0HF12)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: