Commit Graph
100 Commits
Author SHA1 Message Date
Axel Uhl 2444a86b88 added name of logged-in user to slow GWT RPC request log output
Change-Id: I5c417ec382dfa641cbc23b2e7851e56e7caed712
2019-02-04 23:47:51 +01:00
Axel Uhl a43a1680f5 fixed testNOAADownload() test by switching from http to https
Change-Id: I51eb0fd914b81e4009f3358452075e1c3057f607
2019-02-04 22:10:02 +01:00
Axel Uhl 17093b4dc6 availability checks now return non-2XX response code if unavailable; status script adjusted;
the java/target/status script now uses the consolidated
/sailingserver/api/v1/status end point and returns a 200 response if and
only if the RacingEventService has loaded all races it needs to load and
replication reports availability. In all other cases, non-2XX codes
are reported, such as 503 (not available) or 404 (not found)

Change-Id: I55ca3c98de993be0e6fff8e02837d17dd54431f6
2019-02-04 13:27:42 +01:00
Axel Uhl 9968b239e6 include the replication status in the gateway server status at /sailingserver/api/v1/status;
With this, the "available" attribute of the response document already is
a good indicator of the instance's availability. The next thing will be
to map this to a 5xx resonse code if the instance is not yet available

Change-Id: I87a179b04a811843bbd8cf85bba58c1eed81d46c
2019-02-04 12:54:29 +01:00
Axel Uhl 755cb3a06d replicate Shiro cache entry updates only if they are to be stored, too;
this avoids replicating stuff during loading from DB initially

Change-Id: I83365881e71456b2b177334c77ea7af8ae98690c
2019-02-04 12:33:19 +01:00
Axel Uhl c6e16048fc updated Docker files so that SAP JVM 8.1.48 is being used 2019-02-04 00:01:23 +01:00
Axel Uhl 08f4d56434 be tolerant against score being written to DB as Integer instead of Double
Change-Id: I74638053b3ff26ef8ca064f712880d926f17c57f
2019-02-03 23:06:17 +01:00
Axel Uhl eeeac6bce2 use deleteMany and $in instead of deleteOne to delete expired sessions
Change-Id: I00462df4a3943f4b631160ccf721b6db730b0eff
2019-02-03 20:41:06 +01:00
Axel Uhl 12bee93c99 added logging for long-running GWT RPC requests (>3s);
the log output looks like this:
Feb 01, 2019 2:55:16 PM com.sap.sse.gwt.dispatch.servlets.ProxiedRemoteServiceServlet logRequest
WARNING: GWT RPC Request public abstract java.util.List com.sap.sailing.gwt.ui.client.SailingService.getEvents() throws java.lang.Exception with parameters [Ljava.lang.Object;@5ef1d885 on com.sap.sailing.gwt.ui.server.SailingServiceImpl@3ba0a0d took 2.163s==2163ms to process, 0.202s==202ms to serialize the response, so 2.365s==2365ms in total.

Change-Id: Iff7a960dda9dc737ea4fc0d47cf4af76b55e536e
2019-02-01 15:05:53 +01:00
Axel Uhl 6756171f29 increase number of Jetty threadpool threads from 64 to 250;
with long-running requests such as data-mining etc. it may be
helpful to follow the Jetty recommendations and exceed the
5*#CPUs which for a 16 CPU instance would already be 80 threads,
not 64. Ultimately, we should make this a setting that is
controlled by a property determined on the respective instance,
based on the #CPUs the instance has available.

Change-Id: I911558ce431da04800e0ec50858a79221882d008
2019-02-01 14:09:03 +01:00
Axel Uhl 38d5249055 Merge branch 'bug4884'
Change-Id: I6a007134268a7b16e1ee1016f765d13a56e198c5
2019-02-01 13:46:34 +01:00
Axel Uhl f7c20b9324 always use latest Google Maps API v3;
we should monitor https://groups.google.com/forum/#!forum/google-maps-js-api-v3-notify
for changes

Change-Id: I07105b0b6e85293986fafddce89985899d87ec79
2019-02-01 00:45:46 +01:00
Axel Uhl 4608a1547e reverted the Google Maps API Key reverting; updated to Maps API 3.35;
See https://developers.google.com/maps/documentation/javascript/versions#quarterly-updates

Change-Id: I37be8f7fc798b4402bcd1190050bf38445ddc1e3
2019-02-01 00:14:33 +01:00
Axel Uhl f037506f47 replaced SAP Google Maps key by own key (temporarily)
Change-Id: Id4c9476be655701c6ce28254c3b76722d0e94e84
2019-01-31 23:47:05 +01:00
Axel Uhl c7f70e8e55 Merge branch 'bug4846'
Change-Id: I040aee1a288ef248156785b329bd65f88cbc1687
2019-01-31 16:54:23 +01:00
Axel Uhl 81a0e01df7 whitespace/formatting change only
Change-Id: Ibec611853bee1f85b67d312ffb3c2d01836ff515
2019-01-31 11:48:04 +01:00
Axel Uhl 2bf5a29d22 don't wait for the latest maneuver re-calculation on a synchronous web request
Change-Id: I7d296434912927bec17b5284bb6661b3f0659870
2019-01-31 11:46:31 +01:00
Axel Uhl b4ce7ea261 Merge branch 'bug4846' into bug4884
Change-Id: I20401934ca3604ad08bb068745607c2461e6643d
2019-01-30 18:55:42 +01:00
Axel Uhl 87db3908a1 also patch cfg/VERSION file
Change-Id: I2594d101f79d02bc3cb18a753a82191184434292
2019-01-30 18:55:21 +01:00
Axel Uhl 6047284d07 Merge branch 'bug4846' into bug4884
Change-Id: I2ca464e15a352346c3db0348438200652bc75832
2019-01-30 18:24:21 +01:00
Axel Uhl 06dd94095e fixed missing quote in releaseAndroidApps.sh
Change-Id: I506e2805334ac8b95173429b11b19bf144291232
2019-01-30 18:23:59 +01:00
Axel Uhl 8d7f08df1f Merge branch 'bug4018'
Change-Id: I20e7b770bf739c6dd5f14677eaa43d15318b3c82
2019-01-30 17:49:04 +01:00
Axel Uhl 77f5871fec fixed quoting of quotes in strings
Change-Id: Ibdb479ca6c08c1e6f597cd02a2e03851f5d2d99b
2019-01-30 16:47:36 +01:00
Axel Uhl 0ce4f5b250 escape parentheses in script to avoid errors
Change-Id: If29c5e08e118147e4e5bbfd3b9dff27ae6c105cd
2019-01-30 16:44:01 +01:00
Axel Uhl 1f3c074522 Merge branch 'bug4846' into bug4884
Change-Id: I7d7bedf86fed6d3e4e4edfe65b4cc401441f3277
2019-01-30 16:06:40 +01:00
Axel Uhl 4a47383412 Merge branch 'master' into bug4846
Change-Id: I01ca8103154bc17efd62eb8d1a268c4a2b034447
2019-01-30 16:05:27 +01:00
Axel Uhl f392fb7af0 Merge remote-tracking branch 'server/master'
Change-Id: Id4b05ad33355d63880b07cd4bdbdc35d594e0c84
2019-01-30 16:04:51 +01:00
Axel Uhl 29993d1595 addressing bug 4018, comment #12: send operation to master synchronously if it's not a re-send;
this way, replica-to-master-to-replica replication is not forced to wait
in line behind other background tasks such as maneuver re-calculations
which may unnecessarily delay, e.g., session replication to other
replicas, especially when a replica is under high background load.

Change-Id: Ic383a13905d822e6362401cbebd9e7d9aafd7a78
2019-01-30 15:14:20 +01:00
Axel Uhl 26304ce50c fixed typos in comment
Change-Id: Ic767dd28690e29ae5e3a2979f28325004c980902
2019-01-30 13:27:09 +01:00
Axel Uhl 559482a8a2 Updated mail relaying (markdown) 2019-01-29 13:47:20 +00:00
Axel Uhl fc70150508 Updated home (markdown) 2019-01-29 13:42:42 +00:00
Axel Uhl 6d1c525ffa Merge branch 'bug4883'
Change-Id: I5f56148c5e5d27a113fc3ce2130b94d0268e3a0c
2019-01-28 18:26:59 +01:00
Axel Uhl 64046f37e8 made de-serializing a PrincipalCollection from MongoDB robust against legacy in the DB
Change-Id: Ie469a0451ee7565481379b89357a19f2aa8b5a83
2019-01-28 18:26:18 +01:00
Axel Uhl c4ceabe7d3 Merge branch 'bug4883'
Change-Id: I31373140ccaf681785da28e93ac08a2eb1c0e937
2019-01-28 16:47:06 +01:00
Axel Uhl 0ce733c4af fixed createHudsonJobForBug.sh implementation for -r option (release)
Change-Id: Iecbcc745eaf7061769014511127ee4ec6a4430d2
2019-01-28 15:02:56 +01:00
Axel Uhl 599ec7fd36 made loading a session robust against principal collections written in an unknown/legacy format
Change-Id: Id72279d5cc7304a96c0f8d84c3cc9a0f0db4b45b
2019-01-28 14:59:48 +01:00
Axel Uhl 2f693569f6 fix for bug 4883: principal collection now stored such that principal/user name may contain any characters
Change-Id: Ifb32acd377fcfdb137f7092958309bf88d1b0017
2019-01-28 14:38:29 +01:00
Axel Uhl d67eddd9d5 Merge remote-tracking branch 'server_ext/master'
Change-Id: I0204464de33cffa29b3c7ed501da95634a6d4d44
2019-01-28 10:06:13 +01:00
Axel Uhl 777949afa5 updated the release notes for the MongoDB driver upgrade to 3.6.4 2019-01-28 00:24:16 +01:00
Axel Uhl c34c47bbaa Merge branch 'master' into bug4876 2019-01-28 00:20:05 +01:00
EC2 Server d6637b8133 fixed implementation of mongohash -a param 2019-01-27 20:00:17 +00:00
EC2 Server 54318d6a19 Merge remote-tracking branch 'origin/master' 2019-01-27 19:47:47 +00:00
EC2 Server 7627943eb5 added -a option ("all") to mongohash 2019-01-27 19:47:29 +00:00
Axel Uhl 240565bf5d Merge branch 'master' into bug4876 2019-01-27 18:32:50 +01:00
Axel Uhl 9313701ba4 Added test for Competitor Date-based field storing/loading
Change-Id: I88ca8a4417b0f526e06aff7672edd9fbd25678df
2019-01-27 13:11:51 +01:00
Axel Uhl 9568cb5a4a Merge branch 'translation' 2019-01-27 11:30:15 +01:00
Axel Uhl a515cd02b2 Merge remote-tracking branch 'server/bug4876' into bug4876
Change-Id: Ifbc21ec5b33d2934b42b010de4ebf4445176e449
2019-01-27 11:11:57 +01:00
Axel Uhl 0d5f583cad toJson() now needs JsonMode.RELAXED to remain compatible with org.simple.json.JSONParser;
otherwise, with the MongoDB 3.6 driver update, parsing documents
serialized using Document.toJson() will be unable to parse values of
type long properly. Those were usually represented either simply as the
number literal, or as NumberLong() constructor call. However, with the
new default behavior, they are represented as a nested Document with
a { $numberLong:...} format which cannot be cast to a Long object.
The RELAXED WriterSetting fixes this and reverts to the previous
version's default behavior.

Change-Id: I686439b7a332f2edddc6d0acb5423d80aecd1c0b
2019-01-27 10:54:38 +01:00
Axel Uhl b4d168b836 Merge remote-tracking branch 'server/master' into bug4876
Change-Id: Ie3103aacead7f3a2d1c344e32540ad3dd7f55e32
2019-01-27 10:53:49 +01:00
Axel Uhl 2971652d8c Merge remote-tracking branch 'server/master'
Change-Id: Ic8e0696303080d76a0bb17bc4c3a1e51f7c4d18d
2019-01-26 02:26:53 +01:00
Axel Uhl bb7d1549a0 Merge remote-tracking branch 'origin/master' into translation 2019-01-26 01:07:54 +01:00
Axel Uhl e910cc2313 Merge branch 'master' into bug4876 2019-01-25 23:12:26 +01:00
Axel Uhl 43550d1569 made WindFinderPollerTest robust against ConcurrentModificationException by adding synchronization 2019-01-25 23:09:24 +01:00
Axel Uhl c50bf0e2ef Merge remote-tracking branch 'origin/master' 2019-01-25 21:51:35 +01:00
Axel Uhl 8952ce5b34 fiex createHidsonJobForBug regarding response code matching 2019-01-25 19:53:16 +01:00
Axel Uhl c0a7785adc upgraded launch configs to include mongo java client 3.6.4
Change-Id: I93f99201df11aaf4405a4d214fd26a091b190f83
2019-01-25 16:57:37 +01:00
Axel Uhl 878e5d9dd2 upgraded the MongoDB driver to version 3.6.4; upgraded target platform
Change-Id: I621d4af6d3a3b0bcbf70310f731153cacfecebfc
2019-01-25 16:46:46 +01:00
Axel Uhl e7ba880c6d use latest image instead of a specific one for Sailing Pods
Change-Id: Ic892a978101adb8a89affea03063238653429958
2019-01-25 16:22:30 +01:00
Axel Uhl 14d990ecb0 fixed helm install script
Change-Id: I8f6e8cb1d9dbd8468aab06b3eb5c83c02c25bd32
2019-01-25 16:22:09 +01:00
Axel Uhl 30622b0673 Updated creating ec2 mongodb image from scratch (markdown) 2019-01-25 09:52:48 +00:00
Axel Uhl a6cabe0edb Merge remote-tracking branch 'origin/master' 2019-01-24 22:47:48 +01:00
Axel Uhl 4289557e5a the refreshInstance.sh script's "install-release" option now defaults to the newest build-* release 2019-01-24 22:35:48 +01:00
Axel Uhl b7b934037d added mongohash script to calculate hash of a MongoDB database 2019-01-24 20:53:03 +01:00
Axel Uhl b6f0d0b71e Merge branch 'translation_2' into translation 2019-01-24 18:29:30 +01:00
Axel Uhl a71a7ba2d0 updated Wiki
Change-Id: I3c562ed84ca9c2269b780e4e1d6ce799230c2aa4
2019-01-24 12:05:39 +01:00
Axel Uhl f887d772ab Updated creating ec2 mongodb image from scratch (markdown) 2019-01-24 00:35:26 +00:00
Axel Uhl 78fca99c15 added tagging as "latest" to docker script 2019-01-23 20:28:44 +01:00
Axel Uhl b07f1711e3 added scripts and config for MongoDB replica set set-up on AWS instances with ephemeral storage
Change-Id: I17c0afd256351463c95730098766118529f16376
2019-01-23 18:45:54 +01:00
Axel Uhl ff8fe2ea0d also try to push a Docker image built to the dockerhub registry
Change-Id: I67d17de18a39dcec094edb25e599dd213e2e7b96
2019-01-23 17:09:19 +01:00
Axel Uhl 1ee408a87e Merge remote-tracking branch 'server/master'
Change-Id: I885eb7276576560efc6af0c7b4f35c1a0640639b
2019-01-23 17:05:25 +01:00
Axel Uhl 919444b0c4 bug 4875: using replaceOne instead of updateOne when during migration a RaceLogEvent must be replaced
Change-Id: I4b59a63ccb0abf27c014f40002342e130795c1fe
2019-01-23 16:25:29 +01:00
Axel Uhl 723e3381c6 fixed directory handling in Docker image creation script
Change-Id: I0bbb38d09e461cc3c3c70a20e3f4c6af61ef4eaa
2019-01-23 15:18:51 +01:00
Axel Uhl 8c44936e2d Merge branch 'bug4018'
Change-Id: I68f5cb416a377aee3f8edb587f19f536add680e1
2019-01-23 13:28:49 +01:00
Axel Uhl a92aa70b87 Merge remote-tracking branch 'server/master'
Change-Id: I08706c7536d3264245ebf994166bf1e44b211e9d
2019-01-23 13:27:42 +01:00
Axel Uhl 2599fe22a8 Merge branch 'master' into bug4018
Change-Id: I28265fc4273923adff87146776e64d26a891cef7
2019-01-23 13:26:12 +01:00
Axel Uhl 6a2552a3fa try closing the socket instead of the streams;
this is also what happens in a try-with-resource

Change-Id: I53686c84f69149173e1894d0b9b3d26778c55b08
2019-01-23 11:14:28 +01:00
Axel Uhl dbf33e1693 catch SocketException; it seems a valid alternative to reading -1 if the server has closed the connection
Change-Id: Iaee1dd2a35cea0b00f338fd3bb8f2e13067813f8
2019-01-23 10:51:53 +01:00
Axel Uhl 6a26465cc5 reverted to per-byte request reading but close input stream before closing output stream on server
Change-Id: I711b6652838b53bda91e209c9573d58cfe73ad79
2019-01-23 10:27:13 +01:00
Axel Uhl 07ede58212 temporarily reverted request reading to the use of BufferedReader;
knowing it will kill the POST case I'd like to see whether this fixes
the "Connection reset" issue observed during test execution on Linux

Change-Id: I74879dc4a682759dad63184ed38cf5c575281fda
2019-01-23 10:13:51 +01:00
Axel Uhl a757c72553 Updated creating ec2 mongodb image from scratch (markdown) 2019-01-23 09:06:59 +00:00
Axel Uhl 1a2d585b0e fixed paths in makeImageForLatestRelease so it can be called from anywhere
Change-Id: I7f5d9ac9ce32449b4f50e81d0072280b5e7c9b15
2019-01-23 09:28:34 +01:00
Axel Uhl 9f0c5d62f9 Updated creating ec2 mongodb image from scratch (markdown) 2019-01-22 23:44:13 +00:00
Axel Uhl 6717e8f177 Updated creating ec2 mongodb image from scratch (markdown) 2019-01-22 23:30:44 +00:00
Axel Uhl 59fd86bb71 Updated creating ec2 mongodb image from scratch (markdown) 2019-01-22 23:02:57 +00:00
Axel Uhl 66cba6fe0a Created creating ec2 mongodb image from scratch (markdown) 2019-01-22 22:53:36 +00:00
Axel Uhl 540556cc10 Updated home (markdown) 2019-01-22 22:12:12 +00:00
Axel Uhl 119ab574ca also close socket (again) after properly closing input stream
Change-Id: I74d9b6fe74decb8d1f43ed8bff8d2f72d2c8fe2b
2019-01-22 22:17:10 +01:00
Axel Uhl 9e130314f3 close socker input stream properly before leaving the socket to GC
Change-Id: I35484bc0523045e450f5c417c61012ef0a79b7a9
2019-01-22 21:16:35 +01:00
Axel Uhl 589df34a03 Merge branch 'master' into bug4018
Change-Id: I4508d0187921733eceea5fa12e04147476eb09b6
2019-01-22 21:03:22 +01:00
Axel Uhl bcb1346555 removed Socket.close() call in replication test frame to avoid killing client-side connection prematurely
Change-Id: I5793a2fdee9e4403323446e2eece9b4a84b1f538
2019-01-22 18:10:32 +01:00
Axel Uhl c35793b76d fixed another issue with to-master-replication-queue running empty but scheduled flag not being reset
Change-Id: I434328d7618aae631330ee53a015e06030d13d7a
2019-01-22 15:04:27 +01:00
Axel Uhl d2c3bdf2b5 ensure in-order delivery of messages from replica to master;
always pass operations to be sent to master into the queue so they
cannot be delivered to the master earlier than other queued operations
after connectivity has been restored

Change-Id: I7b1409dc4663659039058ce2c0511a26009114b4
2019-01-22 14:31:58 +01:00
Axel Uhl 112548b293 now really added test which was missing from previous commit
Change-Id: I22fb542e23dc885e0b5d828f215ecdc6dbd03ad5
2019-01-22 11:04:28 +01:00
Axel Uhl bb07391659 added test for sending replication operation to master through HTTP POST
Change-Id: Ie16a2abb308dc3ae860cf729374362d9b5d21516
2019-01-22 10:50:19 +01:00
Axel Uhl 89b511f198 Merge remote branch 'origin/bug4018' 2019-01-22 07:17:30 +01:00
Axel Uhl de3f602ed6 Updated mail relaying (markdown) 2019-01-21 23:54:48 +00:00
Axel Uhl 4532677c3e register the ReplicationService object on the replicables when they become a replica, not on master
Change-Id: I354ab9b9442307c0b90b44b5949c0d03611e18e7
2019-01-22 00:23:40 +01:00
Axel Uhl 0b1f049496 reverted problematic use of POST in HttpUrlConnectionHelper introduced in bce05a434cb732390dab69aae3d3fcb26218153c;
can't write after having read

Change-Id: Icde37667bb4c6292416bcc761a59c0d91a62517a
2019-01-22 00:19:00 +01:00
Axel Uhl e633e66766 introduced queueing service for operations unsent to master
Change-Id: I0021082ec96b26b4302821a37acf2eb085baf2af
2019-01-21 23:10:45 +01:00
Axel Uhl 4543dd2089 uncompileable interims commit for bug4018: started with an operation re-send queue
Change-Id: I20acb4bd2d10226911055b8b92efa64bd56272a4
2019-01-21 18:49:51 +01:00