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

Fix ES indexing error on date field

    Details

      Description

      On 8.2, creating documents using the jenkins report module, the following stack trace can be seen:

      2016-04-11 18:43:27,752 ERROR [http-bio-0.0.0.0-8080-exec-8] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: IndexingWorker(28a20925-416
      0-48c6-a930-c8e8bbe116e7, , Progress(?%, ?/0), null)
      org.elasticsearch.index.mapper.MapperParsingException: failed to parse [ecm:path.level5]
              at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:409)
              at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:706)
              at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:497)
              at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:544)
              at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:493)
              at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:480)
              at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:192)
              at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515)
              at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to parse date field [2016-04-11.1460393007734], tried both date format [dateOptionalTime], and timestamp number with locale []
              at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:619)
              at org.elasticsearch.index.mapper.core.DateFieldMapper.innerParseCreateField(DateFieldMapper.java:547)
              at org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:236)
              at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:399)
              ... 11 more
      Caused by: java.lang.IllegalArgumentException: Invalid format: "2016-04-11.1460393007734" is malformed at ".1460393007734"
              at org.elasticsearch.common.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187)
              at org.elasticsearch.common.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:780)
              at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:613)
              ... 14 more
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.