PrintServiceLookup can hang

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 8, 17, 22
    • Component/s: client-libs
    • None
    • 2d

      The PrintServiceLookup class allows adding to a global list, that is iterated over concurrently. The iteration will cause a concurrent modification exception. But the iteration loop silences any exceptions, and the next time next is called on the iterator, the same thing will happen again, and we get stuck in an infinite loop.
      We should make sure that the iteration code takes the same lock as the code protecting inserts into the list.

            Assignee:
            Prasanta Sadhukhan
            Reporter:
            Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: