I would recommend reporting the issue, and either attaching a patch or
linking to a pull request. We ask that patches include a test case to
demonstrate the issue and that the fix works - I understand that can be
difficult with a race condition.
Jody Garnett
On Fri, Jul 4, 2014 at 5:30 AM, Alex Davies-Moore <[email protected]> wrote:
> Hi all,
>
> I think I've found a race condition in JDBCDataStore and just wondered if
> anyone else may have seen something similar. The problem comes down to:
>
> JDBCDataStore#getAggregateFunctions (line 583)
>
> On the first few times through this code, I'm failing to find a 'count'
> function - stepping though it I can see the aggregateFunctions being
> populated and the dialect registering the functions.
>
> After the first few calls, everything is running AOK again.
>
> My basic setup is a small WMS server handling multiple HTTP requests in
> parallel. I'm sharing a JDBCDataStore between threads.
>
> My apologies if it's a bit high level - I'm really just getting into the
> internals of GeoTools. Happy to provide more info and I can submit a patch
> it if it's the right way forward.
>
> Thanks
>
> Alex
>
>
>
> *Alex Davies-Moore / Developer*
>
> 25 Wayman Road / Corfe Mullen / Dorset / BH21 3PL / UK
> P: +44 (0) 1202 697 394 / M: +44 (0) 7961 629 399 / T: @schoenobates
>
> Devork Limited is a limited company registered in England and Wales
> Registered number: 07699891
> Registered office: 25 Wayman Road, Corfe Mullen, Dorset, BH21 3PL
>
> This message and any files transmitted with it are the property of Devork
> Ltd, are confidential, and are intended solely for the use of the person or
> entity to whom this e-mail is addressed. If you are not one of the named
> recipient(s) or otherwise have reason to believe that you have received
> this message in error, please contact the sender and delete this message
> immediately from your computer. Any other use, retention, dissemination,
> forwarding, printing, or copying of this e-mail is strictly prohibited.
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users