db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michael.hel...@deuka.de
Subject IDBroker
Date Thu, 28 Apr 2005 06:57:10 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message