Commit Graph
341 Commits
Author SHA1 Message Date
Axel Uhl f94e5a0791 bug5797: interims commit, passing Charset to InputStream constructor where possible 2022-12-22 18:55:19 +01:00
Axel Uhl b0462d2233 mockito-4.8.1: upgraded Import-Package versions to 4.8.1 for mockito-core 2022-12-20 23:41:46 +01:00
Axel Uhl cbe9204f19 mockito-4.8.1: refactored all tests so they compile with mockito-core 4.8.1 2022-12-20 18:25:58 +01:00
Axel Uhl a6363406be bug5792: introduce org.hamcrest-2.2.0, remove gwt-dev deps 2022-12-12 06:18:51 -08:00
Axel Uhl a679cf5236 adjusted code to upgraded JUnit, avoiding deprecation warnings 2022-11-29 13:47:14 +01:00
Axel Uhl 804f5df550 bug5217: major refactoring, passing through MarkPassingRaceFingerprintRegistry "everywhere" 2022-10-12 15:08:42 +02:00
Axel Uhl 82d1ee9c74 bug5728: added more ClientSession handling to make test failures with MongoDB replica sets less likely 2022-08-12 00:43:00 +02:00
Axel Uhl b63b2591f7 bug5728: countering the com.mongodb.MongoCommandException: Command failed with error 225 (TransactionTooOld) exception
The exception messagewas:
'Retryable write with txnNumber 99 is prohibited on session e77b2b97-ec19-4b13-816a-c9e1a639890b - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= because a newer retryable write with txnNumber 101 has already started on this session.' on server silent:27017. The full response is {"operationTime": {"$timestamp": {"t": 1660252581, "i": 8}}, "ok": 0.0, "errmsg": "Retryable write with txnNumber 99 is prohibited on session e77b2b97-ec19-4b13-816a-c9e1a639890b - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= because a newer retryable write with txnNumber 101 has already started on this session.", "code": 225, "codeName": "TransactionTooOld", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1660252581, "i": 8}}, "signature": {"hash": {"$binary": {"base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "subType": "00"}}, "keyId": 0}}}
The problem was most likely that the metadata collection was written by
a separate thread, thus violating the preconditions for using
ClientSession which demands all access to happen through the same
thread. The solution was now to split this into two separate optional
ClientSession objects: one for the fixes, one for the metadata
2022-08-11 23:41:32 +02:00
Axel Uhl d0b4f06a0d bug5728: pass through the outlier removal parameter one level more for testing 2022-08-11 21:50:32 +02:00
Axel Uhl 1bad933aee bug5728: use MongoDB client session properly in fix store 2022-08-11 18:12:57 +02:00
Axel Uhl 39522f30d6 bug5728: fixed MetadataUpdater wait mechanics; tests locally green 2022-08-11 17:44:07 +02:00
Axel Uhl 947de37542 bug5728: manually-crafted test fix sequences must not undergo outlier filtering; fighting intermittent MongoDB causality errors 2022-08-11 02:11:56 +02:00
Finn Huelsbusch d888c1fad9 added configuration for eclipse 2022-06 and updated the onboarding 2022-07-07 16:51:33 +02:00
Axel Uhl ff695c49f4 bug5619: introduced readConcern parameter for MetadataCollection; use MAJORITY only for tests, otherwise DEFAULT 2021-08-24 11:09:56 +02:00
Axel Uhl 2c622e5b45 patched <!DOCTYPE projectDescription> into all project files to avoid info/warning in problems view about no grammar constraint 2021-06-19 12:45:03 +02:00
Axel Uhl e6471e7595 fixed tests after changing the default for tracking time range inference from true to false 2021-06-03 09:30:33 +02:00
Axel Uhl 00f726e710 made all variables / parameters on whose value a lock is obtained/released final and adding missing finally clauses 2021-04-16 16:01:34 +02:00
Axel Uhl 4db4b95b62 bug4811: set org.eclipse.jdt.core.compiler.codegen.methodParameters to generate in all preference files; Tycho respects them! 2021-02-16 14:58:38 +01:00
Georg Herdt aa2a98fb3e Merge branch 'master' into bug5480
# Conflicts:
#	java/com.sap.sailing.gwt.ui/.settings/com.gwtplugins.gwt.eclipse.core.prefs
2021-01-23 04:32:41 +01:00
Axel Uhl bd06b75e3d moved JsonSerializer and JsonDeserializer to com.sap.sse.shared.android to make them re-usable by all web bundles 2021-01-21 16:54:42 +01:00
Georg Herdt fbadad0ef7 switch from java.servlet bundle to osgi-servlet bundle to be able to resolve DTDs and XSD for validation (e.g. web.xml)
bug 5153
2021-01-17 22:10:27 +01:00
Axel Uhl 522c4b3a5e bug5374: making WriteConcern a constructor argument of MongoSensorFixStoreImpl, so tests can use MAJORITY 2020-09-18 17:57:36 +02:00
Axel Uhl 6ac197a473 bug5374: introduced asynchronous background metadata update;
a few tests fail now, probably because the accelerated fix insertion leaves less time
for actually committing the writes, and with write concern UNACKNOWLEDGED the client
may not necessarily read its own writes. Should we introduce sleep times? Or is there
a better way to have test cases wait for the completion also of unacknowledged writes?
2020-09-18 17:37:40 +02:00
Axel Uhl ce0189f4e2 bug5374: passing through request params for GPS fix submission explicitly requesting maneuver and delay to live response 2020-09-17 18:23:45 +02:00
Axel Uhl 4174172460 adjusted test cases in SensorFixStoreAndLoadTest for the new LOADING status preceding the TRACKING status 2020-07-29 15:03:54 +02:00
Axel Uhl 9a96d3f057 bug3465: fixed persistence of course area IDs 2020-05-08 16:49:41 +02:00
Axel Uhl 079438c534 bug3465: first compilable version after changing from single to multiple course areas per leaderboard/regatta; untested! 2020-05-08 00:42:20 +02:00
Axel Uhl 6e1a042001 bug5219: introduced the isAutoRestartTrackingUponCompetitorSetChange() flag on Regatta 2020-04-15 18:10:03 +02:00
Alessandro Stoltenberg 160c57f41b bug5231: merge master 2020-03-13 16:53:05 +01:00
Axel Uhl 1cd701132f store the GPS fix received last for each device in the metadata collection 2020-01-09 12:53:39 +01:00
Axel Uhl 6a1abc313a Merge branch 'master' into bug5168 2020-01-07 10:53:28 +01:00
Dennis Aulenbacher 17e1d760d0 commented test constructors with null values, added informative javadoc 2019-12-05 16:56:04 +01:00
Steffen Schaefer 9b35cf574c Merge branch 'master' into bug5085
Conflicts:
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.properties
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages_de.properties
2019-11-25 08:19:26 +01:00
Dennis Aulenbacher 53b01cd2bc changes to constructor and creation-methods of TrackedRaces resulting from new field 2019-11-12 17:33:09 +01:00
Steffen Schaefer 7b143f372c Merge branch 'master' into bug5085
Conflicts:
	java/com.sap.sailing.domain.persistence/src/com/sap/sailing/domain/persistence/impl/FieldNames.java
	java/com.sap.sailing.domain.shared.android/src/com/sap/sailing/domain/base/Mark.java
	java/com.sap.sailing.domain.shared.android/src/com/sap/sailing/domain/base/impl/MarkImpl.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/SailingService.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/SailingServiceAsync.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages.properties
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/StringMessages_de.properties
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/server/SailingServiceImpl.java
	java/com.sap.sailing.server.test/src/com/sap/sailing/server/test/MasterDataImportTest.java
	java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java
2019-11-04 13:08:42 +01:00
Axel Uhl 74338f692e major refactoring of RaceLogResolver;
Introduced specialization that can also resolve a TrackedRace based on a
SimpleRaceLogIdentifier. This is then used to find TrackedRaces for race
log entries setting the implied wind to come from another TrackedRace.
With this, it doesn't matter whether the other tracked race has an ORC
Performance Curve ranking metric or not, or if the reference points to a
race slot that doesn't even have a tracked race attached. If a tracked
race is attached, it will be asked for its "reference implied wind."
Otherwise, the race log will be scanned, but if "own maximum implied
wind" is requested and there is no tracked race, null will be returned.

Change-Id: I14fe32f8a473281c9f489eb081544ae20c5b37f3
2019-10-26 00:00:58 +02:00
Steffen Jacobs 68ca787c7b Bug 5085: moved PingDeviceIdentifier + Impl from
com.sap.sailing.domain.racelogtrackingadapter to
com.sap.sailing.domain.shared.android next to SmartphoneUUIDIdentifier
2019-09-26 14:47:27 +02:00
Axel Uhl a85da965be bug5106: starting to introduce parameter indicating Boat/Competitor was loaded from DB 2019-07-28 14:45:53 +02:00
Axel Uhl 61876871fd bug4987: added per-file permission management to FileStorageService impls
Change-Id: I2b04ae8ee9e31e06661857bf7470a1a112a0ac42
2019-04-10 22:14:27 +02:00
Kai Börnert 17d5a285b5 made regattaSecret no longer optional, for the old code paths without a
secret, a UUID.random().toString() is used
2019-02-21 16:17:07 +01:00
Axel Uhl 928fb696f9 Merge branch 'master' into permission-vertical
Change-Id: I34f527380632a307472bdca1d120708b31ca856b
2019-02-15 18:15:13 +01:00
Axel Uhl a8a3a3d392 letting TrackListeners distinguish add/replace in the callback
Change-Id: I68261e029aa9bed79f7cafe231b2b9949ecda1e1
2019-02-13 12:09:03 +01:00
Steffen Schaefer 1e00d2d194 Merge branch 'master' into permission-vertical
# Conflicts:
#	java/com.sap.sailing.domain.persistence/META-INF/MANIFEST.MF
#	java/com.sap.sailing.domain.racelogtrackingadapter/META-INF/MANIFEST.MF
#	java/com.sap.sailing.domain.swisstimingadapter.persistence/META-INF/MANIFEST.MF
#	java/com.sap.sailing.domain.swisstimingadapter.persistence/src/com/sap/sailing/domain/swisstimingadapter/persistence/impl/SwissTimingAdapterPersistenceImpl.java
#	java/com.sap.sailing.domain.swisstimingadapter.test/META-INF/MANIFEST.MF
#	java/com.sap.sailing.domain.tractracadapter.persistence/META-INF/MANIFEST.MF
#	java/com.sap.sailing.domain.tractracadapter.persistence/src/com/sap/sailing/domain/tractracadapter/persistence/impl/MongoObjectFactoryImpl.java
#	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/server/DataMiningServiceImpl.java
#	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/server/SailingServiceImpl.java
#	java/com.sap.sailing.polars.datamining/META-INF/MANIFEST.MF
#	java/com.sap.sailing.server.gateway.test/src/com/sap/sailing/server/gateway/test/jaxrs/AbstractJaxRsApiTest.java
#	java/com.sap.sailing.server.interface/src/com/sap/sailing/server/interfaces/RacingEventService.java
#	java/com.sap.sailing.server.replication.test/META-INF/MANIFEST.MF
#	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/TrackRaceReplicationTest.java
#	java/com.sap.sailing.server.test/src/com/sap/sailing/server/test/TaggingServiceTest.java
#	java/com.sap.sailing.server.testsupport/META-INF/MANIFEST.MF
#	java/com.sap.sailing.server/META-INF/MANIFEST.MF
#	java/com.sap.sailing.server/src/com/sap/sailing/server/impl/Activator.java
#	java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java
#	java/com.sap.sailing.server/src/com/sap/sailing/server/tagging/TaggingServiceImpl.java
#	java/com.sap.sse.mail.replication.testsupport/src/com/sap/sse/mail/replication/testsupport/AbstractMailServiceReplicationTest.java
#	java/com.sap.sse.security.test/META-INF/MANIFEST.MF
#	java/com.sap.sse.security.test/src/com/sap/sse/security/jaxrs/api/SecurityResourceTest.java
#	java/com.sap.sse.security.test/src/com/sap/sse/security/test/UserStoreWithPersistenceTest.java
#	java/com.sap.sse.security.userstore.mongodb/META-INF/MANIFEST.MF
#	java/com.sap.sse.security.userstore.mongodb/src/com/sap/sse/security/userstore/mongodb/MongoObjectFactory.java
#	java/com.sap.sse.security.userstore.mongodb/src/com/sap/sse/security/userstore/mongodb/impl/DomainObjectFactoryImpl.java
#	java/com.sap.sse.security.userstore.mongodb/src/com/sap/sse/security/userstore/mongodb/impl/MongoObjectFactoryImpl.java
#	java/com.sap.sse.security/src/com/sap/sse/security/impl/SecurityServiceImpl.java
2018-12-17 14:36:37 +01:00
Axel Uhl 72bc50fc0d move RacingEventService into a separate com.sap.sailing.server.interface bundle
Change-Id: Ib75bf6a46be9eaf2d9ccfad85832a3be8a7686be
2018-12-14 23:56:24 +01:00
Axel Uhl 914be75f91 warning-free workspace after upgrading to MongoDB 3.x APIs, eliminating deprecation issues
Change-Id: I9773b899e140871f5fa4b865ca6d2116bf73c642
2018-12-10 23:22:20 +01:00
Axel Uhl 4dd9f10e2c removed further deprecations by switching imports from junit.* to org.junit 2018-12-10 03:46:28 +01:00
Axel Uhl 5cde3206f3 more Timeout updates to avoid deprecation warnings 2018-12-10 03:15:49 +01:00
Axel Uhl d8c2cf8cd3 upgraded target platform to newer MongoDB driver from org.eclipse.orbit;
A 3.x driver is required to connect to Microsoft Azure Cosmos. Upgrading
the target platform accordingly requires further upgrades, including Hamcrest
and JUnit libraries. This, in turn, deprecates or obsoletes numerous APIs,
parts of which that caused compilation *errors* I've replaced by their new
counterparts. Several more warnings still remain and need to be tackled by
replacing the usages to their new counterparts.
2018-12-10 03:00:59 +01:00
Steffen Schaefer 1bdb7dfcfd Initially implemented the possibility to intercept TrackedRace creation
through RaceTrackers
2018-12-05 17:11:32 +01:00
Thomas Wiese cc2c751223 Merge branch 'bug4709' into bug4709_pv
Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/base/Regatta.java
	java/com.sap.sailing.gwt.ui.test/src/com/sap/sailing/gwt/ui/test/SlicingTest.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/CreateRegattaCallback.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/SailingService.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/SailingServiceAsync.java
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/server/SailingServiceImpl.java
	java/com.sap.sailing.server.gateway.test/src/com/sap/sailing/server/gateway/test/jaxrs/AbstractJaxRsApiTest.java
	java/com.sap.sailing.server.gateway.test/src/com/sap/sailing/server/gateway/test/jaxrs/RegattasResourceTest.java
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/jaxrs/api/EventsResource.java
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/jaxrs/api/RegattasResource.java
2018-10-24 15:20:27 +02:00