Martijn Visser created FLINK-41631:
--------------------------------------
Summary: GCS ITCases fail without a bucket when
GOOGLE_APPLICATION_CREDENTIALS points to a missing file
Key: FLINK-41631
URL: https://issues.apache.org/jira/browse/FLINK-41631
Project: Flink
Issue Type: Bug
Components: Connectors / FileSystem
Reporter: Martijn Visser
The GCS ITCases in {{flink-gs-fs-hadoop}} skip themselves with an assumption in
{{@BeforeAll}} when {{IT_CASE_GCS_BUCKET}} is not set. JUnit still runs
{{@AfterAll}} after that, and those call {{FileSystem.initialize()}}, which
configures the GCS factory and reads {{GOOGLE_APPLICATION_CREDENTIALS}}. If
that points to a missing file, every class reports an error although no test
ran. This affects {{GSFileSystemBehaviorITCase}} and
{{GSRecoverableWriterITCase}} on master and the three classes added in
FLINK-37247.
Disabling the classes with a class-level {{@EnabledIf}} keeps their lifecycle
methods from running. {{GSFileSystemFactoryTest}} reads the variable too and is
not covered by this. Raised by Savonitar in the review of
https://github.com/apache/flink/pull/29819.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)