modified logging when receiving a replication operation through HTTP

Change-Id: I246f9e09bb9ba3df52e211bdce4d4a1354a44ba4
This commit is contained in:
Axel Uhl committed 2016-12-21 17:23:46 +01:00
1 parent 65313c591d
commit 263a1c8ebc
1 file changed
+1 -1
@@ -138,13 +138,13 @@ public class ReplicationServlet extends AbstractHttpServlet {
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
logger.info("Received request to apply and replicate an operation from a replica");
InputStream is = req.getInputStream();
DataInputStream dis = new DataInputStream(is);
String replicableIdAsString = dis.readUTF();
try {
Replicable<?, ?> replicable = replicablesProvider.getReplicable(replicableIdAsString, /* wait */ false);
if (replicable != null) {
logger.info("Received request to apply and replicate an operation from a replica for replicable "+replicable);
applyOperationToReplicable(replicable, is);
} else {
logger.warning("Received operation for replicable "+replicableIdAsString+