diff --git a/lra/coordinator/client/narayana-client/src/main/java/io/helidon/lra/coordinator/client/narayana/NarayanaClient.java b/lra/coordinator/client/narayana-client/src/main/java/io/helidon/lra/coordinator/client/narayana/NarayanaClient.java index bcf62571685..958a7373f7e 100644 --- a/lra/coordinator/client/narayana-client/src/main/java/io/helidon/lra/coordinator/client/narayana/NarayanaClient.java +++ b/lra/coordinator/client/narayana-client/src/main/java/io/helidon/lra/coordinator/client/narayana/NarayanaClient.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, 2022 Oracle and/or its affiliates. + * Copyright (c) 2021, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -145,11 +145,9 @@ public Single cancel(URI lraId, PropagatedHeaders headers) { logF("LRA cancelled - LRAID: {0}", lraId); return Single.empty(); case CLIENT_ERROR: + logF("Unexpected client error during LRA cancel - LRAID: {0}, Status: {1}", lraId, status.code()); + return Single.empty(); default: - if (404 == status.code()) { - LOGGER.warning("Cancel LRA - Coordinator can't find id - LRAID: " + lraId); - return Single.empty(); - } return connectionError("Unable to cancel lra " + lraId, status.code()); } })