Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-624

Bug at ListNodes In ChefContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.3
    • 1.8.0
    • jclouds-chef
    • None

    Description

      Hi.

      I've found a bug when using ListNodes in jclouds-chef. The problem is related to the thread pool that is used when ListNodes is called.

      When using ListNodes, for each node that exists in Chef, a new task is submitted to the pool "USER_THREADS". Each one of these submitted tasks generates another Runnable - to do the HTTP request - and submits it to the same thread pool. So, when we have a large number of nodes(an usual scenario when dealing with Chef), all threads in the pool are blocked waiting its own thread responsible to do the HTTP request and no thread is left to effectively do the HTTP request. After the configured timeout, a lot of java.util.concurrent.TimeoutException are thrown.

      I am already working to fix it and I will release a pull request soon (maybe, in a few days).

      Thanks

      Attachments

        Activity

          People

            nacx Ignasi Barrera
            luciano.sabenca Luciano Sabença
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: