geosmart commented on pull request #5530:
URL: https://github.com/apache/dolphinscheduler/pull/5530#issuecomment-898829809


   with the old code
   ```
   logger.info(" -> {}", String.join("\n\t", logs));
   ```
   
   the test case is still pass 
   ```
       @Test
       public void testLogHandler() throws InterruptedException {
           List<String> list = Collections.synchronizedList(new ArrayList<>());
           Thread thread1 = new Thread(() -> {
               for (int i = 0; i < 10; i++) {
                   list.add("test add log");
               }
           });
           Thread thread2 = new Thread(() -> {
               for (int i = 0; i < 10; i++) {
                   sqoopTask.logHandle(list);
               }
           });
           thread1.start();
           thread2.start();
           thread1.join();
           thread2.join();
           // if no exception throw, assert true
           Assert.assertTrue(true);
       }
   ```
   


-- 
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]


Reply via email to