I re-tried it with solr 8.11.4, but got the same error - I worked around it by 
replacing the /server/solr-webapp/webapp/WEB-INF/lib/commons-io-2.11.0.jar with 
commons-io-2.17.0.jar.
 
Regards
Steffen

> -----Original Message-----
> From: Steffen Moldenhauer <s.moldenha...@intershop.de.INVALID>
> Sent: Sunday, March 10, 2024 9:29 AM
> To: solr-u...@lucene.apache.org
> Subject: Collection API Delete Fails solr 8.11.3 on AKS
> 
> I tried to update a 8.11.2 cluster to 8.11.3 on Azure Kubernetes with
> azure_file persistent volumes (installed/running with solr operator 0.7.0)
> 
> After the update it is not possible to delete collections with the collection 
> API
> anymore
> "Error removing directory
> /var/solr/data/testindex_shard1_replica_n1/data/index before core close"
> 8.11.
> and in the stacktrace in the solr.log I found a "Operation not supported"
> 
> "org.apache.commons.io.IOExceptionList:
> /var/solr/data/testindex_shard1_replica_n1/data/index\n\tat
> org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331)\n\tat
> org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192)\n\tat
> org.apache.solr.core.StandardDirectoryFactory.removeDirectory(StandardDir
> ectoryFactory.java:95)\n\tat
> org.apache.solr.core.CachingDirectoryFactory.closeCacheValue(CachingDirec
> toryFactory.java:281)\n\tat
> org.apache.solr.core.CachingDirectoryFactory.release(CachingDirectoryFacto
> ry.java:453)\n\tat
> org.apache.solr.handler.RestoreCore.doRestore(RestoreCore.java:163)\n\ta
> t
> org.apache.solr.handler.admin.RestoreCoreOp.execute(RestoreCoreOp.java
> :80)\n\tat
> org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOp
> eration.java:367)\n\tat
> org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminH
> andler.java:397)\n\tat
> org.apache.solr.handler.admin.CoreAdminHandler.lambda$handleRequestB
> ody$0(CoreAdminHandler.java:189)\n\tat
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnabl
> e.run(InstrumentedExecutorService.java:180)\n\tat
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.la
> mbda$execute$0(ExecutorUtil.java:218)\n\tat
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)\n\tat
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)\n\tat java.base/java.lang.Thread.run(Unknown Source)\nCaused
> by: java.io.IOException: Cannot delete file:
> /var/solr/data/testindex/data/index/segments_1\n\tat
> org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344)\n\tat
> org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324)\n\t... 14
> more\nCaused by: org.apache.commons.io.IOExceptionList:
> /var/solr/data/testindex_shard1_replica_n1/data/index/segments_1\n\tat
> org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:939)\n\tat
> org.apache.commons.io.file.PathUtils.deleteFile(PathUtils.java:485)\n\tat
> org.apache.commons.io.file.PathUtils.delete(PathUtils.java:392)\n\tat
> org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341)\n\t... 15
> more\nCaused by: java.nio.file.FileSystemException:
> /var/solr/data/testindex_shard1_replica_n1/data/index/segments_1:
> Operation not supported\n\tat
> java.base/sun.nio.fs.UnixException.translateToIOException(Unknown
> Source)\n\tat
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown
> Source)\n\tat
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown
> Source)\n\tat
> java.base/sun.nio.fs.LinuxDosFileAttributeView.updateDosAttribute(Unkno
> wn Source)\n\tat
> java.base/sun.nio.fs.LinuxDosFileAttributeView.setReadOnly(Unknown
> Source)\n\tat
> org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:914)\n\t...
> 18 more\n"
> 
> Looks like it is due to the Tika update SOLR-16141: Upgrade Apache Tika to
> 1.28.4 https://issues.apache.org/jira/browse/SOLR-16141
> updated the commons-io from 2.8.0 to 2.11.0 According to
> https://issues.apache.org/jira/browse/IO-
> 785?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-
> tabpanel&focusedCommentId=17728097#comment-17728097
> it seems to require commons.io 2.12.0 to fix it.
> 
> Regards
> Steffen

Reply via email to