Commit Graph
25 Commits
Author SHA1 Message Date
Axel Uhl 39608e3f6c bug4006: in RacingEventService wait for fully-initialized SecurityService and SharedSailingData;
introduced an observer pattern that is used in case the
ReplicationService is still in the process of starting, waiting for
initial loads to complete. Only when the initial loads have completed,
the service references will be returned.
2020-03-06 18:48:30 +01:00
Axel Uhl 4747c8f331 bug4006: started to introduce a ReplicationStartingListener on ReplicationService 2020-03-06 16:11:55 +01:00
Axel Uhl a18d9de352 report actual replication operation class for wrappers; use single volatile boolean flag for initial load state instead of ThreadLocal 2020-03-06 01:32:48 +01:00
Axel Uhl 692b1cb922 404 response for replica operation sent to master now causes re-send; always send in background thread 2020-02-05 17:37:05 +01:00
Axel Uhl cc505f97d5 bug5194: added com.sap.sse.replication.persistence to store replica descriptors 2020-02-04 23:51:27 +01:00
Axel Uhl c94c1b69ad Merge branch 'master' into bug2842
Change-Id: Id6a9174ff0790b8344d0e146500bb54bf4ed4779
2019-09-13 18:31:17 +02:00
Axel Uhl ec7006cf42 bug5117: distinguish between connectivity problems and application problems
Change-Id: I21848fbf243d63d3139036495ab2d58a6fd339a8
2019-09-12 16:04:10 +02:00
Axel Uhl 0b3fb3aea5 removed obsolete TODO
Change-Id: Iea21f417e0f2677899e617407b8666b618191e55
2019-09-12 14:43:40 +02:00
Axel Uhl 89e8bef9c8 Revert "removed PluginNature from our OSGi bundles; they are not Eclipse plugins";
according to https://bugs.eclipse.org/bugs/show_bug.cgi?id=544977#c21 the
scenario of using the ManifestBuilder without setting the PluginNature is
not a supported scenario. Besides, it doesn't help to get rid of the new
Eclipse warning regarding non-exported packages.

This reverts commit 063484e29f.
2019-05-28 21:54:20 +02:00
Axel Uhl 063484e29f removed PluginNature from our OSGi bundles; they are not Eclipse plugins 2019-05-27 22:53:30 +02:00
Steffen Schaefer 09290d2425 Bug 4963: Using a proper mime type for sending operations from replica
to master. Now that shiro is active for ReplicationServlet, the
unspecified content type caused exceptions while parsing the content.
2019-04-03 17:26:15 +02:00
Steffen Schaefer 5a51aef645 Bug 4963: Fixed sending operations from a replica to the master 2019-04-03 16:52:40 +02:00
Steffen Schaefer 6c6ad3f63e Bug 4963: Using bearer token in several calls from replica to
ReplicationServlet on master
2019-04-03 10:10:56 +02:00
Steffen Schaefer 9f3c5e9dda Bug 4963: ReplicationMasterDescriptor is now aware of a bearer token.
The token is currently not given to remote calls and UI fields are
added.
2019-04-03 09:15:23 +02:00
Axel Uhl 7bfddc6926 refactored User-related methods on SecurityService to avoid sending User objects through replication operations;
this way, no patching of the userGroupProvider property after
de-serialization is necessary, and no replacement of a User object in
the UserStore should ever happen.

Change-Id: I23a8ae53b6a53ca89a2a0b8a11dc779f4034db57
2019-02-21 13:21:04 +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 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 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
Axel Uhl 34b360cc3e replication status under /replication/replication?action=STATUS
Change-Id: I63cfd64609e458690a89da3ed5478ee5f239579b
2019-01-18 17:35:58 +01:00
Axel Uhl 548b437cde don't forward exception during sending replication operation to master, only log; better log message
Change-Id: I9afe7860cab381ccab3aed91e11b631903ebced9
2019-01-18 14:08:01 +01:00
Axel Uhl 88e836bbc8 fixed replication POST connection
Change-Id: Id676d77a34d0b579c4d1376cb7332506935418e9
2019-01-16 18:13:11 +01:00
Axel Uhl bce05a434c use HttpUrlConnectionHelper in sendReplicaInitiatedOperationToMaster
Change-Id: I259341cf80dae6dbd7876a21327442aa6852cdea
2019-01-02 18:31:28 +01:00
Axel Uhl 4c4752a748 extracted replication interfaces into separate bundle to avoid having to activate the replication service only for registering a replicable
Change-Id: I22e423efee06e653a9ed3b9bea13b3b0153f7156
2018-12-14 21:27:17 +01:00