Running elasticsearch source code in eclipse luna

OS: Windows 7 Professional
Eclipse Luna, JDK 1.8, apache-maven-3.3

Hi,
Imported elasticsearch 2.1 branch from github in eclipse luna. Then converted it into a maven project.
Configured eclipse to use external apache-maven-3.3.1
Java Compiler compliance 1.8

During maven install I am getting below errors:

Suite: org.elasticsearch.index.translog.BufferedTranslogTests
2> REPRODUCE WITH: mvn test -Pdev -pl org.elasticsearch:elasticsearch -Dtests.seed=FAE4FFC1B47C6D9B -Dtests.class=org.elasticsearch.index.translog.BufferedTranslogTests -Dtests.method="testWithRandomException" -Des.logger.level=ERROR -Dtests.assertion.disabled=false -Dtests.security.manager=true -Dtests.heap.size=512m -Dtests.locale=en -Dtests.timezone=Europe/Kiev
ERROR 0.40s J1 | BufferedTranslogTests.testWithRandomException <<<

Throwable #1: java.io.IOException: Could not remove the following files (in the order of attempts):
C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests_FAE4FFC1B47C6D9B-001\tempDir-005: java.nio.file.DirectoryNotEmptyException: C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests_FAE4FFC1B47C6D9B-001\tempDir-005
at __randomizedtesting.SeedInfo.seed([FAE4FFC1B47C6D9B:9C3C94DECF98E38A]:0)
at org.apache.lucene.util.IOUtils.rm(IOUtils.java:295)
at org.elasticsearch.index.translog.Translog.(Translog.java:198)
at org.elasticsearch.index.translog.TranslogTests.testWithRandomException(TranslogTests.java:2035)
at java.lang.Thread.run(Thread.java:748)
2> NOTE: leaving temporary files on disk at: C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests_FAE4FFC1B47C6D9B-001
2> NOTE: test params are: codec=Asserting(Lucene53): {}, docValues:{}, sim=DefaultSimilarity, locale=en, timezone=Europe/Kiev
2> NOTE: Windows 7 6.1 amd64/Oracle Corporation 1.8.0_144 (64-bit)/cpus=4,threads=1,free=296094160,total=521142272
2> NOTE: All tests run in this JVM: [LimitTokenCountFilterFactoryTests, RoutingIteratorTests, TimeValueTests, CustomBoostMappingTests, DateMathExpressionResolverTests, PathMatchDynamicTemplateTests, NodeJoinControllerTests, MetaDataTests, ScriptParameterParserTests, YamlSettingsLoaderTests, TransportInstanceSingleOperationActionTests, ShortFieldTypeTests, CompressSourceMappingTests, BlendedTermQueryTests, ScriptScoreFunctionTests, IndexFieldDataServiceTests, CorruptedCompressorTests, SearchSourceCompressTests, IndexingMemoryControllerTests, ShardVersioningTests, GeohashMappingGeoPointTests, CompletionFieldTypeTests, BytesRefHashTests, PathMapperTests, VersionLookupTests, InputStreamIndexInputTests, SnapshotRequestsTests, TransportClientHeadersTests, RestTestParserTests, AllocationIdTests, ReplicaShardAllocatorTests, GatewayModuleTests, TypeFieldTypeTests, GeoPointFieldTypeTests, LoggingConfigurationTests, IndexShardTests, NestedChildrenFilterTests, RegexTests, ByteArrayIndexInputTests, SyncedFlushSingleNodeTests, CopyOnWriteHashSetTests, LZFXContentTests, IntegerFieldTypeTests, MetaDataIndexUpgradeServiceTests, RatioValueTests, BooleanFieldTypeTests, IndexingSlowLogTests, PidFileTests, DiskThresholdDeciderTests, FloatFieldTypeTests, RoutingFieldTypeTests, PluginManagerPermissionTests, DoubleFieldDataTests, SmileFilteringGeneratorTests, QueueRecyclerTests, TribeUnitTests, IndexStoreBWCTests, ListenableActionFutureTests, XContentHelperTests, CompoundTypesTests, InternalEngineSettingsTests, StringFieldTypeTests, SimpleNumericTests, SearchSourceBuilderTests, IndexBalanceTests, ZenDiscoveryUnitTests, IndexSearcherWrapperTests, ParentFieldTypeTests, SetupSectionParserTests, PreferLocalPrimariesToRelocatingPrimariesTests, SingleShardOneReplicaRoutingTests, AwarenessAllocationTests, ScriptValuesTests, ShardsLimitAllocationTests, KeepTypesFilterFactoryTests, VersionFieldUpgraderTests, FieldDataCacheTests, TenShardsOneReplicaRoutingTests, ParseFieldTests, SettingsFilterTests, GatewayMetaStateTests, RestApiParserTests, SimpleAllTests, PrimaryNotRelocatedWhileBeingRecoveredTests, DiskUsageTests, ElectReplicaAsPrimaryDuringRelocationTests, DateBackwardsCompatibilityTests, ReplicaAllocatedAfterPrimaryTests, DeflateCompressedStreamTests, RoutingTableTests, BooleanFieldMapperTests, FloatFieldDataTests, NetworkServiceTests, DeadNodesAllocationTests, MultiValueModeTests, BufferedTranslogTests]
Completed [215/524] on J1 in 187.67s, 37 tests, 1 error <<< FAILURES!

Suite: org.elasticsearch.bootstrap.SecurityTests
IGNOR/A 0.01s J2 | SecurityTests.testEnsureSymlink

Assumption #1: test cannot create symbolic links with security manager enabled(throwable: java.security.AccessControlException: access denied ("java.nio.file.LinkPermission" "symbolic"))
IGNOR/A 0.00s J2 | SecurityTests.testSymlinkPermissions
Assumption #1: windows does not automatically grant permission to the target of symlinks
IGNOR/A 0.00s J2 | SecurityTests.testEnsureBrokenSymlink
Assumption #1: test cannot create symbolic links with security manager enabled(throwable: java.security.AccessControlException: access denied ("java.nio.file.LinkPermission" "symbolic"))
Completed [431/524] on J2 in 0.25s, 10 tests, 3 skipped

Tests with failures:

  • org.elasticsearch.index.translog.BufferedTranslogTests.testWithRandomException
  • org.elasticsearch.index.translog.TranslogTests.testWithRandomException

[ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.1.16:junit4 (tests) on project elasticsearch: There were test failures: 524 suites, 3007 tests, 2 errors, 22 ignored (22 assumptions) -> [Help 1]

Can anybody help please.. I am not able to understand why am I getting java.nio.file.DirectoryNotEmptyException.

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