From 62703cb4339cfcce77e2a600c6e08a77c7f39e0b Mon Sep 17 00:00:00 2001 From: Gao Binlong Date: Thu, 13 Jun 2024 17:19:22 +0800 Subject: [PATCH] Add more comment Signed-off-by: Gao Binlong --- .../org/opensearch/ingest/common/FingerprintProcessor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ingest-common/src/main/java/org/opensearch/ingest/common/FingerprintProcessor.java b/modules/ingest-common/src/main/java/org/opensearch/ingest/common/FingerprintProcessor.java index 6348a2ddb8279..dc7eac189c5bc 100644 --- a/modules/ingest-common/src/main/java/org/opensearch/ingest/common/FingerprintProcessor.java +++ b/modules/ingest-common/src/main/java/org/opensearch/ingest/common/FingerprintProcessor.java @@ -34,6 +34,9 @@ */ public final class FingerprintProcessor extends AbstractProcessor { public static final String TYPE = "fingerprint"; + // this processor is introduced in 2.16.0, we append the OpenSearch version to the hash method name to ensure + // that this processor always generates same hash value based on a specific hash method, if the processing logic + // of this processor changes in future version, the version number in the hash method should be increased correspondingly. private static final Set HASH_METHODS = Set.of("MD5@2.16.0", "SHA-1@2.16.0", "SHA-256@2.16.0", "SHA3-256@2.16.0"); // fields used to generate hash value