Skip to content

GC logging location not found when CWD is on a different drive on Windows #29057

@Mpdreamz

Description

@Mpdreamz

When starting elasticsearch.bat from a different drive the gc logging location -Xloggc:logs/gc.log in jvm.options will yield the following warning on standard error:

Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory

e.g our teamcity working directory is on T: and therefore conceptually starting elasticsearch as followed:

T:\TeamCity\buildAgent\work\95d288ead8086b51> C:\Users\teamcity\AppData\Roaming\NEST\6.2.1\elasticsearch-6.2.1\bin\elasticsearch.bat

Since our (.NET team) automation bails out on standard error messages this was killing our 6.2.x NEST integration tests on CI.

This is a rather obscure bug that I am not even sure warrants fixing feel free to close @elastic/es-core-infra. Opening for future googlers (myself included) sake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scripts>bugTeam:DeliveryMeta label for Delivery team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions