Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15838

Dangling CountDownLatch.await(timeout)

    XMLWordPrintableJSON

    Details

      Description

      There are 16 occurrences in the codebase (all in test code) when the result of CountDownLatch.await(timeout, TimeUnit) is not checked. It's like not checking the result of File.delete(). The common fix is to wrap CDL.await() call into assertTrue().

      All 16 places could be found using the following structural search in IntelliJ:

      $x$.await($y$, $z$);

      With "CountDownLatch" type constraint on the $x$ variable.

        Attachments

        1. image-2020-02-06-22-42-51-866.png
          129 kB
          Ayush Saxena

          Issue Links

            Activity

              People

              • Assignee:
                ayushtkn Ayush Saxena
                Reporter:
                leventov Roman Leventov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m