Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9230

Randomize ES1 cluster names so tests don't join each others' clusters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.0.1
    • Fix Version/s: 19.1.0
    • Component/s: Testing / JUnit
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon - March 15th

      Description

      It looks like the Elasticsearch 1 integration tests are flapping because occasionally the Bamboo machines will launch an Elasticsearch 1 service at the same time and they will cluster with each other via broadcast discovery. This can lead to extra events appearing in the ES index. Tests will then fail with a message like:

      16-Mar-2017 06:22:26	2017-03-16 06:22:26,292 WARN [pool-192-thread-1] org.opennms.smoketest.minion.AbstractSyslogTest - ES search hits was not equal to 10100: 13100
      16-Mar-2017 06:22:26	java.lang.AssertionError: ES search hits was not equal to 10100: 13100
      16-Mar-2017 06:22:26	        at org.junit.Assert.fail(Assert.java:88)
      16-Mar-2017 06:22:26	        at org.junit.Assert.assertTrue(Assert.java:41)
      16-Mar-2017 06:22:26	        at org.opennms.smoketest.minion.AbstractSyslogTest.lambda$pollForElasticsearchEventsUsingJest$0(AbstractSyslogTest.java:291)
      16-Mar-2017 06:22:26	        at com.jayway.awaitility.core.CallableCondition$ConditionEvaluationWrapper.eval(CallableCondition.java:100)
      16-Mar-2017 06:22:26	        at com.jayway.awaitility.core.ConditionAwaiter$ConditionPoller.run(ConditionAwaiter.java:179)
      16-Mar-2017 06:22:26	        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      16-Mar-2017 06:22:26	        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      16-Mar-2017 06:22:26	        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      16-Mar-2017 06:22:26	        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      16-Mar-2017 06:22:26	        at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              seth Seth Leger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: