| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>DB_INCOMPLETE</title> |
| 7 |
<link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Berkeley DB Upgrade Guide" /> |
| 10 |
<link rel="up" href="upgrade_3_2_toc.html" title="Chapter 12. Upgrading Berkeley DB 3.1 applications to Berkeley DB 3.2" /> |
| 11 |
<link rel="prev" href="upgrade_3_2_renumber.html" title="Logically renumbering records" /> |
| 12 |
<link rel="next" href="upgrade_3_2_tx_recover.html" title="DB_ENV->set_tx_recover" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div xmlns="" class="navheader"> |
| 16 |
<div class="libver"> |
| 17 |
<p>Library Version 11.2.5.3</p> |
| 18 |
</div> |
| 19 |
<table width="100%" summary="Navigation header"> |
| 20 |
<tr> |
| 21 |
<th colspan="3" align="center">DB_INCOMPLETE</th> |
| 22 |
</tr> |
| 23 |
<tr> |
| 24 |
<td width="20%" align="left"><a accesskey="p" href="upgrade_3_2_renumber.html">Prev</a> </td> |
| 25 |
<th width="60%" align="center">Chapter 12. Upgrading Berkeley DB 3.1 applications to Berkeley DB 3.2</th> |
| 26 |
<td width="20%" align="right"> <a accesskey="n" href="upgrade_3_2_tx_recover.html">Next</a></td> |
| 27 |
</tr> |
| 28 |
</table> |
| 29 |
<hr /> |
| 30 |
</div> |
| 31 |
<div class="sect1" lang="en" xml:lang="en"> |
| 32 |
<div class="titlepage"> |
| 33 |
<div> |
| 34 |
<div> |
| 35 |
<h2 class="title" style="clear: both"><a id="upgrade_3_2_incomplete"></a>DB_INCOMPLETE</h2> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<p> |
| 40 |
There are a number of functions that flush pages from the Berkeley DB shared memory buffer pool |
| 41 |
to disk. Most of those functions can potentially fail because a page that needs to be flushed |
| 42 |
is not currently available. However, this is not a hard failure and is rarely cause for |
| 43 |
concern. In the Berkeley DB 3.2 release, the C++ API (if that API is configured to throw |
| 44 |
exceptions) and the Java API have been changed so that this failure does not throw an exception, |
| 45 |
but rather returns a non-zero error code of <code class="literal">DB_INCOMPLETE</code>. |
| 46 |
</p> |
| 47 |
<p> |
| 48 |
The following C++ methods will return <code class="literal">DB_INCOMPLETE</code> rather than throw |
| 49 |
an exception: |
| 50 |
<a href="../api_reference/CXX/dbclose.html" class="olink">Db::close</a>, |
| 51 |
<a href="../api_reference/CXX/dbsync.html" class="olink">Db::sync</a>, |
| 52 |
<a href="../api_reference/CXX/mempsync.html" class="olink">DbEnv::memp_sync</a>, |
| 53 |
<a href="../api_reference/CXX/txncheckpoint.html" class="olink">DbEnv::txn_checkpoint</a>, |
| 54 |
and <a href="../api_reference/CXX/mempfsync.html" class="olink">DbMpoolFile::memp_fsync</a>. |
| 55 |
</p> |
| 56 |
<p> |
| 57 |
The following Java methods are now declared "public int" rather than "public void", and will |
| 58 |
return <code class="literal">Db.DB_INCOMPLETE</code> rather than throw an exception: |
| 59 |
<code class="methodname">Db.close()</code>, <code class="methodname">Db.sync()</code>, and |
| 60 |
<code class="methodname">DbEnv.checkpoint()</code>. |
| 61 |
</p> |
| 62 |
<p> |
| 63 |
It is likely that the only change required by any application will be those currently checking |
| 64 |
for a <code class="literal">DB_INCOMPLETE</code> return that has been encapsulated in an exception. |
| 65 |
</p> |
| 66 |
</div> |
| 67 |
<div class="navfooter"> |
| 68 |
<hr /> |
| 69 |
<table width="100%" summary="Navigation footer"> |
| 70 |
<tr> |
| 71 |
<td width="40%" align="left"><a accesskey="p" href="upgrade_3_2_renumber.html">Prev</a> </td> |
| 72 |
<td width="20%" align="center"> |
| 73 |
<a accesskey="u" href="upgrade_3_2_toc.html">Up</a> |
| 74 |
</td> |
| 75 |
<td width="40%" align="right"> <a accesskey="n" href="upgrade_3_2_tx_recover.html">Next</a></td> |
| 76 |
</tr> |
| 77 |
<tr> |
| 78 |
<td width="40%" align="left" valign="top">Logically renumbering records </td> |
| 79 |
<td width="20%" align="center"> |
| 80 |
<a accesskey="h" href="index.html">Home</a> |
| 81 |
</td> |
| 82 |
<td width="40%" align="right" valign="top"> DB_ENV->set_tx_recover</td> |
| 83 |
</tr> |
| 84 |
</table> |
| 85 |
</div> |
| 86 |
</body> |
| 87 |
</html> |