Martijn Visser created FLINK-41630:
--------------------------------------

             Summary: GSRecoverableWriterCommitter throws StorageException 
instead of IOException for a missing component
                 Key: FLINK-41630
                 URL: https://issues.apache.org/jira/browse/FLINK-41630
             Project: Flink
          Issue Type: Bug
          Components: Connectors / FileSystem
            Reporter: Martijn Visser


When a component blob of a GCS recoverable is missing, {{commit()}} and 
{{commitAfterRecovery()}} of {{GSRecoverableWriterCommitter}} fail with an 
unchecked {{com.google.cloud.storage.StorageException}} (404 from compose) 
instead of the {{IOException}} that {{RecoverableFsDataOutputStream.Committer}} 
declares. Reproduced against a real bucket: persist twice, delete the component 
only the second recoverable references, then commit it. The target object is 
not created and the first recoverable still commits, so only the exception type 
is wrong. {{FileCommitter}} passes both on, so the job fails either way.

The inherited {{testResumeWithWrongOffset}} in 
{{HadoopGSRecoverableWriterExceptionITCase}} never gets here, because the 
earlier commit already created the target object. The fix should come with a 
GCS-only test for this case. Found in the review of 
https://github.com/apache/flink/pull/29819.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to