TransactionStateDiff incorrectly calculating getCount
-----------------------------------------------------

                 Key: GEOT-3545
                 URL: http://jira.codehaus.org/browse/GEOT-3545
             Project: GeoTools
          Issue Type: Bug
          Components: data, data property, data shapefile
    Affects Versions: 8-M0
            Reporter: Jody Garnett
            Priority: Trivial
             Fix For: 8-M0


In updating the PropertyDataStore implementation of FeatureStore I ran into a 
case where the ProperyDataStore.getCount method was returning -1; rather than 
calling super.

The super class, AbstractFeatureStore implements getCount by:

1. using AbstractDataStore.getCount to generate the total number of features 
present at the file level on Transaction.AUTO_COMMIT
2. Modifying this total based on the contents of TransactionStateDiff
   (ie removes -1 from the total, adds increase the total, modifications do not 
change the
    total).

The problem is that this work produces the wrong result as shown by the 
transaction independence test implemented by PropertyDataStoreTest.

For now the Trivial workaround is to return -1; and not engage the above code. 
No word on if ShapefileDataStore is effected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to