Gettig OakState0001: Unresolved conflicts error on asset import
Hi All,
We have a scheduled task that triggers a workflow which brings/imports assets from a ftp server/site. these assets are of type .psd (with average file size 35-40 MB).
We are observing lot of errors of type OakState0001 in log files, the asset count is fine...I mean all the assets are getting downloaded from ftp site and uploaded into AEM.
But there are quite a few errors in logs....and this causes lot of workflow failures in workflow console.
Apparently, there is some conflict arising with (DAM-Update-asset) workflow and workflow process that brings these assets from FTP site.
We enabled ConflictValidator logs and could see something like below --
org.apache.jackrabbit.oak.plugins.commit.ConflictValidator Commit failed due to unresolved conflicts in /content/dam/projects/company/january/012120_set_e/retouched/21PSDW_INSERT.jpg/jcr:content = {addExistingProperty = {jcr:lastModifiedBy = {workflow-p...,customer-asset-...}}}
org.apache.jackrabbit.oak.plugins.commit.ConflictValidator Commit failed due to unresolved conflicts in /content/dam/projects/company/january/012120_set_e/retouched/08IRENNA_1.psd/jcr:content/renditions/cq5dam.thumbnail.48.48.png/jcr:content = {addExistingProperty = {jcr:data = {<BINARY>,<BINARY>}}}
out of which "customer-asset-..." is our system user that is used to acquire resource resolver in workflow process that downloads and creates these assets in dam.
The code for workflow that imports assets gets resource resolver in below manner --
Map<String,Object> paramMap = new HashMap<>();
paramMap.put(ResourceResolverFactory.SUBSERVICE,"dam-asset-move");
try {
resourceResolver = resourceResolverFactory.getServiceResourceResolver(paramMap);
//
some code to connect to ftp site and loop for every asset
//
assetManager.createAsset(assetName,inputStream,mimeType,true);
The whole process of downloading assets from ftp site takes close to 2 hours ....since there are ~600 assets every day.
@joerghoh any insights from you to investigate this further would help a lot!