[
https://issues.apache.org/jira/browse/SLING-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15631792#comment-15631792
]
Chetan Mehrotra commented on SLING-6227:
----------------------------------------
[~mreutegg] I did the above changes. Post this the nodetype from system looks
like
{noformat}
[sling:chunk] > nt:hierarchyNode
primaryitem jcr:data
- sling:offset (long) mandatory
- jcr:data (binary) mandatory
[sling:chunks]
mixin
- sling:fileLength (long) ignore
- sling:length (long) ignore
+ * (sling:chunk) multiple ignore
{noformat}
I also see following log entries which indicate changes picked up.
{noformat}
2016-11-03 11:28:35,539 INFO NA [FelixStartLevel]
o.a.j.o.p.n.TypeEditorProvider - Node type change for sling:chunks appears to
be trivial
2016-11-03 11:28:35,541 INFO NA [FelixStartLevel]
o.a.j.o.p.n.TypeEditorProvider - Node type changes: [sling:chunks] appear to be
trivial, repository will not be scanned
{noformat}
Then when I created below nodesture (shown after version checkin done)
{code:javascript}
{
"jcr:primaryType": "dam:Asset",
"jcr:mixinTypes": [
"mix:versionable"
],
"jcr:createdBy": "admin",
"jcr:versionHistory": "53114959-41f7-4836-94b2-baa371e20a3e",
"jcr:predecessors": [
"e6cb08f9-7cc4-4850-b52b-a2e0d019f789"
],
"jcr:created": "Thu Nov 03 2016 11:16:43 GMT+0530",
"jcr:baseVersion": "e6cb08f9-7cc4-4850-b52b-a2e0d019f789",
"jcr:isCheckedOut": true,
"jcr:uuid": "c821576e-0cc3-4f1b-ab94-df16d989bb88",
"jcr:content": {
"jcr:primaryType": "dam:AssetContent",
"jcr:mixinTypes": [
"sling:chunks"
],
"cq:parentPath": "/content/dam/we-retail/en/activities/biking",
"dam:relativePath": "we-retail/en/activities/biking/cycling_2.jpg",
"chunk1": {
"jcr:primaryType": "sling:chunk",
"jcr:createdBy": "admin",
"sling:offset": 111,
"jcr:created": "Thu Nov 03 2016 11:54:25 GMT+0530",
":jcr:data": 1109
},
"renditions": {
"jcr:primaryType": "nt:folder",
"jcr:createdBy": "admin",
"jcr:created": "Thu Nov 03 2016 11:16:43 GMT+0530"
},
{code}
I can still the chunk nodes in version store
{code:javascript}
{
"jcr:primaryType": "nt:frozenNode",
"jcr:frozenPrimaryType": "dam:AssetContent",
"jcr:lastModifiedBy": "admin",
"jcr:frozenMixinTypes": ["sling:chunks"],
"cq:name": "cycling_2.jpg",
"jcr:lastModified": "Mon Sep 12 2016 17:16:52 GMT+0530",
"jcr:frozenUuid": "c821576e-0cc3-4f1b-ab94-df16d989bb88/jcr:content",
"jcr:uuid": "519e760a-c02f-4ef0-bcdf-22cc1aac033c",
"cq:parentPath": "/content/dam/we-retail/en/activities/biking",
"chunk1": {
"jcr:primaryType": "nt:frozenNode",
"jcr:createdBy": "admin",
"jcr:frozenPrimaryType": "sling:chunk",
"sling:offset": 111,
"jcr:created": "Thu Nov 03 2016 11:54:25 GMT+0530",
"jcr:frozenUuid": "c821576e-0cc3-4f1b-ab94-df16d989bb88/jcr:content/chunk1",
":jcr:data": 1109,
"jcr:uuid": "bb826002-1339-4622-b850-90acebfd0d9f"
},
{code}
> Disable versioning for chunk nodes
> ----------------------------------
>
> Key: SLING-6227
> URL: https://issues.apache.org/jira/browse/SLING-6227
> Project: Sling
> Issue Type: Improvement
> Components: Servlets
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: Servlets Post 2.3.16
>
>
> While analyzing some customer setup it was found that {{sling:chunk}} nodes
> are getting stored in version store and thus preventing the temporary files
> created from getting garbage collection.
> {noformat}
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_75000000_79999999
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_60000000_64999999
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_45000000_49999999
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_20000000_24999999
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_105000000_109999999
> /jcr:system/jcr:versionStorage/13/6a/9c/136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/1.3/jcr:frozenNode/jcr:content/chunk_110000000_114999999>
> pn
> { jcr:primaryType = nt:frozenNode, jcr:createdBy = admin,
> jcr:frozenPrimaryType = sling:chunk, sling:offset = 110000000, jcr:created =
> 2015-12-10T22:23:13.409-05:00, jcr:frozenUuid =
> 136a9c8d-4dd8-42e5-bced-67eec6ad8a3e/jcr:content/chunk_110000000_114999999,
> jcr:data = {-1 bytes}, jcr:uuid = a98d131c-4892-42d4-aa15-4bb0402b176d }
> {noformat}
> This can be fixed by tweaking the nodetype definition for sling:chunks to
> disable versioning for sling:chunk nodes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)