Skip to content

Commit fa71055

Browse files
committed
<fix>[conf]: MySQL timeout is not defined
MySQL timeout is not defined,when MySQL stop, the heartbeat and zstack-hamon hang. Resolves: ZSTAC-83499 Change-Id: I746a6f696e66696873646c7161766563646f7378
1 parent fd33719 commit fa71055

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

conf/springConfigXml/DatabaseFacade.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<property name="testConnectionOnCheckout" value="${DbFacadeDataSource.testConnectionOnCheckout:true}"/>
5353
<property name="connectionTesterClassName" value="${DbFacadeDataSource.connectionTesterClassName:org.zstack.core.db.C3p0ConnectionTester}"/>
5454
<property name="maxIdleTime" value="${ExtraDataSource.maxIdleTime:3600}"/>
55+
<property name="checkoutTimeout" value="${ExtraDataSource.checkoutTimeout:5000}"/>
5556
</bean>
5657

5758
<bean id="entityManagerFactory"
@@ -87,7 +88,7 @@
8788
<!--.8.2.x infinispan not support async https://issues.redhat.com/browse/ISPN-4065 -->
8889
<prop key="hibernate.search.default.worker.execution">sync</prop>
8990
<!--<prop key="hibernate.search.default.index_flush_interval">${IndexWorker.flushInterval:1000}</prop>-->
90-
<prop key="hibernate.globally_quoted_identifiers">true</prop>
91+
<prop key="hibernate.globally_quoted_identifiers">true</prop>
9192
<prop key="hibernate.default_batch_fetch_size">50</prop>
9293
</props>
9394
</property>

0 commit comments

Comments
 (0)