Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11755

Fabric Cxf Registration Handler has conflict with git operation

XMLWordPrintable

    • % %
    • -
    • Fuse 7.5 Sprint 53 - Blockers

      When we create a new branch or update a profile in Fabric, the cxf registration handler block the git operation and this ends with profile read lock error:

      2019-09-23 09:07:09,979 | ERROR | ad-1-EventThread | FabricCxfRegistrationHandler     | 160 - io.fabric8.fabric-cxf-registry - 1.2.0.redhat-621216-02 | Failed to register API endpoint for http://xxx.xxx.xxx.xxx:xxx/xxx.
      java.lang.IllegalStateException: Cannot obtain profile read lock in time
              at io.fabric8.api.gravia.IllegalStateAssertion.assertTrue(IllegalStateAssertion.java:55)[68:io.fabric8.fabric-api:1.2.0.redhat-621216-02]
              at io.fabric8.git.internal.GitDataStoreImpl.aquireReadLock(GitDataStoreImpl.java:455)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.git.internal.GitDataStoreImpl.getVersionFromCacheRO(GitDataStoreImpl.java:510)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.git.internal.GitDataStoreImpl.getVersionFromCache(GitDataStoreImpl.java:502)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.git.internal.GitDataStoreImpl.getVersion(GitDataStoreImpl.java:668)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.internal.ProfileServiceImpl.getVersion(ProfileServiceImpl.java:126)[69:io.fabric8.fabric-core:1.2.0.redhat-621216-02]
              at io.fabric8.internal.ContainerImpl.getVersion(ContainerImpl.java:203)[69:io.fabric8.fabric-core:1.2.0.redhat-621216-02]
              at io.fabric8.cxf.registry.FabricCxfRegistrationHandler.registerApiEndpoint(FabricCxfRegistrationHandler.java:305)[160:io.fabric8.fabric-cxf-registry:1.2.0.redhat-621216-02]
              at io.fabric8.cxf.registry.FabricCxfRegistrationHandler.onMBeanEvent(FabricCxfRegistrationHandler.java:243)[160:io.fabric8.fabric-cxf-registry:1.2.0.redhat-621216-02]
              at io.fabric8.cxf.registry.FabricCxfRegistrationHandler.replay(FabricCxfRegistrationHandler.java:199)[160:io.fabric8.fabric-cxf-registry:1.2.0.redhat-621216-02]
              at io.fabric8.cxf.registry.FabricCxfRegistrationHandler.nodeChanged(FabricCxfRegistrationHandler.java:572)[160:io.fabric8.fabric-cxf-registry:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended$4.apply(NodeCacheExtended.java:293)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended$4.apply(NodeCacheExtended.java:287)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:93)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)[61:com.google.guava:17.0.0]
              at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:85)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended.setNewData(NodeCacheExtended.java:284)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended.processBackgroundResult(NodeCacheExtended.java:252)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended.access$300(NodeCacheExtended.java:53)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.recipes.cache.NodeCacheExtended$3.processResult(NodeCacheExtended.java:111)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:753)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:522)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.curator.framework.imps.GetDataBuilderImpl$3.processResult(GetDataBuilderImpl.java:257)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:561)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
              at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)[76:io.fabric8.fabric-zookeeper:1.2.0.redhat-621216-02]
      2019-09-23 09:07:09,980 | INFO  | ad-1-EventThread | FabricCxfRegistrationHandler     | 160 - io.fabric8.fabric-cxf-registry - 1.2.0.redhat-621216-02 | Registering endpoint io.fabric8.cxf:bus.id=xxx.xxx.xxx.xxx.xxx.xxx.xxx-xxx,type=Bus.Service.Endpoint,service="{http://xxx.xxx.xxx.xxx.xxx.xxx.xxx.com/}xxx",port="xxx",instance.id=xxx type null has status STARTEDat http://0.0.0.0:xxx/xxx
      2019-09-23 09:07:35,003 | ERROR | ad-1-EventThread | FabricCxfRegistrationHandler     | 160 - io.fabric8.fabric-cxf-registry - 1.2.0.redhat-621216-02 | Failed to register API endpoint for http://xxx.xxx.xxx.xxx:xxx/xxx.
      java.lang.IllegalStateException: Cannot obtain profile read lock in time
       at io.fabric8.api.gravia.IllegalStateAssertion.assertTrue(IllegalStateAssertion.java:55)[68:io.fabric8.fabric-api:1.2.0.redhat-621216-02]
              at io.fabric8.git.internal.GitDataStoreImpl.aquireReadLock(GitDataStoreImpl.java:455)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.git.internal.GitDataStoreImpl.getVersionFromCacheRO(GitDataStoreImpl.java:510)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
              at io.fabric8.git.internal.GitDataStoreImpl.getVersionFromCache(GitDataStoreImpl.java:502)[71:io.fabric8.fabric-git:1.2.0.redhat-621216-08]
      

              ggrzybek Grzegorz Grzybek
              rhn-support-aboucham Abel Bouchama
              Vratislav Hais Vratislav Hais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: