Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #37237 Transaction error in field index for meilisearch
    Infos
    #37237
    Marie Ange Garnier (marieange)
    2024-04-29 10:55
    2024-03-25 11:40
    38886
    Details
    Transaction error in field index for meilisearch

    2024-03-18T08:05:16+01:00 [336] [info] Index item plugin_artifact_field (array ( 'field_id' => '667', 'artifact_id' => '111', 'tracker_id' => '36', )) 2024-03-18T08:05:16+01:00 [336] [error] Unable to enqueue in tuleap.fts.index-item: You should not start something that will be processed in a different context while being in a transaction (RuntimeException): You should not start something that will be processed in a different context while being in a transaction: #0 /usr/share/tuleap/src/common/Queue/PersistentQueueNoTransactionWrapper.php(37): Tuleap\DB\ThereIsAnOngoingTransactionChecker->checkNoOngoingTransaction() #1 /usr/share/tuleap/src/common/Queue/EnqueueTask.php(48): Tuleap\Queue\PersistentQueueNoTransactionWrapper->pushSinglePersistentMessage() #2 /usr/share/tuleap/plugins/fts_common/include/FullTextSearchBackendPlugin.php(76): Tuleap\Queue\EnqueueTask->enqueue() #3 /usr/share/tuleap/src/common/Event/EventManager.class.php(128): Tuleap\FullTextSearchCommon\FullTextSearchBackendPlugin->indexItem() #4 /usr/share/tuleap/src/common/Plugin/PluginLoader.php(72): EventManager->eventManagerDispatch() #5 /usr/share/tuleap/src/common/Event/EventManager.class.php(117): Tuleap\Plugin\PluginLoader->Tuleap\Plugin{closure}() #6 /usr/share/tuleap/src/common/Event/EventManager.class.php(147): EventManager->processEventOnListener() #7 /usr/share/tuleap/src/common/Search/ItemToIndexQueueEventBased.php(35): EventManager->dispatch() #8 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/FieldContentIndexer.php(45): Tuleap\Search\ItemToIndexQueueEventBased->addItemToQueue() #9 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.php(353): Tuleap\Tracker\FormElement\FieldContentIndexer->indexFieldContent() #10 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.php(334): Tracker_FormElement_Field_String->addRawValueToSearchIndex() #11 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(1231): Tracker_FormElement_Field_String->saveValue()

    Other
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Marie Ange Garnier (marieange)
    Closed
    2024-04-29
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2024-04-26 16:52
    • Summary
      -Transaction eror in field index for meilisearch 
      +Transaction error in field index for meilisearch 
    User avatar

    I just checked, stack trace is still present in rest test worker logs when the FF is disabled:

    2024-04-19T16:36:45+02:00 [1133] [info] Index item plugin_artifact_field (array (
      'field_id' => '1677',
      'artifact_id' => '235',
      'tracker_id' => '100',
    ))
    2024-04-19T16:36:45+02:00 [1133] [error] Unable to enqueue in tuleap.fts.index-item: You should not start something that will be processed in a different context while being in a transaction (RuntimeException): You should not start something that will be processed in a different context while being in a transaction:
    #0 /usr/share/tuleap/src/common/Queue/PersistentQueueNoTransactionWrapper.php(37): Tuleap\DB\ThereIsAnOngoingTransactionChecker->checkNoOngoingTransaction()
    #1 /usr/share/tuleap/src/common/Queue/EnqueueTask.php(48): Tuleap\Queue\PersistentQueueNoTransactionWrapper->pushSinglePersistentMessage()
    ...