Commit Graph
100 Commits
Author SHA1 Message Date
Axel Uhl 4d53a3d865 fixed smart future cache test which now failed due to more rigid locking policy;
can't suspend the cache(...) method which is holding the write lock while trying to read using get(...).
Now suspending the computeCacheUpdate method. This still lets get(...) read null, but during
computeCacheUpdate the write lock for the key isn't held by the cache yet. Therefore, the get can proceed.
2013-03-29 15:43:29 +01:00
Axel Uhl 465d618fbc fixed smart future cache test which now failed due to more rigid locking policy;
can't suspend the cache(...) method which is holding the write lock while trying to read using get(...).
The get(...) method will simply block because a cache update is currently on its way.
2013-03-29 15:40:01 +01:00
Axel Uhl 12c9b3761b fixed third of the leaderboard tests that failed due to the changed incurred by the fix for bug 1023 2013-03-29 15:15:49 +01:00
Axel Uhl 8922ccf470 fixed second leaderboard test case that broke because of the changes incurred by the fixes for bug 1023 2013-03-29 15:05:07 +01:00
Axel Uhl b7182c4553 fixed the first of the leaderboard tests broken by the change in behavior requested by the fix for bug 1023 2013-03-29 14:56:41 +01:00
Axel Uhl ab7fc9c519 Fixed by 1317: ConcurrentModificationException in SmartFutureCache unpropagating lock set 2013-03-22 15:09:42 +01:00
Axel Uhl 057a479586 Largely fixed bug 1023. While it doesn't show an additional column with the race count, LowPoint and HighPoint and all
their derived schemes rank a competitor better if it has more races; all races of those schemes are now always
considered valid for total points score. The old implementation is still in AbstractScoringScheme in case someone
needs them in a specific scheme.
2013-03-22 15:04:18 +01:00
Axel Uhl 98c14212aa Merge remote-tracking branch 'server/master' 2013-03-22 14:05:55 +01:00
Axel Uhl 0313c26a2d in LockUtil, consider the possibility that a thread from which locks are to be carried over doesn't hold any 2013-03-22 14:03:05 +01:00
Axel Uhl eb7245c3dc added a comment on the minimum size of the thread pool for the SmartFutureCache 2013-03-22 11:26:52 +01:00
Axel Uhl 3dfc8ca0e7 apply lock propagation also to write locks 2013-03-22 00:34:45 +01:00
Axel Uhl f9292e64c3 added lock propagation to LeaderboardDTOCache and SmartFutureCache 2013-03-22 00:28:23 +01:00
Axel Uhl 82b464eafe added comment to SmartFutureCache.triggerUpdate to explain the need for randomization in case of mass updates 2013-03-22 00:09:14 +01:00
Axel Uhl e73b325db7 Merge remote-tracking branch 'server/master' 2013-03-21 23:59:20 +01:00
Axel Uhl 91b684804b use a single ThreadPool for all SmartFutureCache instances, 3*availableProcessors in size; shuffle multi-cache-invalidations;
when invalidating a SmartFutureCache for a number of keys, if this always happens in the same order, the first few keys
will be re-computed over and over again because cancelling them is not possible as they have already started, but a new
re-calculation needs to be triggered still. All later keys will be appended to the ordered queue but will keep getting
canceled because they haven't started their calculation yet. By shuffling the keys before triggering their invalidation,
all elements will fairly get re-calculated every now and then.
2013-03-21 23:53:39 +01:00
Axel Uhl 9b3f696620 use a ConcurrentHashMap to avoid issues in LockUtil caused by concurrent access to the lockCounts map 2013-03-21 23:48:08 +01:00
Axel Uhl 40af74b11b trying to fix bug 1312 by allowing LeaderboardDTOCache to use stale results of CrossTrackErrorCache and ManeuverCache;
The LeaderboardDTOCache is invalidated upon each GPS fix received; therefore, by and large, the LeaderboardDTOCache will
be invalidated each time the maneuver and cross track error caches will be invalidated. Only in very bizarre situations
such as the end of the race stopping all GPS fixes would the LeaderboardDTOCache keep some stale results for the very end
of the race. The likelihood seems sufficiently small to tolerate the risk.
2013-03-21 22:12:00 +01:00
Axel Uhl 51ddeef2b8 working towards a solution against read-read locks when first reader waits for second reader (see bug 1313) 2013-03-21 21:22:01 +01:00
Axel Uhl feaea37a0c improved trace output for locking 2013-03-21 17:43:23 +01:00
Axel Uhl 855b22f825 small changes in architecture model 2013-03-21 13:22:17 +01:00
Axel Uhl 7fb0f297cf final run-through of presentation slides 2013-03-21 01:13:21 +01:00
Axel Uhl 57a5a59cac fixed a few typos, added Pandora's box 2013-03-21 00:57:19 +01:00
Axel Uhl d2426349fb some minor fixes to UML / Rose model and presentation 2013-03-21 00:42:11 +01:00
Axel Uhl c7b870dd8c explained the "read-read" deadlock using an animated picture 2013-03-21 00:15:53 +01:00
Axel Uhl 6a1f9cb8d3 Merge remote-tracking branch 'server/master' 2013-03-20 23:31:16 +01:00
Axel Uhl 8dfb4100df approaching the final version of the architecture curriculum presentation slides 2013-03-20 23:27:02 +01:00
Axel Uhl b923447203 added slides to the presentation; improved overview model in Rose 2013-03-20 20:54:54 +01:00
Axel Uhl 7211f60040 fixed use of LowPointWinnerGetsZero scoring scheme 2013-03-20 16:40:54 +01:00
Axel Uhl 8609ff84d1 fixed competitor ID problem for SwissTiming; pesistence layer assumed it could put a Serializable ID into a DBObject which is not the case;
More generally, this raises the question where else we rely on Serializable going into MongoDB. Opened bug 1311
2013-03-20 11:28:20 +01:00
Axel Uhl 861913a009 fixing issue with selection of XRR document if multiple matches with different time points exist 2013-03-20 10:44:12 +01:00
Axel Uhl 18d31011cd added NOAA importer launch configurations for declination import into resources/ 2013-03-20 00:33:50 +01:00
Axel Uhl 109e487468 started to work on architecture documentation and presentation 2013-03-20 00:33:15 +01:00
Axel Uhl 64fa5ab77e adjusted XRR import test verdicts after fixing the event name / boat class name mix-up 2013-03-19 22:42:27 +01:00
Axel Uhl 807ca61b7b handle non-existing results in score correction document 2013-03-19 21:41:43 +01:00
Axel Uhl 937d54b3ed added XRR import bundle to launch configs; fixed mix-up of boat class name and event name in XRR result import 2013-03-19 21:11:44 +01:00
Axel Uhl 8a1c604d99 ultimate fix for bug 1310, now also removing overall leaderboard from racing event service 2013-03-19 18:26:45 +01:00
Axel Uhl ce81b899d4 fixing bug 1310 by removing the overall leaderboard from the DB when removing the leaderboard group 2013-03-19 18:19:57 +01:00
Axel Uhl 6bef155bc5 Quick fix for bug 1310: return null as leaderboard loading result when trying to load an overall leaderboard as a flexible leaderboard 2013-03-19 18:15:29 +01:00
Axel Uhl 5327e42c1b improved exception handling during XRR import 2013-03-19 15:59:14 +01:00
Axel Uhl 5ab3d0ff5a added "ascending" flag for SwissTiming messages collection index 2013-03-19 15:13:41 +01:00
Axel Uhl f461777492 added regatta selection to SwissTiming connector panel 2013-03-19 14:05:28 +01:00
Axel Uhl aa9af67467 only accept XRR *files*, not *directories* 2013-03-19 13:51:58 +01:00
Axel Uhl df173b9347 added XRR result import activator to bundle manifest 2013-03-19 13:13:25 +01:00
Axel Uhl 9b6e52ecfe added logging to the XRR file collector 2013-03-19 13:10:50 +01:00
Axel Uhl f8df1458fe added the XRR result importer bundle to the feature and product and set it to auto-start 2013-03-19 11:40:34 +01:00
Axel Uhl 5f65bfe89a added test of date from star.xml example 2013-03-16 01:06:10 +01:00
Axel Uhl e4feb4f662 updated XRR schema, re-generated; updated examples from SwissTiming 2013-03-16 00:58:02 +01:00
Axel Uhl 0ae60b368e added official ISAF XRR examples 2013-03-15 16:23:13 +01:00
Axel Uhl b33facef6c started a Selenium UI test for leaderboard creation 2013-03-15 13:30:33 +01:00
Axel Uhl 7618c7f0d6 made the test case compile 2013-03-14 23:19:12 +01:00
Axel Uhl 0b5cee4cc5 a first compilable version of an XRR importer 2013-03-14 23:17:35 +01:00
Axel Uhl 543762311e added missing XRR parser wrapper 2013-03-14 17:27:36 +01:00
Axel Uhl ecf79ef9f1 Merge branch 'xrr' 2013-03-14 17:26:44 +01:00
Axel Uhl 0b330a3fb0 added generated XRR parser and a first very simple test case 2013-03-14 17:26:10 +01:00
Axel Uhl 82a8112e9c renamed stringConstants to stringMessages 2013-03-14 15:38:27 +01:00
Axel Uhl d3710957e5 added new scoring scheme to string messages 2013-03-14 15:37:24 +01:00
Axel Uhl 8012ce01f7 Merge branch 'master' into xrr 2013-03-14 15:29:52 +01:00
Axel Uhl 77459000c1 bug 1273: added scoring scheme that gives 0 points to race winner 2013-03-14 15:19:34 +01:00
Axel Uhl b0372f3e2b added bundle and test fragment for XRR import 2013-03-14 13:25:41 +01:00
Axel Uhl 0673d4ce0c added DSQ test to ODF ScoreCorrectionProvider tests 2013-03-13 19:38:40 +01:00
Axel Uhl ab124db5ce adapted ODF parser to ScoreCorecctionProvider interface; added a first set of tests 2013-03-13 14:55:58 +01:00
Axel Uhl 6cab009011 added another test for STAR race results 2013-03-13 13:18:52 +01:00
Axel Uhl 96428f6df7 added test for DSQ in results, also for total points and result 2013-03-13 13:11:14 +01:00
Axel Uhl 8d0c230dab fixed typing of crew; added test for it 2013-03-13 12:56:24 +01:00
Axel Uhl cd432f8a1d hasResults... implemented and tested 2013-03-13 12:49:16 +01:00
Axel Uhl 3261d49d92 added competitor code field 2013-03-12 23:04:20 +01:00
Axel Uhl f2fdafa26d a first basic version of an ODF parser that doesn't yet adapt to ScoreCorrectionProvider 2013-03-12 22:54:21 +01:00
Axel Uhl b82eabad19 interims commit; two initial green test cases that do no more than read an ODF document 2013-03-12 14:29:44 +01:00
Axel Uhl 29d174e0a4 Merge branch 'master' into odf 2013-03-12 10:56:34 +01:00
Axel Uhl c71387480f Merge branch 'master' into odf 2013-03-12 10:50:28 +01:00
Wiki User 70b7c0c7eb Modified images to include external access 2013-03-10 18:46:40 +01:00
Wiki User c99122135f Added ESS SAP boat 2013-03-10 15:05:38 +01:00
Wiki User d1678dcb73 Added ESS Leaderboard image 2013-03-10 15:02:47 +01:00
Wiki User 051ef5bd38 Added ESS SOLL image 2013-03-10 14:33:19 +01:00
Wiki User 91d53d97e3 Modified ESS IST image 2013-03-10 13:31:29 +01:00
Wiki User 61109cb52d Modified ESS IST image 2013-03-10 13:07:38 +01:00
Wiki User 97c7bac46b Added ESS IST image 2013-03-10 12:51:14 +01:00
Axel Uhl 9c5f20a577 Updated development environment (markdown) 2013-03-09 16:54:37 +01:00
Axel Uhl 3e140802f0 renamed scoring scheme after slightly changing semantics 2013-03-08 19:25:11 +04:00
Axel Uhl ca88b0518e Merge remote-tracking branch 'server/master' 2013-03-08 18:25:24 +04:00
Axel Uhl 5cf1a46875 in renamed HighPointsForstGets10LastBreaksTie scoring scheme use last race to break tie; fixed net points/total points bug in compareByScores 2013-03-08 18:22:24 +04:00
Axel Uhl d950c613e1 Merge remote-tracking branch 'server/master' 2013-03-07 20:51:41 +04:00
Axel Uhl 5c20010952 focus and select net points in EditScoreDialog 2013-03-07 20:49:45 +04:00
Axel Uhl ff7ce39387 Merge remote-tracking branch 'server/master' 2013-03-07 19:23:22 +04:00
Axel Uhl a22e593eb6 show time zone on leaderboard panel for score correction time 2013-03-07 19:20:47 +04:00
Axel Uhl ed76399644 further relaxed wind fix filtering so that race start and start of tracking, when used exactly, still match 2013-03-07 16:35:29 +04:00
Axel Uhl 19b0e87db3 relaxed timing check for wind fix filtering 2013-03-07 15:41:47 +04:00
Axel Uhl d4fc7d181e fixed filtering of wind fixes (after/before were swapped) 2013-03-07 12:18:58 +04:00
Axel Uhl 429f545298 Catch IllegalArgumentException during wind estimation in case of a mismatch between mark passing and course layout 2013-03-07 09:10:40 +04:00
Axel Uhl badcaaf6ca record wind fix only if it's between startOfTracking and endOfTracking or either of those is null 2013-03-07 09:08:54 +04:00
Axel Uhl c3ea5cb602 fixed broken (inactive) display of races in leaderboard group / spectator view
The problem was the addition of seriesName in FleetDTO which was included in equals/hashCode but not properly initialized
for flexible leaderboards. It was set to "Default" instead of null and hence the comparison to the null value as delivered
by the FlexibleLeaderboard failed.
2013-03-07 00:40:53 +04:00
Axel Uhl 06c23df2f9 Merge remote-tracking branch 'server/master' 2013-03-06 19:11:53 +04:00
Axel Uhl 06b1f44134 avoiding cache invalidations because of late wind fixes by suppressing wind after some timeout period after endOfRace 2013-03-06 15:54:21 +04:00
Axel Uhl 7eb027a1a6 Merge remote-tracking branch 'server/master' 2013-03-06 15:21:03 +04:00
Axel Uhl 020cc5d4e6 fixing bug 1261: course changes erroneously detected 2013-03-06 12:06:49 +04:00
Axel Uhl 5a7967fe79 fixed bug 1255 by adjusting race column comparison to "by name;" fixed lastN order 2013-03-05 20:29:37 +04:00
Axel Uhl 48ff9006e5 updated lastN Javadoc 2013-03-05 19:55:30 +04:00
Axel Uhl f9e15799ed changed lastN strategy to follow the "natural ordering" of the leaderboard and considering score corrections 2013-03-05 19:53:45 +04:00
Axel Uhl f57fdf56a1 Merge remote-tracking branch 'server/master' 2013-03-05 18:43:43 +04:00
Axel Uhl e589c71256 updated mobile URL for Muscat 2013-03-05 18:38:46 +04:00