Issue fixed; build back to normal etc. Ended up being a combination of 
FunctionFinder not noticing name conflicts; and two functions with the same 
name.

I also note that we have both an "Area" and an "area" function; which one you 
get is based on luck.

-- 
Jody Garnett


On Sunday, 5 June 2011 at 12:22 PM, Jody Garnett wrote:

> Okay this looks to be a concurrency issue - I can run the tests multiple 
> times and have it pass or fail based on luck.
> 
> There are a number of caches kept so that function look up performs faster:
> - FunctionFinder keeps a Map<String,FunctionFactory>
> - DefaultFunctionFactory keeps a Map<String,FunctionDescriptor>
> 
> Going to open up a blocker issue on this one: 
> https://jira.codehaus.org/browse/GEOT-3629
> -- 
> Jody Garnett
> 
> 
> On Sunday, 5 June 2011 at 11:11 AM, Jody Garnett wrote:
> 
> > I cannot reproduce this error locally (tried on two machines; java 5 and 
> > java 6, using maven and eclipse).
> > 
> > Tests in error: 
> > testrint(org.geotools.filter.function.math.FilterFunction_Test)
> > 
> > Does anyone know how to actually check the surefiretest results on the 
> > server?-- 
> > Jody Garnett
> > 
> > 
> > On Sunday, 5 June 2011 at 1:10 AM, Hudson wrote:
> > 
> > > See <http://hudson.opengeo.org/hudson/job/geotools-trunk/3669/changes>
> > > 
> > > Changes:
> > > 
> > > [jive] working on adding types to FunctionName
> > > 
> > > ------------------------------------------
> > > [...truncated 2150 lines...]
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.visitor.SimplifyingFilterVisitorTest
> > > Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
> > > Running org.geotools.filter.visitor.ExtractBoundsFilterVisitorTest
> > > Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec
> > > Running org.geotools.data.QueryTest
> > > testPropertyNames
> > > testProperties
> > > testRetrieveAllProperties
> > > testMaxFeatures
> > > testGetFilter
> > > testGetHandle
> > > testGetVersion
> > > testToString
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.function.string.StringInFunctionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.util.NumericConverterFactoryTest
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
> > > Running 
> > > org.geotools.filter.visitor.PostPreProcessFilterSplitterVisitorFunctionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.util.GeometryTypeConverterTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
> > > Running org.geotools.feature.type.TypesTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.FunctionFinderTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> > > Running org.geotools.filter.IsEqualsToImplTest
> > > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.styling.visitor.RescaleStyleVisitorTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.function.StringFunctionTest
> > > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> > > Running org.geotools.feature.visitor.VisitorCalculationTest
> > > AV=50.5
> > > Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
> > > Running org.geotools.styling.SLDParserTest
> > > [Fatal Error] :-1:-1: Premature end of file.
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
> > > Running org.geotools.feature.simple.SimpleFeatureTypeImplTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.filter.FilterEqualsTest
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
> > > Running org.geotools.filter.function.CategorizeFunctionTest
> > >  testFindCategorizeFunction
> > >  testNoThresholds
> > >  testSucceedingThresholds
> > >  testPrecedingThresholds
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.011 sec
> > > Running org.geotools.filter.FilterCapabilitiesTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
> > > Running org.geotools.styling.XmlnsNamespaceTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> > > Running org.geotools.filter.function.UniqueIntervalFunctionTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> > > Running org.geotools.styling.SLDStyleTest
> > > Jun 4, 2011 3:10:25 PM org.geotools.styling.SLDParser parseUserLayer
> > > INFO: layer name: raster_layer
> > > Jun 4, 2011 3:10:25 PM org.geotools.styling.SLDParser parseUserLayer
> > > INFO: layer name: UserLayer Name
> > > Jun 4, 2011 3:10:25 PM org.geotools.styling.SLDParser parseUserLayer
> > > INFO: layer name: Second_User_Layer
> > > Jun 4, 2011 3:10:25 PM org.geotools.styling.FeatureTypeStyleImpl 
> > > setFeatureTypeName
> > > WARNING: FeatureTypeStyle with typename 'feature' - did you mean to say 
> > > 'Feature' (with a capital F) for the 'generic' FeatureType
> > > Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec
> > > Running org.geotools.feature.collection.SubFeatureCollectionTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.data.store.ReTypingFeatureCollectionTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.feature.FeatureReaderIteratorTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.data.ArrayFeatureReaderTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.geometry.jts.GeometryClipperTest
> > > 7
> > > Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.077 sec
> > > Running org.geotools.geometry.jts.DecimatorTest
> > > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> > > Running org.geotools.filter.visitor.FilterVisitorTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> > > Running 
> > > org.geotools.filter.visitor.PostPreProcessFilterSplittingVisitorTest
> > > Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
> > > Running org.geotools.filter.ExpressionTest
> > > Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> > > Running org.geotools.data.store.ReprojectingFeatureCollectionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> > > Running org.geotools.styling.StyleTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.visitor.CapabilitiesFilterSplitterSpatialTest
> > > Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec
> > > Running org.geotools.styling.SLDTransformerTest
> > > Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 sec
> > > Running org.geotools.util.CollectionConverterFactoryTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.filter.ParserTest
> > > Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec
> > > Running org.geotools.filter.function.GeometryFunctionFilterTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
> > > Running org.geotools.styling.SLDParserNamespaceTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.util.URConverterFactoryTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec
> > > Running org.geotools.data.DataAccessFinderTest
> > > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
> > > Running org.geotools.util.ColorConverterFactoryTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.feature.visitor.CalcResultTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.geometry.text.WKTParserTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
> > > Running org.geotools.styling.TextSymbolTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.filter.function.ClassificationFunctionTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
> > > Running org.geotools.styling.StyleFactoryImplTest
> > > Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> > > Running org.geotools.util.SubProgressListenerTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.styling.UserLayerTest
> > > Jun 4, 2011 3:10:26 PM org.geotools.styling.SLDTransformer <init>
> > > INFO: Added [1] namespace entries resulting in [1] distinct entries
> > > Jun 4, 2011 3:10:26 PM org.geotools.styling.SLDParser parseUserLayer
> > > INFO: layer name: user-layer-1
> > > Jun 4, 2011 3:10:26 PM 
> > > org.geotools.referencing.factory.epsg.ThreadedEpsgFactory <init>
> > > INFO: Setting the EPSG factory 
> > > org.geotools.referencing.factory.epsg.ThreadedEpsgFactory to a 1800000ms 
> > > timeout
> > > Jun 4, 2011 3:10:26 PM 
> > > org.geotools.referencing.factory.epsg.ThreadedEpsgFactory <init>
> > > INFO: Setting the EPSG factory 
> > > org.geotools.referencing.factory.epsg.DefaultFactory to a 1800000ms 
> > > timeout
> > > Jun 4, 2011 3:10:26 PM org.geotools.styling.SLDParser parseUserLayer
> > > INFO: layer name: LayerWithRemoteOWS
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec
> > > Running org.geotools.styling.StyleObjectTest
> > > Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
> > > Running org.geotools.feature.simple.SimpleTypeBuilderTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.filter.AttributeTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running org.geotools.filter.FilterTest
> > > Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec
> > > Running org.geotools.util.TemporalConverterFactoryTest
> > > Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec
> > > Running org.geotools.feature.FeatureFlatTest
> > > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> > > Running org.geotools.filter.LiteralTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.filter.function.JenksFunctionTest
> > > Jun 4, 2011 3:10:27 PM 
> > > org.geotools.filter.function.JenksNaturalBreaksFunction calculate
> > > INFO: Number of classes (5) is equal to number of data points (5) unique 
> > > classification returned
> > > Jun 4, 2011 3:10:27 PM 
> > > org.geotools.filter.function.JenksNaturalBreaksFunction calculate
> > > INFO: Number of classes (5) is equal to number of data points (5) unique 
> > > classification returned
> > > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
> > > Running org.geotools.filter.FunctionImplTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running 
> > > org.geotools.filter.visitor.PostPreProcessFilterSplittingVisitorSpatialTest
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> > > Running org.geotools.filter.function.InterpolateFunctionTest
> > >  testFindInterpolateFunction
> > >  testLinearNumericInterpolation
> > >  testLinearColorInterpolation
> > >  testCosineNumericInterpolation
> > >  testCubicNumericInterpolation
> > >  testRasterData
> > >  out of range color values
> > >  testNoMethodParameter
> > >  testNoModeParameter
> > >  testColorValuesNumericMethodMismatch
> > >  testNumericValuesColorMethodMismatch
> > > Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
> > > Running org.geotools.filter.MultiFilterTest
> > > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
> > > Running org.geotools.filter.function.EnvFunctionTest
> > >  setLocalValues
> > >  setLocalValue
> > >  setGlobalValues
> > >  setGlobalValue
> > >  test case-insensitive global lookup
> > >  test case-insensitive local lookup
> > >  clearGlobalValues
> > >  clearLocalValues
> > >  getArgCount
> > >  literal default value
> > >  non-literal default value
> > > Jun 4, 2011 3:10:27 PM org.geotools.filter.function.EnvFunction 
> > > setFallbackValue
> > > WARNING: The setFallbackValue is not supported by this function.Use a 
> > > second argument when calling the function to provide a default value.
> > > Jun 4, 2011 3:10:27 PM org.geotools.filter.function.EnvFunction 
> > > setFallbackValue
> > > WARNING: The setFallbackValue is not supported by this function.Use a 
> > > second argument when calling the function to provide a default value.
> > > Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
> > > Running org.geotools.data.crs.ForceCoordinateFeatureResultsTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> > > Running org.geotools.filter.visitor.DuplicateFilterVisitorTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.filter.MathTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running org.geotools.filter.expression.AddImplTest
> > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running org.geotools.styling.SLDTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.filter.FunctionExpressionImplTest
> > > Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
> > > Running org.geotools.filter.function.IdFunctionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.function.FunctionFactoryTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
> > > Running org.geotools.data.DataUtilitiesTest
> > > Tests run: 31, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 sec
> > > Running org.geotools.feature.FeatureTypeTest
> > > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
> > > Running org.geotools.data.store.ReprojectFeatureResultsTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> > > Running org.geotools.filter.FilterTransformerTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.feature.simple.SimpleFeatureBuilderTest
> > > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
> > > Running org.geotools.filter.AreaFunctionTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running org.geotools.filter.function.StandardDeviationFunctionTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> > > Running org.geotools.filter.FilterVisitorTest
> > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> > > Running org.geotools.filter.expression.SimpleFeaturePropertyAccessorTest
> > > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > Running org.geotools.filter.visitor.PropertyNameResolvingFilterVisitorTest
> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> > > Running org.geotools.filter.visitor.CapabilitiesFilterSplitterFunctionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > > Running org.geotools.filter.function.Collection_FunctionsTest
> > > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
> > > Running org.geotools.data.store.MaxFeaturesFeatureCollectionTest
> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> > > 
> > > Results :
> > > 
> > > Tests in error: 
> > >  testrint(org.geotools.filter.function.math.FilterFunction_Test)
> > > 
> > > Tests run: 917, Failures: 0, Errors: 1, Skipped: 1
> > > 
> > > [INFO] 
> > > ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO] 
> > > ------------------------------------------------------------------------
> > > [INFO] There are test failures.
> > > 
> > > Please refer to 
> > > <http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/library/main/target/surefire-reports>
> > >  for the individual test results.
> > > [INFO] 
> > > ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO] 
> > > ------------------------------------------------------------------------
> > > [INFO] Total time: 2 minutes 30 seconds
> > > [INFO] Finished at: Sat Jun 04 15:10:27 UTC 2011
> > > [INFO] Final Memory: 57M/282M
> > > [INFO] 
> > > ------------------------------------------------------------------------
> > > 
> > > 
> > > ------------------------------------------------------------------------------
> > > Simplify data backup and recovery for your virtual environment with 
> > > vRanger.
> > > Installation's a snap, and flexible recovery options mean your data is 
> > > safe,
> > > secure and there when you need it. Discover what all the cheering's about.
> > > Get your free trial download today. 
> > > http://p.sf.net/sfu/quest-dev2dev2 
> > > _______________________________________________
> > > Geotools-devel mailing list
> > > [email protected] 
> > > (mailto:[email protected])
> > > https://lists.sourceforge.net/lists/listinfo/geotools-devel
> > 
> 

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to