You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/05/12 10:33:04 UTC
[jira] [Updated] (OAK-6071) Flag string property of large size
[ https://issues.apache.org/jira/browse/OAK-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra updated OAK-6071:
---------------------------------
Attachment: OAK-6071-v1.patch
[patch|^OAK-6071-v1.patch] for the same which logs a warning if the size of any string property is greater than 4k
{noformat}
15:59:21.893 WARN [pool-1-thread-1] NodeImpl.java:1441 Large string property [/a/foo] detected (4001 size).
15:59:21.972 WARN [pool-1-thread-1] NodeImpl.java:1441 Large string property [/b/foo] detected (4001 size).
{noformat}
[~mduerig] Please review the patch. Warning is similar to one we have for OAK-1454.
> Flag string property of large size
> ----------------------------------
>
> Key: OAK-6071
> URL: https://issues.apache.org/jira/browse/OAK-6071
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.8
>
> Attachments: OAK-6071-v1.patch
>
>
> At times users store large text values as String property which causes issues later in form of higher resource consumption of caches, higher repository size etc.
> It would be good to have a validator which can flag such strings at time of commit. The size limit can be the one we use for in lined binary like 1-2KB
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)