From 019944c2fde57dd36bc77a4c839207bb5860b0b7 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Mon, 30 Oct 2023 17:03:25 +0530 Subject: [PATCH] entity_audits index handle NoSuchElementException --- .../apache/atlas/repository/audit/ESBasedAuditRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/audit/ESBasedAuditRepository.java b/repository/src/main/java/org/apache/atlas/repository/audit/ESBasedAuditRepository.java index 13c69d537c..3de1728a7a 100644 --- a/repository/src/main/java/org/apache/atlas/repository/audit/ESBasedAuditRepository.java +++ b/repository/src/main/java/org/apache/atlas/repository/audit/ESBasedAuditRepository.java @@ -336,7 +336,7 @@ private boolean shouldUpdateFieldLimitSetting() { LOG.error("Problem while retrieving the index field limit!", e); return false; } - Integer fieldLimitFromConfigurationFile = configuration.getInt(TOTAL_FIELD_LIMIT); + Integer fieldLimitFromConfigurationFile = configuration.getInt(TOTAL_FIELD_LIMIT, 0); return currentFieldLimit == null || fieldLimitFromConfigurationFile > currentFieldLimit.asInt(); }