Time to SLA CustomField gets Dropped on reindex

Issue #443 resolved
Frank Reitel created an issue

We have a Time to SLA Field which is getting dropped after I guess standard actions and timeout on every occurance. We have a 10000 user license so we have a lot of issues with that.

When I watch the log during a reindex this appears quite often and slows down the reindex

I coworker brought up the point that the plugin maybe have some problems handling different level restrictions on issue types and custom field schemes.

I removed username and ip adresses in the following log snippet.

During the reindex the SLA Custom Field gets dropped from every Issue:
2017-06-26 11:05:12,864 IssueIndexer:thread-9 WARN 609x74473x1 1bm4aw0  /secure/admin/IndexReIndex.jspa [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue BOLT-25119: Dropping 'customfield_15550'
2017-06-26 11:05:12,892 IssueIndexer:thread-9 WARN 609x74473x1 1bm4aw0  /secure/admin/IndexReIndex.jspa [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue BOLT-25119: Dropped: [customfield_15550]

Our current version of jira is 7.1.6 but it also occurs on our staging system with 7.2.8

Comments (5)

  1. Tuncay Senturk repo owner

    Hi Frank,

    There should be more stack traces in the log. Any chance to share them with us.

    Regards

  2. Frank Reitel reporter

    Hi Tuncay, unfortunately there were none. I only got that: Dopping and Dropped Messages. I can only try to set the Loglevel lower. I will do so and give you an update.

    regards frank

  3. Frank Reitel reporter

    This is the Stracktrace after I set the level of DefaultIssueDocumentFactory to DEBUG Again I removed IP Adresses and username

    2017-06-30 13:58:57,554 IssueIndexer:thread-6 WARN  837x650628x1 1rqjtcc  /secure/admin/IndexReIndex.jspa [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue BOLT-30332: Dropping 'customfield_15550'
    java.lang.IllegalArgumentException: it doesn't make sense to have a field that is neither indexed nor stored
        at org.apache.lucene.document.Field.<init>(Field.java:400)
        at org.apache.lucene.document.Field.<init>(Field.java:371)
        at org.apache.lucene.document.Field.<init>(Field.java:350)
        at com.tuncaysenturk.jira.plugins.enhancer.customfield.sla.searcher.TimeToSlaIndexer.addDocumentFields(TimeToSlaIndexer.java:74)
        at com.tuncaysenturk.jira.plugins.enhancer.customfield.sla.searcher.TimeToSlaIndexer.addDocumentFieldsNotSearchable(TimeToSlaIndexer.java:48)
        at com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer.addIndex(AbstractCustomFieldIndexer.java:42)
        at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory$Builder.add(DefaultIssueDocumentFactory.java:84)
        at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory$Builder.addAll(DefaultIssueDocumentFactory.java:75)
        at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory.apply(DefaultIssueDocumentFactory.java:50)
        at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory.apply(DefaultIssueDocumentFactory.java:30)
        at com.atlassian.jira.issue.index.DefaultIssueIndexer$DefaultDocumentCreationStrategy.get(DefaultIssueIndexer.java:556)
        at com.atlassian.jira.issue.index.DefaultIssueIndexer$IndexIssuesOperation.perform(DefaultIssueIndexer.java:380)
        at com.atlassian.jira.issue.index.DefaultIssueIndexer$IndexIssuesOperation.perform(DefaultIssueIndexer.java:369)
        at com.atlassian.jira.issue.index.DefaultIssueIndexer.lambda$null$2(DefaultIssueIndexer.java:308)
        at com.atlassian.jira.index.SimpleIndexingStrategy.get(SimpleIndexingStrategy.java:7)
        at com.atlassian.jira.index.SimpleIndexingStrategy.get(SimpleIndexingStrategy.java:5)
        at com.atlassian.jira.index.MultiThreadedIndexingStrategy$1.call(MultiThreadedIndexingStrategy.java:33)
        at com.atlassian.jira.index.MultiThreadedIndexingStrategy$1.call(MultiThreadedIndexingStrategy.java:31)
        at com.atlassian.jira.util.concurrent.BoundedExecutor$2.call(BoundedExecutor.java:68)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        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:748)
    2017-06-30 13:58:57,570 IssueIndexer:thread-6 WARN  837x650628x1 1rqjtcc /secure/admin/IndexReIndex.jspa [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue BOLT-30332: Dropped: [customfield_15550]
    
  4. Alparslan Tozan [Snapbytes]

    Hello Frank,

    As it can be seen from the lines

    at com.tuncaysenturk.jira.plugins.enhancer.customfield.sla.searcher.TimeToSlaIndexer.addDocumentFields(TimeToSlaIndexer.java:74)
    at com.tuncaysenturk.jira.plugins.enhancer.customfield.sla.searcher.TimeToSlaIndexer.addDocumentFieldsNotSearchable(TimeToSlaIndexer.java:48)
    

    this issue is related to with our Enhancer Plug-in. We will be looking at the problem and will give you another information about this issue.

    Regards, Alparslan

  5. Alparslan Tozan [Snapbytes]

    Hello Frank,

    Both Enhancer and Time To SLA plugins have a newer versions now. Please update them to have the fix.

    Best, Alparslan

  6. Log in to comment