[ 
https://issues.apache.org/jira/browse/BEAM-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570541#comment-16570541
 ] 

Igor Dvorzhak commented on BEAM-5034:
-------------------------------------

This is happening because GoogleCloudStorageReadChannel fetches metadata in 
constructor and failing test does not mock GoogleCloudStorage object which 
leads to NPE.

This change was introduced in GCS connector 1.9.1 and will be reverted in 1.9.4 
release.

> Bumping com.google.cloud.bigdataoss:gcsio and :util to 1.9.2 causes tests to 
> fail
> ---------------------------------------------------------------------------------
>
>                 Key: BEAM-5034
>                 URL: https://issues.apache.org/jira/browse/BEAM-5034
>             Project: Beam
>          Issue Type: Bug
>          Components: dependencies
>            Reporter: Garrett Jones
>            Priority: Major
>
> Current version in Beam: 1.4.5
> Latest released version: 1.9.2
> Test failure:
> ```
> java.lang.NullPointerException at 
> com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel.createRequest(GoogleCloudStorageReadChannel.java:966)
>  at 
> com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel.getMetadata(GoogleCloudStorageReadChannel.java:765)
>  at 
> com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel.initEncodingAndSize(GoogleCloudStorageReadChannel.java:754)
>  at 
> com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel.<init>(GoogleCloudStorageReadChannel.java:210)
>  at 
> com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel.<init>(GoogleCloudStorageReadChannel.java:172)
>  at 
> org.apache.beam.sdk.util.GcsUtilTest.testGCSChannelCloseIdempotent(GcsUtilTest.java:774)
> ```
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to