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

Fix random TestBridgeCommentNotificationFromRelationToProperty.shouldNotifyEventWhenUpdateComment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Comments

      Description

      We want to fix the random test TestBridgeCommentNotificationFromRelationToProperty.shouldNotifyEventWhenUpdateComment.

      It's failing with:

      java.lang.AssertionError: Event wasn't fired
      	at org.nuxeo.ecm.platform.comment.TestBridgeCommentNotificationFromRelationToProperty.lambda$shouldNotifyEventWhenUpdateComment$1(TestBridgeCommentNotificationFromRelationToProperty.java:106)
      	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
      	at org.nuxeo.ecm.platform.comment.TestBridgeCommentNotificationFromRelationToProperty.shouldNotifyEventWhenUpdateComment(TestBridgeCommentNotificationFromRelationToProperty.java:106)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      

      While we have in standard output:

      2020-02-14 06:10:25,914 [Nuxeo-Work-default-1:979276664932016.1590198290] ERROR [AbstractWork] Exception during work: FulltextExtractorWork(f8074b1a-d8a1-4a87-a2f3-eb2a5bab3eab, , Progress(0.0%, ?/0), Saving)
      java.util.ConcurrentModificationException: null
      	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1042) ~[?:?]
      	at java.util.ArrayList$Itr.next(ArrayList.java:996) ~[?:?]
      	at org.nuxeo.ecm.core.event.impl.EventListenerList.recomputeEnabledListeners(EventListenerList.java:165) ~[nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.event.impl.EventListenerList.getEnabledInlineListenersDescriptors(EventListenerList.java:174) ~[nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:234) ~[nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:254) ~[nuxeo-core-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1483) ~[nuxeo-core-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.storage.FulltextExtractorWork.work(FulltextExtractorWork.java:147) ~[nuxeo-core-storage-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:484) [nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:374) [nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-11.1-SNAPSHOT.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: