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

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

                Author: ASF GitHub Bot
            Created on: 24/Aug/21 17:21
            Start Date: 24/Aug/21 17:21
    Worklog Time Spent: 10m 
      Work Description: ibzib commented on a change in pull request #15375:
URL: https://github.com/apache/beam/pull/15375#discussion_r695048427



##########
File path: 
sdks/java/extensions/ml/src/test/java/org/apache/beam/sdk/extensions/ml/RecommendationAICatalogItemIT.java
##########
@@ -42,13 +44,14 @@
 @RunWith(JUnit4.class)
 public class RecommendationAICatalogItemIT {
   @Rule public TestPipeline testPipeline = TestPipeline.create();
+  static String randomId = Integer.toString(new Random().nextInt());

Review comment:
       Nit: this doesn't need to be static, but should be private/final. (You 
should make catalogItem into a private final variable as well.)
   
   ```suggestion
     private final String randomId = Integer.toString(new Random().nextInt());
   ```

##########
File path: 
sdks/java/extensions/ml/src/test/java/org/apache/beam/sdk/extensions/ml/RecommendationAICatalogItemIT.java
##########
@@ -42,13 +44,14 @@
 @RunWith(JUnit4.class)
 public class RecommendationAICatalogItemIT {
   @Rule public TestPipeline testPipeline = TestPipeline.create();
+  static String randomId = Integer.toString(new Random().nextInt());

Review comment:
       Consider using java.util.UUID instead for an even lower chance of 
collisions.




-- 
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: 641214)
    Time Spent: 0.5h  (was: 20m)

> [beam_PostCommit_Java] 
> org.apache.beam.sdk.extensions.ml.RecommendationAIPredictIT.predict failing 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-12733
>                 URL: https://issues.apache.org/jira/browse/BEAM-12733
>             Project: Beam
>          Issue Type: Task
>          Components: test-failures
>    Affects Versions: 2.33.0
>            Reporter: Kiley Sok
>            Assignee: Matthias Baetens
>            Priority: P0
>              Labels: currently-failing
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Been failing since Aug 4th. 
> https://ci-beam.apache.org/job/beam_PostCommit_Java/7880/
> {code:java}
> java.lang.AssertionError: RecommendationAIPredict/ParMultiDo(Predict).out0: 
> null
>       at 
> org.apache.beam.sdk.testing.PAssert$PAssertionSite.capture(PAssert.java:175)
>       at org.apache.beam.sdk.testing.PAssert.that(PAssert.java:417)
>       at org.apache.beam.sdk.testing.PAssert.that(PAssert.java:409)
>       at 
> org.apache.beam.sdk.extensions.ml.RecommendationAIPredictIT.predict(RecommendationAIPredictIT.java:60)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to