Hi, I'll try to take a look on that on my side too. Cheers, Daniele
On Sat, Jul 3, 2021 at 5:39 PM mark <mc.pr...@gmail.com> wrote: > I could not get the the upgrade to work on wondows either for > https://github.com/geotools/geotools/pull/3474 > > I'm suspecting something with last modified time of those files. > the path to the file is insignificant; it is a random temp directory > generated by junit > > Op 01-07-2021 om 18:18 schreef Ian Turton: > > I'm trying to bump the version of commons-io from 2.6 to 2.10 (or any > other value for now) and all is fine except for > `org.geotools.coverage.io.netcdf.NetCDFMosaicReaderTest.testReHarvest()` on > a Windows machine which fails by not reading the 2 new granules added to > the NC file. I've checked the obvious things like files being held open or > not overwritten etc and it isn't anything obvious that I can see (I'm sure > it will be obvious once someone points it out :-) ). I've compared the log > files of a linux and windows run but nothing jumps out at me. > > > 16c16 > < INFO: ACCEPTED: /tmp/junit8062632297122653609/nc_harvest4/ > polyphemus_20130301_test.nc > --- > > INFO: ACCEPTED: > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\ > polyphemus_20130301_test.nc > 24c24 > < INFO: found > /tmp/junit8062632297122653609/nc_harvest4/datastore.properties > --- > > INFO: found > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\datastore.properties > > the file names are different! > > 36a37,38 > > org.geotools.gce.imagemosaic.Utils loadMosaicProperties > > INFO: Required key Levels not found. > > Windows seems to loop through this one more time (I suspect it is just a > timing thing as my windows VM is slower) > > 38c40 > < INFO: found > /tmp/junit8062632297122653609/nc_harvest4/datastore.properties > --- > > INFO: found > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\datastore.properties > 45c47 > < target /tmp/junit8062632297122653609/nc_harvest4/ > polyphemus_20130301_test.nc > --- > > target > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\ > polyphemus_20130301_test.nc > 47,48c49,50 > < > /tmp/junit8062632297122653609/nc_harvest4/polyphemus_20130301_test.nc.bak > exists? true > < nc2 > /home/ian/code/geotools/modules/plugin/coverage-multidim/netcdf/target/test-classes/org/geotools/coverage/io/netcdf/test-data/ > polyphemus_20130301_test_more_times.nc > --- > > > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\polyphemus_20130301_test.nc.bak > exists? true > > nc2 > X:\geotools\modules\plugin\coverage-multidim\netcdf\target\test-classes\org\geotools\coverage\io\netcdf\test-data\ > polyphemus_20130301_test_more_times.nc > 51,52d52 > < org.geotools.jdbc.JDBCDataStore getSQLTypeNames > < WARNING: Fetching fields from Database > > Linux makes an extra (?) call to get the SQLTypeNames > > 54c54 > < INFO: ACCEPTED: /tmp/junit8062632297122653609/nc_harvest4/ > polyphemus_20130301_test.nc > --- > > INFO: ACCEPTED: > C:\Users\ian\AppData\Local\Temp\junit17289880738954782938\nc_harvest4\ > polyphemus_20130301_test.nc > > Linux has 4 granules rather than windows 2: > > 59,60d58 > < SimpleFeatureImpl:O3=[SimpleFeatureImpl.Attribute: the_geom<the_geom > id=O3.5>=POLYGON ((4.9375 44.96875, 4.9375 50.96875, 14.9375 50.96875, > 14.9375 44.96875, 4.9375 44.96875)), SimpleFeatureImpl.Attribute: > location<location id=O3.5>=polyphemus_20130301_test.nc, > SimpleFeatureImpl.Attribute: imageindex<imageindex id=O3.5>=2, > SimpleFeatureImpl.Attribute: time<time id=O3.5>=2013-03-01 02:00:00.0] > < SimpleFeatureImpl:O3=[SimpleFeatureImpl.Attribute: the_geom<the_geom > id=O3.6>=POLYGON ((4.9375 44.96875, 4.9375 50.96875, 14.9375 50.96875, > 14.9375 44.96875, 4.9375 44.96875)), SimpleFeatureImpl.Attribute: > location<location id=O3.6>=polyphemus_20130301_test.nc, > SimpleFeatureImpl.Attribute: imageindex<imageindex id=O3.6>=3, > SimpleFeatureImpl.Attribute: time<time id=O3.6>=2013-03-01 03:00:00.0] > > I've attached the full logs if anyone else wants to look. I'm completely > stumped by this but I don't really understand what the test is doing or > what subtle failures it could have? > > Ian > -- > Ian Turton > > > _______________________________________________ > GeoTools-Devel mailing > listGeoTools-Devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geotools-devel > > > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > -- Regards, Daniele Romagnoli == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Daniele Romagnoli Senior Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel