diff --git a/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java b/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java index 03d86e8a5e..1b9d40f1c6 100644 --- a/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java +++ b/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java @@ -471,7 +471,6 @@ public void serialize(CloudBlobMetadata value, JsonGenerator gen, SerializerProv if (value.encryptionOrigin != EncryptionOrigin.NONE) { gen.writeStringField(FIELD_ENCRYPTION_ORIGIN, value.encryptionOrigin.toString()); if (value.encryptionOrigin == EncryptionOrigin.VCR) { - gen.writeStringField(FIELD_ENCRYPTION_ORIGIN, value.encryptionOrigin.toString()); gen.writeStringField(FIELD_VCR_KMS_CONTEXT, value.vcrKmsContext); gen.writeStringField(FIELD_CRYPTO_AGENT_FACTORY, value.cryptoAgentFactory); gen.writeNumberField(FIELD_ENCRYPTED_SIZE, value.encryptedSize);