Editing file while having multiple content stores causes IOException

Description

ERROR rstephan MCREventManager: Exception caught while calling event handler
java.io.UncheckedIOException: java.io.IOException: Could not resolve slot '44848' of store: STREAM_dbbs_derivate
at org.mycore.datamodel.ifs2.MCRCStoreIFS2$UpdateMetadataHandler.updateMD5(MCRCStoreIFS2.java:361)
at org.mycore.datamodel.ifs2.MCRCStoreIFS2$UpdateMetadataHandler.handlePathCreated(MCRCStoreIFS2.java:341)
at org.mycore.common.events.MCREventHandlerBase.doHandleEvent(MCREventHandlerBase.java:133)
at org.mycore.common.events.MCREventManager.handleEvent(MCREventManager.java:191)
at org.mycore.common.events.MCREventManager.handleEvent(MCREventManager.java:224)
at org.mycore.datamodel.ifs.MCRFile.adjustMetadata(MCRFile.java:536)
at org.mycore.datamodel.niofs.ifs1.MCRFileChannel.updateMetadata(MCRFileChannel.java:84)
at org.mycore.datamodel.niofs.ifs1.MCRFileChannel.implCloseChannel(MCRFileChannel.java:56)
at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
at java.nio.channels.Channels$1.close(Channels.java:178)
at java.nio.file.Files.copy(Files.java:3028)
at java.nio.file.CopyMoveHelper.copyToForeignTarget(CopyMoveHelper.java:126)
at java.nio.file.Files.copy(Files.java:1277)
at org.mycore.datamodel.niofs.utils.MCRTreeCopier.copyFile(MCRTreeCopier.java:106)
at org.mycore.datamodel.niofs.utils.MCRTreeCopier.visitFile(MCRTreeCopier.java:140)
at org.mycore.datamodel.niofs.utils.MCRTreeCopier.visitFile(MCRTreeCopier.java:43)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.mycore.webtools.upload.MCRUploadResource.commit(MCRUploadResource.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)

Environment

None

Assignee

Sebastian Hofmann

Reporter

Sebastian Hofmann

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium
Configure