#7047 ticket bulk_edit task sometimes doesn't call add_artifacts

v1.1.0
closed
None
General
2015-08-20
2014-01-10
No

On Allura's own ticket tracker when I do a bulk edit, it lately has been not updating solr with the ticket changes. This has happened a few times, but I haven't been able to reproduce on a test project or locally.

Here's the tasks that run in such a case: https://sourceforge.net/p/allura/pastebin/52d057cbea406b5dc88d20ec

And here's the tasks that run when it does work properly: https://sourceforge.net/p/allura/pastebin/52d057d404161f105486b39c

In the case of it not working, the sendmail events and logging of ticket version commits show that the tickets were found. I can even find the corresponding zarkov events that ArtifactSessionExtension.after_flush sends out, so all I can figure is that "arefs" was falsey. But i don't see how that can happen.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2014-01-21
    • status: open --> in-progress
    • assigned_to: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2014-01-24

    Most of the time the newest logging reports:

    this extension: <class 'allura.model.session.ArtifactSessionExtension'>
    

    But quite often it reports that it's using the Batch Indexer:

    this extension: <class 'allura.model.session.BatchIndexer'>
    active session extensions are: [<class 'allura.model.session.BatchIndexer'>]
    threadlocal session is for: [Database(MongoClient(u'mongo-server', 27017), u'pyforge'),
                                 Database(MongoClient(u'mongo-server', 27017), u'pyforge'),
                                 Database(MongoClient('mongo-server', 27017), u'activitystream'),
                                 Database(MongoClient(u'mongo-server', 27017), u'task'),
                                 Database(MongoClient(u'mongo-server', 27017), u'project-data'),
                                 Database(MongoClient(u'mongo-server', 27017), u'project-data')]
    current session is: Database(MongoClient(u'mongo-server', 27017), u'project-data')
    
     
  • Cory Johns

    Cory Johns - 2014-01-24
    • assigned_to: Dave Brondsema --> Cory Johns
     
  • Cory Johns

    Cory Johns - 2014-01-24
    • status: in-progress --> code-review
     
  • Cory Johns

    Cory Johns - 2014-01-24

    allura:cj/7047

     
  • Dave Brondsema

    Dave Brondsema - 2014-01-24
    • status: code-review --> validation
    • QA: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2014-01-27
    • status: validation --> closed
     

Log in to post a comment.