A FileAlreadyExistsException happens when downloading custom code artifacts in rare cases.

Solution Unverified - Updated -

Issue

  • A java.nio.file.FileAlreadyExistsException happens when configured using custom code artifacts in the spec.dependencies.artifacts field of Infinispan CR in rare cases. So the RHDG pod cannot start and the result, the pod restarts repeatedly.

    Infinispan CR:

    apiVersion: infinispan.org/v1
    kind: Infinispan
    metadata:
     name: infinispan
    spec:
     replicas: 2
     dependencies:
       artifacts:  <<== HERE
         - url: http://example.com:8080/path
           hash: sha256:596408848b56b5a23096baa110cd8b633c9a9aef2edd6b38943ade5b4edcd686
     service:
       type: DataGrid
    

    Error in <Namespace>/pods/<RHDG POD NAME>/external-artifacts-download/external-artifacts-download/logs/current.log of OCP inspect:

    <TIMESTAMP>  java.nio.file.FileAlreadyExistsException: /opt/infinispan/server/lib/external-artifacts/lib/<ARTIFACT FILE NAME>
    <TIMESTAMP>  FileAlreadyExistsException: /opt/infinispan/server/lib/external-artifacts/lib/<ARTIFACT FILE NAME>
    

Environment

  • Red Hat Data Grid (RHDG) 8.x
  • Red Hat Data Grid Operator 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content