Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-819

Index Already Exists on apiman startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.2.0.Final, 1.2.x
    • None
    • None
    • None

      Sometimes when doing a fresh apiman on wildfly installation, this error appears:

      ates [], shards [5]/[1], mappings [application, service, serviceContract]
      10:57:12,275 ERROR [stderr] (PollCachingESInvalidator) Exception in thread "PollCachingESInvalidator" java.lang.RuntimeException: java.lang.Exception: Failed to create index: 'apiman_gateway' Reason: IndexAlreadyExistsException[[apiman_gateway] already exists]
      10:57:12,276 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.initializeClient(ESClientFactory.java:212)
      10:57:12,276 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.createJestClient(ESClientFactory.java:152)
      10:57:12,277 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.createJestClient(ESClientFactory.java:107)
      10:57:12,277 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.createClient(ESClientFactory.java:67)
      10:57:12,278 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.AbstractESComponent.getClient(AbstractESComponent.java:45)
      10:57:12,278 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.PollCachingESRegistry.checkCacheVersion(PollCachingESRegistry.java:195)
      10:57:12,279 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.PollCachingESRegistry$6.run(PollCachingESRegistry.java:168)
      10:57:12,279 ERROR [stderr] (PollCachingESInvalidator)  at java.lang.Thread.run(Thread.java:745)
      10:57:12,280 ERROR [stderr] (PollCachingESInvalidator) Caused by: java.lang.Exception: Failed to create index: 'apiman_gateway' Reason: IndexAlreadyExistsException[[apiman_gateway] already exists]
      10:57:12,280 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.createIndex(ESClientFactory.java:228)
      10:57:12,281 ERROR [stderr] (PollCachingESInvalidator)  at io.apiman.gateway.engine.es.ESClientFactory.initializeClient(ESClientFactory.java:209)
      10:57:12,281 ERROR [stderr] (PollCachingESInvalidator)  ... 7 more
      

            ewittman@redhat.com Eric Wittmann
            ewittman@redhat.com Eric Wittmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: