From 9b9aee95c11e43454e217f55b98949beb5f6a5f6 Mon Sep 17 00:00:00 2001 From: Brian Nichols Date: Tue, 27 Aug 2024 11:36:47 -0400 Subject: [PATCH] CLIENT-3097 Add XDR_KEY_BUSY result code. --- client/src/com/aerospike/client/ResultCode.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/com/aerospike/client/ResultCode.java b/client/src/com/aerospike/client/ResultCode.java index cdf1d8341..54a3ce096 100644 --- a/client/src/com/aerospike/client/ResultCode.java +++ b/client/src/com/aerospike/client/ResultCode.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 Aerospike, Inc. + * Copyright 2012-2024 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0. @@ -233,6 +233,11 @@ public final class ResultCode { */ public static final int LOST_CONFLICT = 28; + /** + * Write can't complete until XDR finishes shipping. + */ + public static final int XDR_KEY_BUSY = 32; + /** * There are no more records left for query. */ @@ -582,6 +587,9 @@ public static String getResultString(int resultCode) { case LOST_CONFLICT: return "Transaction failed due to conflict with XDR"; + case XDR_KEY_BUSY: + return "Write can't complete until XDR finishes shipping"; + case QUERY_END: return "Query end";