Geotoolkit

Metadata are only partially thread-safe

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.00, 3.01, 3.02
  • Fix Version/s: 3.03
  • Component/s: Metadata
  • Labels:

Description

The getter methods in our implementation of ISO 19115 were intentionnaly not synchronized when the method does nothing else than returning an object reference. The rational was that fetching an object reference is an atomic operation anyway. However while the reference is garanteed to be correct, the values in the references object may not be fully published (see Java concurrency in practice). We should synchronize all methods, including the trivial ones.

Note that in this process, we noticed a few unsynchronized non-trivial methods, which are clearly bugs.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    05/Aug/2009 14:26
    Updated:
    13/Apr/2011 15:54
    Resolved:
    13/Apr/2011 15:54

Time Tracking

Estimated:
3h
Original Estimate - 3 hours
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
3h
Time Spent - 3 hours