You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by mi...@deuka.de on 2005/04/28 08:57:10 UTC
IDBroker
Hi!
Is it possible that there is a bug in the "IDBroker" class ?
The method "storeIDs" is not synchronized and sometimes i got a
DuplicateKeyExceptions if i inserted a lot of records
(about 2000). Then the Run-Thread picks up the same Ids like the normal
Thread. So i synchronized it and now it went fine.
I am not a very experienced Java Programmer. So maybe if it's completely
nonsense you could tell me what i did wrong.
Tel.:
Fax:
eMail: michael.heller@deuka.de
WebSite: www.deuka.de
RE: IDBroker
Posted by Thomas Fischer <fi...@seitenbau.net>.
Well, Bugs are always possible :-(
Do you mind to open up a scarab issue at
http://nagoya.apache.org/scarab/servlet/scarab
for that, so that it will not be forgotten ? Create a user, Request a role
as Observer for Torque->Source and create a new issue.
Thanks,
Thomas
michael.heller@deuka.de schrieb am 28.04.2005 08:57:10:
> Hi!
> Is it possible that there is a bug in the "IDBroker" class ?
> The method "storeIDs" is not synchronized and sometimes i got a
> DuplicateKeyExceptions if i inserted a lot of records
> (about 2000). Then the Run-Thread picks up the same Ids like the normal
> Thread. So i synchronized it and now it went fine.
> I am not a very experienced Java Programmer. So maybe if it's completely
> nonsense you could tell me what i did wrong.
>
>
> Tel.:
> Fax:
> eMail: michael.heller@deuka.de
> WebSite: www.deuka.de
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org