You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2014/05/20 13:46:47 UTC
svn commit: r1596215 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
Author: reschke
Date: Tue May 20 11:46:47 2014
New Revision: 1596215
URL: http://svn.apache.org/r1596215
Log:
OAK-1266 - improved diagnostics and javadoc
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java?rev=1596215&r1=1596214&r2=1596215&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java Tue May 20 11:46:47 2014
@@ -136,6 +136,10 @@ import com.google.common.util.concurrent
* </tr>
* </tbody>
* </table>
+ * <p>
+ * <em>Note that the database needs to be created/configured to support all Unicode
+ * characters in text fields, and to collate by Unicode code point (in DB2: "identity collation").
+ * THIS IS NOT THE DEFAULT!</em>
*
* <h3>Caching</h3>
* <p>
@@ -467,7 +471,7 @@ public class RDBDocumentStore implements
}
if (!success) {
- throw new MicroKernelException("failed update (race?) after " + maxRetries + " retries");
+ throw new MicroKernelException("failed update of " + doc.getId() + " (race?) after " + maxRetries + " retries");
}
return oldDoc;
@@ -506,7 +510,9 @@ public class RDBDocumentStore implements
String tableName = getTable(collection);
List<T> result = new ArrayList<T>();
if (indexedProperty != null && !MODIFIED.equals(indexedProperty)) {
- throw new MicroKernelException("indexed property " + indexedProperty + " not supported");
+ String message = "indexed property " + indexedProperty + " not supported, query was '>= '" + startValue + "'";
+ LOG.info(message);
+ throw new MicroKernelException(message);
}
try {
connection = getConnection();
@@ -518,6 +524,7 @@ public class RDBDocumentStore implements
addToCacheIfNotNewer(collection, doc);
}
} catch (Exception ex) {
+ LOG.error("SQL exception on query", ex);
throw new MicroKernelException(ex);
} finally {
closeConnection(connection);