https://issues.apache.org/bugzilla/show_bug.cgi?id=51957

             Bug #: 51957
           Summary: Concurrent get can hang if a task does not complete
           Product: JMeter
           Version: 2.5.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


The concurrent get code uses a timed wait for task completion:

  exec.awaitTermination(AWAIT_TERMINATION_TIMEOUT, TimeUnit.SECONDS);

However, it then uses an unconditional get():

  for (Future<HTTPSampleResult> future : retExec) {
      final HTTPSampleResult binRes = future.get();

This will wait until task completion, which may be forever.

The solution is to use a very short timeout (the code has already waited for
the required time) and catch the TimeoutException.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to