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

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

                Author: ASF GitHub Bot
            Created on: 12/Dec/19 08:58
            Start Date: 12/Dec/19 08:58
    Worklog Time Spent: 10m 
      Work Description: echauchot commented on pull request #9614: [BEAM-8025] 
Avoid race condition in cluster cleanup and introduce cluster creation retrial 
under load.
URL: https://github.com/apache/beam/pull/9614#discussion_r357024116
 
 

 ##########
 File path: 
sdks/java/io/cassandra/src/test/java/org/apache/beam/sdk/io/cassandra/CassandraIOTest.java
 ##########
 @@ -106,21 +110,25 @@
   private static Cluster cluster;
   private static Session session;
 
-  @ClassRule public static final TemporaryFolder TEMPORARY_FOLDER = new 
TemporaryFolder();
+  private static final String TEMPORARY_FOLDER = 
System.getProperty("java.io.tmpdir");
   @Rule public transient TestPipeline pipeline = TestPipeline.create();
   private static CassandraShutDownHook shutdownHook;
 
   @BeforeClass
   public static void beforeClass() throws Exception {
     jmxPort = NetworkTestHelper.getAvailableLocalPort();
     shutdownHook = new CassandraShutDownHook();
-    // randomized port at startup
-    String data = TEMPORARY_FOLDER.newFolder("embedded-cassandra", 
"data").getPath();
-    String commitLog = TEMPORARY_FOLDER.newFolder("embedded-cassandra", 
"commit-log").getPath();
-    String cdcRaw = TEMPORARY_FOLDER.newFolder("embedded-cassandra", 
"cdc-raw").getPath();
-    String hints = TEMPORARY_FOLDER.newFolder("embedded-cassandra", 
"hints").getPath();
-    String savedCache = TEMPORARY_FOLDER.newFolder("embedded-cassandra", 
"saved-cache").getPath();
-    cluster =
+    String data = TEMPORARY_FOLDER + "/embedded-cassandra/data";
 
 Review comment:
   done
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 358462)
    Time Spent: 3h 50m  (was: 3h 40m)

> Cassandra IO classMethod test is flaky
> --------------------------------------
>
>                 Key: BEAM-8025
>                 URL: https://issues.apache.org/jira/browse/BEAM-8025
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-cassandra, test-failures
>    Affects Versions: 2.16.0
>            Reporter: Kyle Weaver
>            Assignee: Etienne Chauchot
>            Priority: Blocker
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> The most recent runs of this test are failing:
> [https://builds.apache.org/job/beam_PreCommit_Java_Commit/7398/]
> [https://builds.apache.org/job/beam_PreCommit_Java_Commit/7399/console]



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

Reply via email to