bug5221: adjusted AbstractServerReplicationTestSetUp such that it handles the POST requests for replication operations properly now

This commit is contained in:
Axel Uhl
2020-07-07 01:13:46 +02:00
parent 4939e892e3
commit 5a6f14e810
3 changed files with 2 additions and 4 deletions
@@ -44,6 +44,7 @@ public interface OperationsToMasterSender<S, O extends OperationWithResult<S, ?>
final OperationWithResultWithIdWrapper<S, T> operationWithResultWithIdWrapper = new OperationWithResultWithIdWrapper<S, T>(operation);
addOperationSentToMasterForReplication(operationWithResultWithIdWrapper);
URL url = masterDescriptor.getSendReplicaInitiatedOperationToMasterURL(this.getId().toString());
// TODO shouldn't this also use the HttpUrlConnectionHelper?
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestProperty("Content-Type", "application/octet-stream");
String optionalBearerToken = masterDescriptor.getBearerToken();