Skip to content

Commit a16c70d

Browse files
- Changed solr starter quartz start delay to match the interval. The 5 sec delay was causing two thread to index resulting in the index build failing.
- Added sql updates to BLC_PAGE reverting the pageTemplateId due to an issue with the new templates - Updated POM to latest releases
1 parent b652e78 commit a16c70d

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.community.core.config;
2+
3+
import org.broadleafcommerce.common.demo.AutoImportPersistenceUnit;
4+
import org.broadleafcommerce.common.demo.AutoImportSql;
5+
import org.broadleafcommerce.common.demo.AutoImportStage;
6+
import org.broadleafcommerce.common.demo.ImportCondition;
7+
import org.springframework.context.annotation.Bean;
8+
import org.springframework.context.annotation.Conditional;
9+
import org.springframework.context.annotation.Configuration;
10+
11+
@Configuration
12+
@Conditional(ImportCondition.class)
13+
public class DemoSiteImportSqlConfig {
14+
15+
@Bean
16+
public AutoImportSql contentDataImport() {
17+
return new AutoImportSql(AutoImportPersistenceUnit.BL_PU,"sql/fix_content_page_template_ref.sql", AutoImportStage.PRIMARY_LATE);
18+
}
19+
}

core/src/main/resources/runtime-properties/common-shared.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ solr.url.primary=http://localhost:8983/solr/catalog
131131
solr.url.reindex=http://localhost:8983/solr/catalog_reindex
132132
solr.url.admin=http://localhost:8983/solr
133133

134-
solr.index.start.delay=5000
134+
solr.index.start.delay=3600000
135135
solr.index.repeat.interval=3600000
136136

137137
global.admin.url=/global
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- We want to use template id 1 for demo
2+
UPDATE BLC_PAGE set PAGE_TMPLT_ID=1 where PAGE_ID=1;
3+
UPDATE BLC_PAGE set PAGE_TMPLT_ID=1 where PAGE_ID=2;

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.broadleafcommerce</groupId>
77
<artifactId>broadleaf-boot-starter-parent</artifactId>
8-
<version>5.2.1-SNAPSHOT</version>
8+
<version>5.2.2-GA</version>
99
<relativePath />
1010
</parent>
1111

@@ -32,7 +32,7 @@
3232
<properties>
3333
<maven.compiler.source>1.8</maven.compiler.source>
3434
<maven.compiler.target>1.8</maven.compiler.target>
35-
<broadleaf-paypal.version>2.7.1-SNAPSHOT</broadleaf-paypal.version>
35+
<broadleaf-paypal.version>2.7.1-GA</broadleaf-paypal.version>
3636

3737
<debug.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${debug.port}</debug.args>
3838
<boot.jvm.memory>-Xmx1536M</boot.jvm.memory>

0 commit comments

Comments
 (0)