[
https://issues.apache.org/jira/browse/BEAM-14005?focusedWorklogId=733534&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-733534
]
ASF GitHub Bot logged work on BEAM-14005:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Feb/22 20:35
Start Date: 26/Feb/22 20:35
Worklog Time Spent: 10m
Work Description: nielm commented on a change in pull request #16960:
URL: https://github.com/apache/beam/pull/16960#discussion_r815351525
##########
File path:
sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIOReadTest.java
##########
@@ -373,19 +379,12 @@ public void testReadMetrics() throws Exception {
any(ReadQueryUpdateTransactionOption.class)))
.thenReturn(Arrays.asList(fakePartition, fakePartition,
fakePartition));
when(mockBatchTx.execute(any(Partition.class)))
- .thenThrow(
Review comment:
It gets caught below - the try/catch block around pipeline.run().
The previous behaviour of SpannerIO.Read was to fail the pipeline completely
when Read threw an exception (in fact runners like Dataflow would retry the
bundle a few times first). This PR restores that original behaviour (whether or
not it is the ideal behaviour is another question!)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 733534)
Time Spent: 1h (was: 50m)
> Exceptions when reading from Spanner ignored
> --------------------------------------------
>
> Key: BEAM-14005
> URL: https://issues.apache.org/jira/browse/BEAM-14005
> Project: Beam
> Issue Type: Bug
> Components: io-java-gcp
> Affects Versions: 2.34.0, 2.35.0, 2.36.0, 2.37.0
> Reporter: Niel Markwick
> Assignee: Niel Markwick
> Priority: P1
> Labels: cloud-spanner, regression
> Fix For: 2.37.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Regression from BEAM-11982:
> [BatchSpannerRead.java#L223|https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/BatchSpannerRead.java#L223]
> will ignore exceptions raised when reading from spanner. It will log an
> metric and continue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)