RM-1771 (SOLR dependent integration tests failing)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@90205 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-11-10 22:32:04 +00:00
parent 2a4e0a3f84
commit 4f1b541035
3 changed files with 54 additions and 44 deletions

View File

@@ -129,6 +129,9 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
for (NodeRef nodeRef : nodeRefs)
{
if (nodeService.exists(nodeRef))
{
boolean publishing = ((Boolean)nodeService.getProperty(nodeRef, PROP_PUBLISH_IN_PROGRESS)).booleanValue();
if (!publishing)
{
// Mark the update node as publishing in progress
markPublishInProgress(nodeRef);
@@ -164,6 +167,7 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
}
}
}
}
return null;
};
}, AuthenticationUtil.getSystemUserName());
@@ -290,7 +294,7 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
return null;
}
};
retryingTransactionHelper.doInTransaction(execution, false, true);
retryingTransactionHelper.doInTransaction(execution);
}
/**

View File

@@ -1 +0,0 @@
index.subsystem.name=buildonly

View File

@@ -218,13 +218,20 @@
</property>
</bean>
<bean id="testPlaceholderConfigurer" class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
<property name="locations">
<bean id="Search" class="org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory" parent="abstractPropertyBackedBean">
<property name="autoStart">
<value>false</value>
</property>
<property name="category">
<value>Search</value>
</property>
<property name="sourceBeanName">
<value>buildonly</value>
</property>
<property name="instancePath">
<list>
<value>classpath:alfresco-global-test.properties</value>
<value>manager</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
<property name="order" value="-1" />
</bean>
</beans>