Archived

This forum has been archived. Please start a new discussion on GitHub.

FreezeDB::DatabaseConnection::beginTransaction(): failed

hi,
we now encountered this troubles:
-- 07/27/12 17:12:23.741 substation-1-IceStorm: Election: node 1: transition from reorganization to normal
-- 07/27/12 17:12:23.741 substation-1-IceStorm: Topic: GosHisMessage-1343375161000000-1343378761000000-client-e3bc49d0-40d3-40b7-9171-5e9e5797d03b-5ce2b43f-3903-4b22-9a9e-57b96350ac02: unsubscribe: 5ce2b43f-3903-4b22-9a9e-57b96350ac02
-- 07/27/12 17:12:23.741 substation-1-IceStorm: Topic: SmvHisMessage-1343374697598554-1343374697600554-client-42bce0d2-8924-40ca-86a1-84bfb035487b-2b20e796-a012-411d-a4ca-37585f14eadd: unsubscribe: 2b20e796-a012-411d-a4ca-37585f14eadd
icebox2: ../../../src/IceDB/FreezeTypes.cpp:118: virtual void FreezeDB::DatabaseConnection::beginTransaction(): Assertion `!_connection->currentTransaction()' failed.
from above one icebox process core dump becase of "virtual void FreezeDB::DatabaseConnection::beginTransaction(): Assertion `!_connection->currentTransaction()' failed."
the core dump file is too big(180M),can't upload,sorry。
how can cause it ,please help me ,thanks.
my icebox config is:
<icegrid>
<application name="icebox">

<server-template id="IceStormTemplate">
<parameter name="index"/>
<parameter name="node-endpoints"/>
<parameter name="nodes-0"/>
<parameter name="nodes-1"/>
<parameter name="nodes-2"/>
<parameter name="topic-manager-endpoints"/>
<parameter name="replicated-topic-manager-endpoints"/>
<parameter name="instance-name"/>
<parameter name="publish-endpoints"/>
<parameter name="replicated-publish-endpoints"/>

<icebox id="${instance-name}-${index}" exe="icebox" activation="always" user="root">

<service name="IceStorm" entry="IceStormService,34:createIceStorm">

<dbenv name="${service}"/>

<properties>
<property name="${service}.NodeId" value="${index}"/>
<property name="${service}.Node.Endpoints" value="${node-endpoints}"/>
<property name="${service}.Nodes.0" value="${nodes-0}"/>
<property name="${service}.Nodes.1" value="${nodes-1}"/>
<property name="${service}.Nodes.2" value="${nodes-2}"/>
<property name="${service}.TopicManager.Endpoints" value="${topic-manager-endpoints}"/>
<property name="${service}.ReplicatedTopicManagerEndpoints" value="${replicated-topic-manager-endpoints}"/>
<property name="${service}.InstanceName" value="${instance-name}"/>
<property name="${service}.Publish.Endpoints" value="${publish-endpoints}"/>
<property name="${service}.ReplicatedPublishEndpoints" value="${replicated-publish-endpoints}"/>

<property name="${service}.Trace.TopicManager" value="2"/>
<property name="${service}.Trace.Topic" value="1"/>
<property name="${service}.Trace.Subscriber" value="1"/>
<property name="${service}.Trace.Election" value="1"/>
</properties>
</service>
</icebox>
</server-template>

<replica-group id="PublishReplicaGroup">
</replica-group>

<replica-group id="TopicManagerReplicaGroup">
<object identity="substation/TopicManager" type="::IceStorm::TopicManager"/>
</replica-group>

<node name="iceboxNode">
<server-instance template="IceStormTemplate" index="0"
node-endpoints="default  -h 192.168.3.32 -p 13000"
nodes-0="substation/node0:default  -h 192.168.3.32 -p 13000"
nodes-1="substation/node1:default  -h 192.168.3.32 -p 13010"
nodes-2="substation/node2:default  -h 192.168.3.32 -p 13020"
topic-manager-endpoints="tcp -h 192.168.3.32 -p 10000"
replicated-topic-manager-endpoints="tcp -h 192.168.3.32 -p 10000:tcp -h 192.168.3.32 -p 10010:tcp -h 192.168.3.32 -p 10020"
instance-name="substation"
publish-endpoints="tcp -h 192.168.3.32 -p 10001"
replicated-publish-endpoints="tcp -h 192.168.3.32 -p 10001:tcp -h 192.168.3.32 -p 10011:tcp -h 192.168.3.32 -p 10021"
/>
<server-instance template="IceStormTemplate" index="1"
node-endpoints="default  -h 192.168.3.32 -p 13010"
nodes-0="substation/node0:default  -h 192.168.3.32 -p 13000"
nodes-1="substation/node1:default  -h 192.168.3.32 -p 13010"
nodes-2="substation/node2:default  -h 192.168.3.32 -p 13020"
topic-manager-endpoints="tcp -h 192.168.3.32 -p 10010"
replicated-topic-manager-endpoints="tcp -h 192.168.3.32 -p 10000:tcp -h 192.168.3.32 -p 10010:tcp -h 192.168.3.32 -p 10020"
instance-name="substation"
publish-endpoints="tcp -h 192.168.3.32 -p 10011"
replicated-publish-endpoints="tcp -h 192.168.3.32 -p 10001:tcp -h 192.168.3.32 -p 10011:tcp -h 192.168.3.32 -p 10021"
/>
<server-instance template="IceStormTemplate" index="2"
node-endpoints="default  -h 192.168.3.32 -p 13020"
nodes-0="substation/node0:default  -h 192.168.3.32 -p 13000"
nodes-1="substation/node1:default  -h 192.168.3.32 -p 13010"
nodes-2="substation/node2:default  -h 192.168.3.32 -p 13020"
topic-manager-endpoints="tcp -h 192.168.3.32 -p 10020"
replicated-topic-manager-endpoints="tcp -h 192.168.3.32 -p 10000:tcp -h 192.168.3.32 -p 10010:tcp -h 192.168.3.32 -p 10020"
instance-name="substation"
publish-endpoints="tcp -h 192.168.3.32 -p 10021"
replicated-publish-endpoints="tcp -h 192.168.3.32 -p 10001:tcp -h 192.168.3.32 -p 10011:tcp -h 192.168.3.32 -p 10021"
/>
</node>
</application>
</icegrid>

Comments

  • benoit
    benoit Rennes, France
    Hi,

    I've posted a patch here that should fix this assert.

    Cheers,
    Benoit.
  • Hi Benoit,
    thanks for the patch,we have already use it and it work good,thank you.