Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1203

Minimize the use of Thread.Sleep in REEF tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • REEF.NET
    • None

    Description

      Thread.Sleep is not a good pattern in tests and unit tests.

      • Tests are slower than required.
      • Tests behaves differently in different environments.
      • Benign changes can lead to test failure as the expected timeout is now longer.

      Following are possible locations where Thread.Sleep usage needs to be inspected.

      lang\cs\Org.Apache.REEF.Tang.Examples\Timer.cs(44):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(43):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(67):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(71):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(75):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(80):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(99):
      lang\cs\Org.Apache.REEF.Wake.Tests\ClockTest.cs(120):
      lang\cs\Org.Apache.REEF.Common\Runtime\Evaluator\HeartBeatManager.cs(361):
      lang\cs\Org.Apache.REEF.Network\Group\Task\Impl\OperatorTopology.cs(520):
      lang\cs\Org.Apache.REEF.Client\Common\JobSubmissionResult.cs(231):
      lang\cs\Org.Apache.REEF.Client\Common\JobSubmissionResult.cs(266):
      lang\cs\Org.Apache.REEF.Client\Local\LocalJobSubmissionResult.cs(58):
      lang\cs\Org.Apache.REEF.Tests\Functional\Messaging\MessageTask.cs(62):
      lang\cs\Org.Apache.REEF.Tests\Functional\ReefFunctionalTest.cs(120):
      lang\cs\Org.Apache.REEF.Tests\Functional\ReefFunctionalTest.cs(156):
      lang\cs\Org.Apache.REEF.Tests\Functional\ReefFunctionalTest.cs(189):
      lang\cs\Org.Apache.REEF.Tests\Functional\RuntimeName\RuntimeNameTask.cs(40):
      lang\cs\Org.Apache.REEF.Examples\Tasks\StreamingTasks\StreamTask1.cs(43):
      lang\cs\Org.Apache.REEF.Network.Tests\NamingService\NameServerTests.cs(128):
      lang\cs\Org.Apache.REEF.Network.Tests\NamingService\NameServerTests.cs(252):

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anupam128 Anupam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: