From 1ea33b43f6bcc101e7beeb20f352d57b7cbc103e Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Sat, 11 Nov 2023 00:13:14 +0530 Subject: [PATCH] PLT-302 Fix logging --- .../apache/atlas/repository/store/aliasstore/ESAliasStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java index f4c073d725..475d856197 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java @@ -182,7 +182,7 @@ private void personaPolicyToESDslClauses(List policies, int assetSize = terms.size() + assets.size() + 1; if (assetSize > assetsMaxLimit) { // For Metadata policies, along with assets we add 1 more clause for connection qualifiedName hence comparing with "assets.size() + 1" - throw new AtlasBaseException(AtlasErrorCode.PERSONA_POLICY_ASSETS_LIMIT_EXCEEDED, String.valueOf(assetsMaxLimit), String.valueOf(terms.size() + assets.size() + 1)); + throw new AtlasBaseException(AtlasErrorCode.PERSONA_POLICY_ASSETS_LIMIT_EXCEEDED, String.valueOf(assetsMaxLimit), String.valueOf(assetSize)); } String connectionQName = getPolicyConnectionQN(policy);