List:Commits« Previous MessageNext Message »
From:jon.stephens Date:October 12 2009 1:20pm
Subject:svn commit - mysqldoc@docsrva: r17077 - in trunk: dynamic-docs/changelog ndbapi
View as plain text  
Author: jstephens
Date: 2009-10-12 15:20:47 +0200 (Mon, 12 Oct 2009)
New Revision: 17077

Log:

Documented Cluster bugfixes:

	Bug #39573, Bug #47935, Bug #47984

Fixed NDBAPI basic scan example code 



Modified:
   trunk/dynamic-docs/changelog/mysqld-1.xml
   trunk/ndbapi/ndb-examples.xml


Modified: trunk/dynamic-docs/changelog/mysqld-1.xml
===================================================================
--- trunk/dynamic-docs/changelog/mysqld-1.xml	2009-10-12 00:03:54 UTC (rev 17076)
+++ trunk/dynamic-docs/changelog/mysqld-1.xml	2009-10-12 13:20:47 UTC (rev 17077)
Changed blocks: 1, Lines Added: 86, Lines Deleted: 0; 2201 bytes

@@ -9,7 +9,93 @@
   <logentry entrytype="bug">
 
     <tags>
+      <highlight type="clusterapi"/>
+      <manual type="ndbapi_scan.cpp"/>
+    </tags>
+
+    <bugs>
+      <fixes bugid="39573"/>
+    </bugs>
+
+    <versions>
+      <version ver="5.1.39-ndb-6.2.19"/>
+      <version ver="5.1.39-ndb-6.3.28"/>
+      <version ver="5.1.39-ndb-7.0.9"/>
+    </versions>
+
+    <message>
+
+      <para>
+        The error handling shown in the example file
+        <filename>ndbapi_scan.cpp</filename> included with the MySQL
+        Cluster distribution was incorrect.
+      </para>
+
+    </message>
+
+  </logentry>
+
+  <logentry entrytype="bug">
+
+    <tags>
       <highlight type="cluster"/>
+      <manual type="DataMemory"/>
+      <manual type="job buffer"/>
+    </tags>
+
+    <bugs>
+      <fixes bugid="47984"/>
+    </bugs>
+
+    <versions>
+      <version ver="5.1.39-ndb-6.3.28"/>
+      <version ver="5.1.39-ndb-7.0.9"/>
+    </versions>
+
+    <message>
+
+      <para>
+        Starting a data node with a very large amount of
+        <literal>DataMemory</literal> (approximately 90G or more) could
+        lead to crash of the node due to job buffer congestion.
+      </para>
+
+    </message>
+
+  </logentry>
+
+  <logentry entrytype="bug">
+
+    <tags>
+      <highlight type="clusterreplication"/>
+    </tags>
+
+    <bugs>
+      <fixes bugid="47935"/>
+    </bugs>
+
+    <versions>
+      <version ver="5.1.39-ndb-6.2.19"/>
+      <version ver="5.1.39-ndb-6.3.28"/>
+      <version ver="5.1.39-ndb-7.0.9"/>
+    </versions>
+
+    <message>
+
+      <para>
+        When using multiple active replication channels, it was
+        sometimes possible that a node group would fail on the slave
+        cluster, causing the slave cluster to shut down.
+      </para>
+
+    </message>
+
+  </logentry>
+
+  <logentry entrytype="bug">
+
+    <tags>
+      <highlight type="cluster"/>
       <manual type="Solaris"/>
       <manual type="ndb_mgmd"/>
       <manual type="ndb_mgm"/>


Modified: trunk/ndbapi/ndb-examples.xml
===================================================================
--- trunk/ndbapi/ndb-examples.xml	2009-10-12 00:03:54 UTC (rev 17076)
+++ trunk/ndbapi/ndb-examples.xml	2009-10-12 13:20:47 UTC (rev 17077)
Changed blocks: 2, Lines Added: 16, Lines Deleted: 3; 1211 bytes

@@ -1584,11 +1584,11 @@
       } while((check = myScanOp-&gt;nextResult(false)) == 0);
 
       /**
-       * Commit when all cached tuple have been marked for deletion
-       */
+      * NoCommit when all cached tuple have been marked for deletion       
+      */
       if(check != -1)
       {
-  check = myTrans-&gt;execute(NdbTransaction::Commit);
+        check = myTrans->execute(NdbTransaction::NoCommit);
       }
 
       if(check == -1)

@@ -1617,6 +1617,19 @@
        * End of loop
        */
     }
+   /**
+    * Commit all prepared operations
+    */
+   if(myTrans->execute(NdbTransaction::Commit) == -1)
+   {
+     if(err.status == NdbError::TemporaryError){
+        std::cout &lt;&lt; myTrans->getNdbError().message &lt;&lt; std::endl;
+        myNdb-&gt;closeTransaction(myTrans);
+        milliSleep(50);
+        continue;
+     }	
+   }
+   
     std::cout &lt;&lt; myTrans-&gt;getNdbError().message &lt;&lt; std::endl;
     myNdb-&gt;closeTransaction(myTrans);
     return 0;


Thread
svn commit - mysqldoc@docsrva: r17077 - in trunk: dynamic-docs/changelog ndbapijon.stephens12 Oct