This is an automated email from the ASF dual-hosted git repository. stefanegli pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push: new 28ca094a74 OAK-10890 - Added log warning (#1535) 28ca094a74 is described below commit 28ca094a749ec72ac6005a6b7eed6b77b9392a25 Author: ionutzpi <ionut...@yahoo.com> AuthorDate: Tue Jun 18 12:46:35 2024 +0300 OAK-10890 - Added log warning (#1535) * OAK-10890 - Added log warning * OAK-10890 - Added prefix to log warning --------- Co-authored-by: pirlogea <pirlo...@adobe.com> --- .../jackrabbit/oak/plugins/index/property/PropertyIndexEditor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexEditor.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexEditor.java index 26c5d15e4b..bc79f19016 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexEditor.java +++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexEditor.java @@ -53,6 +53,8 @@ import org.apache.jackrabbit.oak.spi.mount.MountInfoProvider; import org.apache.jackrabbit.oak.spi.state.NodeBuilder; import org.apache.jackrabbit.oak.spi.state.NodeState; import org.jetbrains.annotations.NotNull; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Index editor for keeping a property index up to date. @@ -62,6 +64,8 @@ import org.jetbrains.annotations.NotNull; */ class PropertyIndexEditor implements IndexEditor { + private static final Logger log = LoggerFactory.getLogger(PropertyIndexEditor.class); + /** Parent editor, or {@code null} if this is the root editor. */ private final PropertyIndexEditor parent; @@ -328,6 +332,7 @@ class PropertyIndexEditor implements IndexEditor { String msg = String.format( "Uniqueness constraint violated property %s having value %s", propertyNames, failed); + log.warn("checkUniquenessConstraints: {}", msg); throw new CommitFailedException(CONSTRAINT, 30, msg); } }