lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown
Date Fri, 30 Nov 2007 18:48:24 GMT
On Nov 30, 2007 1:18 PM, robert engels <> wrote:
> I don't know, the Java guys are pretty good about making sure their
> API works consistently across all platforms, or at least documenting
> the cases where it wouldn't.

One way to consistency is a lowest-common-denominator approach.
Here is harmony's implementation:

+    public void sync() throws SyncFailedException {
+        // if the descriptor is a read-only one, do nothing
+        if (!readOnly) {
+            syncImpl();
+        }
+    }

> I would start with a read only descriptor and get it into the field.

Given that there are a large number of platforms where it could be
expected to either fail or succeed and do nothing, it doesn't seem
like the right approach.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message