Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test can fail with "Primary shard not active or isn't assigned is a known node." #244

Open
lukas-vlcek opened this issue May 20, 2015 · 0 comments

Comments

@lukas-vlcek
Copy link
Member

Depending on order in which unit tests are executed we can get failure for org.searchisko.api.rest.ContentRestServiceTest test.

The following is test execution sequence that led to error:

$ mvn clean test
[...]
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.searchisko.api.audit.AuditServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.192 sec
Running org.searchisko.api.cache.ExpiringCacheBaseTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.565 sec
Running org.searchisko.api.cache.IndexNamesCacheTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.598 sec
Running org.searchisko.api.filter.CORSWithCredentialsFilterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.486 sec
Running org.searchisko.api.filter.ESProxyFilterTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.581 sec
Running org.searchisko.api.model.PastIntervalValueTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.searchisko.api.model.SortByValueTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.model.StatsConfiguationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.model.TimeoutConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.reindexer.FullSyncContributorAndProfilesTaskTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
Running org.searchisko.api.reindexer.ReindexFromPersistenceTaskTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.175 sec
Running org.searchisko.api.reindexer.ReindexingTaskFactoryTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
Running org.searchisko.api.reindexer.ReindexingTaskTypesTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.reindexer.ReindexSearchableEntityTaskTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec
Running org.searchisko.api.reindexer.RenormalizeByContentTypeTaskTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.971 sec
Running org.searchisko.api.reindexer.RenormalizeByEsLookedUpValuesTaskTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.938 sec
Running org.searchisko.api.reindexer.RenormalizeByEsValueTaskTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.796 sec
Running org.searchisko.api.reindexer.UpdateContributorProfileTaskTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.searchisko.api.rest.AuthStatusRestServiceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.searchisko.api.rest.ContentRestServiceTest
Tests run: 50, Failures: 1, Errors: 5, Skipped: 0, Time elapsed: 364.169 sec <<< FAILURE!
deleteContentBulk(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 60.247 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<[not_found]> but was:<[error: UnavailableShardsException[[index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: org.elasticsearch.action.bulk.BulkShardRequest@25ac4275]]>
    at org.junit.Assert.assertEquals(Assert.java:115)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at org.searchisko.api.rest.ContentRestServiceTest.deleteContentBulk(ContentRestServiceTest.java:1004)

pushContentBulk_noPersistence(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 60.15 sec  <<< ERROR!
org.elasticsearch.action.UnavailableShardsException: [index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: index {[index_name][index_type][known-1], source[{"test":"old"}]}
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.retryBecauseUnavailable(TransportShardReplicationOperationAction.java:784)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.doStart(TransportShardReplicationOperationAction.java:402)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$3.onTimeout(TransportShardReplicationOperationAction.java:500)
    at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)
    at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

deleteContent(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 60.144 sec  <<< ERROR!
org.elasticsearch.action.UnavailableShardsException: [index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: delete {[index_name][index_type][known-1]}
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.retryBecauseUnavailable(TransportShardReplicationOperationAction.java:784)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.doStart(TransportShardReplicationOperationAction.java:402)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$3.onTimeout(TransportShardReplicationOperationAction.java:500)
    at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)
    at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

pushContent_noPersistence(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 60.22 sec  <<< ERROR!
org.elasticsearch.action.UnavailableShardsException: [index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: index {[index_name][index_type][known-1], source[{"sys_visible_for_roles":["role1"],"sys_updated":"2015-05-20T08:23:58.798Z","sys_content_type":"known","test":"testvalue","sys_tags":null,"sys_content_provider":"jbossorg","sys_type":"my_sys_type","sys_content_id":"1","sys_id":"known-1"}]}
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.retryBecauseUnavailable(TransportShardReplicationOperationAction.java:784)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.doStart(TransportShardReplicationOperationAction.java:402)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$3.onTimeout(TransportShardReplicationOperationAction.java:500)
    at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)
    at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

getContent(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 90.152 sec  <<< ERROR!
org.elasticsearch.action.UnavailableShardsException: [index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: index {[index_name][index_type][known-1], source[{"name":"test"}]}
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.retryBecauseUnavailable(TransportShardReplicationOperationAction.java:784)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.doStart(TransportShardReplicationOperationAction.java:402)
    at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$3.onTimeout(TransportShardReplicationOperationAction.java:500)
    at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)
    at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

getAllContent(org.searchisko.api.rest.ContentRestServiceTest)  Time elapsed: 30.495 sec  <<< ERROR!
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query_fetch], all shards failed
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.start(TransportSearchTypeAction.java:156)
    at org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction.doExecute(TransportSearchQueryAndFetchAction.java:55)
    at org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction.doExecute(TransportSearchQueryAndFetchAction.java:45)
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75)
    at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:107)
    at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:45)
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75)
    at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:98)
    at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:334)
    at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:1116)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
    at org.searchisko.api.rest.ContentRestService.getAllContent(ContentRestService.java:147)
    at org.searchisko.api.rest.ContentRestServiceTest.getAllContent(ContentRestServiceTest.java:1149)

Running org.searchisko.api.rest.ContributorRestServiceTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec
Running org.searchisko.api.rest.CustomTagRestServiceTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec
Running org.searchisko.api.rest.ESDataOnlyResponseTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.searchisko.api.rest.exceptionmapper.ExceptionMapperBaseTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.rest.FeedRestServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
Running org.searchisko.api.rest.IndexerRestServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec
Running org.searchisko.api.rest.NormalizationRestServiceTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.069 sec
Running org.searchisko.api.rest.ProjectRestServiceTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
Running org.searchisko.api.rest.ProviderRestServiceTest
Tests run: 42, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
Running org.searchisko.api.rest.RatingRestServiceTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running org.searchisko.api.rest.RestEntityServiceBaseTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.searchisko.api.rest.RestServiceBaseTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.searchisko.api.rest.SearchRestServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.searchisko.api.rest.TaskRestServiceTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec
Running org.searchisko.api.service.AppConfigurationServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.searchisko.api.service.AuthenticationUtilServiceTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Running org.searchisko.api.service.ConfigServiceTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running org.searchisko.api.service.ContentManipulationLockServiceTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running org.searchisko.api.service.ContributorProfileServiceTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.199 sec
Running org.searchisko.api.service.ContributorServiceTest
Tests run: 38, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.681 sec
Running org.searchisko.api.service.CustomTagServiceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.searchisko.api.service.ElasticsearchClientServiceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.searchisko.api.service.ParsedFilterConfigServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.searchisko.api.service.ProjectServiceTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.032 sec
Running org.searchisko.api.service.ProviderServiceTest
May 20, 2015 10:27:18 AM org.searchisko.api.service.ProviderService authenticate
SEVERE: Provider unknown doesnt have any password hash defined.
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.56 sec
Running org.searchisko.api.service.RatingServiceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.searchisko.api.service.SearchClientServiceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.555 sec
Running org.searchisko.api.service.SearchServiceTest
Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.245 sec
Running org.searchisko.api.service.SecurityServiceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.service.StatsClientServiceTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec
Running org.searchisko.api.service.StatsRecordTypeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.api.service.TaskServiceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.searchisko.api.tasker.TaskManagerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.428 sec
Running org.searchisko.api.tasker.TaskPersisterJpaTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074 sec
Running org.searchisko.api.tasker.TaskRunnerTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.928 sec
Running org.searchisko.api.tasker.TaskStatusInfoTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.searchisko.api.tasker.TaskTest
May 20, 2015 10:27:25 AM org.searchisko.api.tasker.Task run
SEVERE: Task finished due NullPointerException
java.lang.NullPointerException
    at org.searchisko.api.tasker.TaskTest$3.answer(TaskTest.java:76)
    at org.searchisko.api.tasker.TaskTest$3.answer(TaskTest.java:73)
    at org.searchisko.api.tasker.TaskTest$7.performTask(TaskTest.java:164)
    at org.searchisko.api.tasker.Task.run(Task.java:61)
    at org.searchisko.api.tasker.TaskTest.run(TaskTest.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.searchisko.api.util.QuerySettingsParserTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.searchisko.api.util.ResourcesTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.092 sec
Running org.searchisko.api.util.SearchUtilsTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.077 sec
Running org.searchisko.contribprofile.provider.Jive6ContributorProfileProviderTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec
Running org.searchisko.persistence.jpa.model.ConfigConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.searchisko.persistence.jpa.model.ContributorConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.searchisko.persistence.jpa.model.ProjectConverterTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.searchisko.persistence.jpa.model.ProviderConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.searchisko.persistence.jpa.model.QueryConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.searchisko.persistence.service.ContentTupleTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.searchisko.persistence.service.JdbcContentPersistenceServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.331 sec
Running org.searchisko.persistence.service.JpaCustomTagPersistenceServiceTest
pred: [Tag{id=1, contentId=type1-contId1, contributorId=contribId1, tag=label1, createdAt=2015-05-20 10:27:31.183}, Tag{id=2, contentId=type1-contId1, contributorId=contribId2, tag=label2, createdAt=2015-05-20 10:27:31.276}, Tag{id=3, contentId=type1-contId1, contributorId=contribId2, tag=label3, createdAt=2015-05-20 10:27:31.279}]
po: [Tag{id=1, contentId=type1-contId1, contributorId=contribId2, tag=label1, createdAt=2015-05-20 10:27:31.183}, Tag{id=2, contentId=type1-contId1, contributorId=contribId2, tag=label2, createdAt=2015-05-20 10:27:31.276}, Tag{id=3, contentId=type1-contId1, contributorId=contribId2, tag=label3, createdAt=2015-05-20 10:27:31.279}]
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.105 sec
Running org.searchisko.persistence.service.JpaEntityServiceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.069 sec
Running org.searchisko.persistence.service.JpaRatingPersistenceServiceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.836 sec
Running org.searchisko.persistence.service.PersistenceServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.165 sec
Running org.searchisko.tools.content.ContributorMappingPreprocessorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.searchisko.tools.content.ProjectMappingPreprocessorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec

Results :

Failed tests: 
  ContentRestServiceTest.deleteContentBulk:1004 expected:<[not_found]> but was:<[error: UnavailableShardsException[[index_name][0] Primary shard is not active or isn't assigned is a known node. Timeout: [1m], request: org.elasticsearch.action.bulk.BulkShardRequest@25ac4275]]>

Tests in error: 
   » UnavailableShards [index_name][0] Primary shard is not active or isn't assi...
   » UnavailableShards [index_name][0] Primary shard is not active or isn't assi...
   » UnavailableShards [index_name][0] Primary shard is not active or isn't assi...
   » UnavailableShards [index_name][0] Primary shard is not active or isn't assi...
  ContentRestServiceTest.getAllContent:1149 » SearchPhaseExecution Failed to exe...

Tests run: 564, Failures: 1, Errors: 5, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Searchisko ........................................ SUCCESS [  0.003 s]
[INFO] Searchisko API .................................... FAILURE [07:04 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

When I run test in different order (for example on different platform) everything works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant