Issue with chunking in CDO [message #425234] |
Thu, 20 November 2008 08:21  |
Eclipse User |
|
|
|
Hi
I've experienced an issue with chunking in CDO.
I think the problem may be due to the following:
[From org.eclipse.emf.cdo.server.internal.db.DBStoreChunkReader]
public void addRangedChunk(int fromIndex, int toIndex)
{
super.addRangedChunk(fromIndex, toIndex);
builder.append(" AND ");
builder.append(CDODBSchema.REFERENCES_IDX);
builder.append(" BETWEEN ");
builder.append(fromIndex);
builder.append(" AND ");
builder.append(toIndex);
}
I'm testing using CDO 1.0, on MySQL.
On MySQL, BETWEEN is inclusive of the upper bound - I think the code here
is assuming BETWEEN is NOT inclusive of the upper bound. (I believe
BETWEEN may behave differently on different databases.)
Including the upper bound causes an extra iteration of the loop which
reads the ResultSet in
org.eclipse.emf.cdo.server.internal.db.ReferenceMapping, in method
readChunks, and this results in an exception being thrown.
Regards
Howard.
|
|
|
|
|
|
Re: Issue with chunking in CDO [message #425266 is a reply to message #425236] |
Fri, 21 November 2008 06:33  |
Eclipse User |
|
|
|
Howard,
I'm glad to hear that you're happy with CDO. Regarding
problems/fixes/releases, since CDO is EPL you can do with it whatever
you want except claiming you made it ;-) But you're right, normally we
expect users to only report problems (ideally, but not necessarily, with
a patch attached to fix the problem). Bugs are fixed by us in HEAD and
sometimes in the maintenance stream. Some time later we publish builds
of both streams.
Cheers
/Eike
----
http://thegordian.blogspot.com
Howard Bartfield schrieb:
> Ideally yes ... I'm very impressed with what I've seen of CDO so far,
> and I'm looking forward to investigating it further. However, I think
> CDO 2.0 is going to come too late for my team, so for now I'm
> concentrating on 1.0.
>
> Do you know if anyone has released any products using 1.0? If bugs are
> found in 1.0, would someone be allowed to ship a fixed version, or is
> the intention that bugs are 'officially' fixed by the EMF/CDO team and
> we then take the fixes?
>
> Thanks in advance,
> Howard.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03921 seconds