jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Sedding (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-5750) Test failure: PojoSR run.osgi.SecurityProviderRegistrationTest
Date Thu, 02 Mar 2017 15:40:45 GMT

     [ https://issues.apache.org/jira/browse/OAK-5750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julian Sedding updated OAK-5750:
--------------------------------
    Attachment: OAK-5750-jsedding.patch

The attached patch [^OAK-5750-jsedding.patch] removes the sleeps and instead waits for a ServiceEvent
instead. This worked for me locally and also sped up the execution of the {{SecurityProviderRegistrationTest}}
from ~15sec to ~3sec.

The logic is wrapped in {{AbstractRepositoryFactoryTest#awaitServiceEvent}} and is relatively
simple to use, e.g.:

{code}
awaitServiceEvent({
        component.disable()
    },
    '(objectClass=org.apache.jackrabbit.oak.spi.security.SecurityProvider)',
    ServiceEvent.UNREGISTERING
)
{code}

> Test failure: PojoSR run.osgi.SecurityProviderRegistrationTest
> --------------------------------------------------------------
>
>                 Key: OAK-5750
>                 URL: https://issues.apache.org/jira/browse/OAK-5750
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: continuous integration, pojosr
>    Affects Versions: 1.6.0
>            Reporter: Hudson
>            Assignee: angela
>              Labels: test-failure, ubuntu
>             Fix For: 1.8
>
>         Attachments: OAK-5750-jsedding.patch, pojosr-unit-tests.log.bz2
>
>
> Jenkins CI failure: https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
> The build Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 (latest),nsfixtures=SEGMENT_TAR,profile=unittesting
#1441 has failed.
> First failed run: [Apache Jackrabbit Oak matrix/Ubuntu Slaves=ubuntu,jdk=JDK 1.7 (latest),nsfixtures=SEGMENT_TAR,profile=unittesting
#1441|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1441/]
[console log|https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.7%20(latest),nsfixtures=SEGMENT_TAR,profile=unittesting/1441/console]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message