Details

      Description

      I did a little investigation and I think I found out why:
      The problem seems to be in the private method
      DefaultOsgiUtilsService.waitForServiceFromTracker(ServiceTracker, long)

      It does the following to the tracker:
      tracker.open()
      tracker.waitforService()
      tracker.close()

      Now two threads do this concurrently this might fail:
      T1: tracker.open()
      T2: tracker.open()
      T1: tracker.waitforService()
      T1: tracker.cose()
      T2: tracker.waitforService() -> returns null

      The question is, what do we do about it.
      I think this is an actual problem (not just in this test).

      I think making the function synchronized is a bad solution.
      I thought we could just skip closing the tracker (tried it, and did not encounter the bug since).

        Gliffy Diagrams

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Status Time from assignees
          The issue is open and ready for the assignee to start work on it.Open
          Christoph Gritschenberger
          21/Mar/12 10:33 - 24/Apr/12 17:13 : 821 h, 39 m
          Total: 821 h, 39 m
          unknown
          18/Jun/11 19:53 - 21/Mar/12 10:33 : 6639 h, 39 m
          Total: 6639 h, 39 m
          A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.Resolved
          Christoph Gritschenberger
          24/Apr/12 17:13 - 25/Apr/12 15:37 : 22 h, 24 m
          Total: 22 h, 24 m
          The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.Closed
          Christoph Gritschenberger
          25/Apr/12 15:37 - Today 7:56 : 47488 h, 18 m
          Total: 47488 h, 18 m

            People

            • Assignee:
              Christoph Gritschenberger
              Reporter:
              Christoph Gritschenberger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: