Accumulo
  1. Accumulo
  2. ACCUMULO-487

Batch Scanner can get stuck when external thread closes scanner

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5, 1.4.0
    • Fix Version/s: 1.4.1, 1.5.0
    • Component/s: client
    • Labels:

      Description

      Scenario- client is using batch scanner to run queries with complex server side iterators. They run long. User has external thread which determines thread is running long, so that thread calls close on the batch scanner. Query threads exit nicely, but there is a thread which is constantly polling an internal queue. It only breaks out of that loop if there is a next key or an error thrown. If neither occur, it continues to poll. We should probably have an exit condition get set on close() which is used in that query loop.

        Activity

        Hide
        John Stoneham added a comment -

        Would it be possible to have this fix backported to 1.3.x for those of us whose systems haven't been upgraded to 1.4 yet? This leaks a lot of threads for our use case and eventually runs the process out of threads.

        Show
        John Stoneham added a comment - Would it be possible to have this fix backported to 1.3.x for those of us whose systems haven't been upgraded to 1.4 yet? This leaks a lot of threads for our use case and eventually runs the process out of threads.
        Hide
        John Stoneham added a comment -

        Nevermind. This is a different resource leak I'll file later if it hasn't been fixed on trunk.

        Show
        John Stoneham added a comment - Nevermind. This is a different resource leak I'll file later if it hasn't been fixed on trunk.

          People

          • Assignee:
            Keith Turner
            Reporter:
            John Vines
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development