[ 
https://issues.apache.org/jira/browse/BEAM-12164?focusedWorklogId=744992&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-744992
 ]

ASF GitHub Bot logged work on BEAM-12164:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Mar/22 11:52
            Start Date: 21/Mar/22 11:52
    Worklog Time Spent: 10m 
      Work Description: zoercai commented on pull request #17063:
URL: https://github.com/apache/beam/pull/17063#issuecomment-1073802373


   > I was able, unfortunately, to make these tests flake after 5 tries, and 
then again after 19 tries.
   > 
   > I added these three lines to 
`sdks/java/io/google-cloud-platform/build.gradle`:
   > 
   > ```
   > test {
   >   outputs.upToDateWhen { false }
   > }
   > ```
   > 
   > The purpose of these three lines is to avoid 'caching' test results, and 
making sure that the tests will run every time even if the code did not change 
(but artifacts won't be rebuilt).
   > 
   > Then I used these commands:
   > 
   > ```
   > declare -i ITERATIONS=0
   > 
   > while ./gradlew :sdks:java:io:google-cloud-platform:test 
--tests=*SpannerChangeStreamErrorTest*; 
   > do   
   > ITERATIONS=$ITERATIONS+1;   
   > if [[ "$ITERATIONS" -eq 100 ]]; then     break;   fi; 
   > done
   > ```
   > 
   > The iterations stopped after `5` and `19` runs. So I think flakiness in 
the tests is still high, unfortunately : /
   
   Thanks @pabloem! I used this to run the tests locally and fix the test that 
was failing. I ran this a few hundred times locally. Hopefully it's finally 
stable!


-- 
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: 744992)
    Time Spent: 61h  (was: 60h 50m)

> SpannerIO Change Stream Connector
> ---------------------------------
>
>                 Key: BEAM-12164
>                 URL: https://issues.apache.org/jira/browse/BEAM-12164
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core
>            Reporter: Thiago Nunes
>            Assignee: Thiago Nunes
>            Priority: P2
>             Fix For: 2.37.0
>
>          Time Spent: 61h
>  Remaining Estimate: 0h
>
> We would like to augment the existing Google Cloud SpannerIO connector 
> ([https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java)]
>  with the support for Spanner Change Streams (CDC). CDC support is just being 
> implemented in Spanner and it will be exposed through a gRPC API. We will use 
> such API to create a new SpannerIO.readChangeStream(...) implementation.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to