Contributing to Elastic Search on Github

Hello everyone,

I am trying to setup the ElasticSearch environment in my system to start contributing to the Github repo. I have been following the steps in Contributing.MD and I am facing an error when i ran "./gradlew check" with the latest code and no changes. It's as below

    org.elasticsearch.monitor.jvm.JvmInfoTests > testUseG1GC FAILED
    org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e>
        at __randomizedtesting.SeedInfo.seed([1B2A89A5E7DE1D4F:2E9BCB2C7AD32AC9]:0)
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at org.elasticsearch.monitor.jvm.JvmInfoTests.testUseG1GC(JvmInfoTests.java:33)
REPRODUCE WITH: ./gradlew :server:test --tests "org.elasticsearch.monitor.jvm.JvmInfoTests.testUseG1GC" -Dtests.seed=1B2A89A5E7DE1D4F -Dtests.security.manager=true -Dtests.locale=om-ET -Dtests.timezone=Africa/Algiers -Dcompiler.java=12 -Druntime.java=12

Suite: Test class org.elasticsearch.monitor.jvm.JvmInfoTests
  1> [2019-04-09T17:36:49,382][INFO ][o.e.m.j.JvmInfoTests     ] [testUseG1GC] before test
  1> [2019-04-09T17:36:49,402][INFO ][o.e.m.j.JvmInfoTests     ] [testUseG1GC] after test
  2> REPRODUCE WITH: ./gradlew :server:test --tests "org.elasticsearch.monitor.jvm.JvmInfoTests.testUseG1GC" -Dtests.seed=1B2A89A5E7DE1D4F -Dtests.security.manager=true -Dtests.locale=om-ET -Dtests.timezone=Africa/Algiers -Dcompiler.java=12 -Druntime.java=12
  2> org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e>
        at __randomizedtesting.SeedInfo.seed([1B2A89A5E7DE1D4F:2E9BCB2C7AD32AC9]:0)
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at org.elasticsearch.monitor.jvm.JvmInfoTests.testUseG1GC(JvmInfoTests.java:33)
  2> NOTE: leaving temporary files on disk at: /home/vivek/elastic/elasticsearch/server/build/testrun/test/temp/org.elasticsearch.monitor.jvm.JvmInfoTests_1B2A89A5E7DE1D4F-001
  2> NOTE: test params are: codec=Asserting(Lucene80): {}, docValues:{}, maxPointsInLeafNode=1504, maxMBSortInHeap=7.298212980353846, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@12877fbf), locale=om-ET, timezone=Africa/Algiers
  2> NOTE: Linux 4.13.0-46-generic amd64/Oracle Corporation 12 (64-bit)/cpus=1,threads=1,free=375344968,total=518979584
  2> NOTE: All tests run in this JVM: [InetAddressRandomBinaryDocValuesRangeQueryTests, FloatRandomBinaryDocValuesRangeQueryTests, DoubleRandomBinaryDocValuesRangeQueryTests, LongRandomBinaryDocValuesRangeQueryTests, BlendedTermQueryTests, IntegerRandomBinaryDocValuesRangeQueryTests, SpanMatchNoDocsQueryTests, BinaryDocValuesRangeQueryTests, MinDocQueryTests, SearchAfterSortedDocQueryTests, CustomUnifiedHighlighterTests, BoundedBreakIteratorScannerTests, CustomPassageFormatterTests, CollapsingTopDocsCollectorTests, TruncateTokenFilterTests, DeDuplicatingTokenFilterTests, JvmGcMonitorServiceSettingsTests, JvmStatsTests, JvmGcMonitorServiceTests, JvmInfoTests]
WARNING: Illegal reflective access by org.mockito.internal.creation.jmock.ClassImposterizer$3 (file:/home/vivek/.gradle/caches/modules-2/files-2.1/org.elasticsearch/securemock/1.2/98201d4ad5ac93f6b415ae9172d52b5e7cda490e/securemock-1.2.jar) to constructor java.nio.file.FileStore()

8641 tests completed, 1 failed, 15 skipped

Tests with failures:
 - org.elasticsearch.monitor.jvm.JvmInfoTests.testUseG1GC

Can anyone tell me what is the issue here and how to resolve it?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.