Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4729

Crash: ForceClose expired task with Exception uncaught

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Library
    • Labels:
      None

      Description

      Context is: I've employed NonblockingServer & ThreadManager, with setTaskExpireTime() used in my app. Under heavy load, it crashed. Crash point is forceClose()::throw TException (to be specific, send(NotificationSocketFD) failed).
      I went through the code, noted that during removeExpiredTasks() there is no try-catch involved. On the contrary, Task::run() is enclosed by try-catch.

      Is it by design, or just a bug ? Thanks.

        Attachments

          Activity

            People

            • Assignee:
              jking3 James E. King III
              Reporter:
              keguang KG.Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: