Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1866

SPARQLQueryProcessor: Need volatile to make method thread-safe

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.14.0
    • Jena 3.15.0
    • Fuseki
    • None

    Description

      This ticket tracks https://github.com/apache/jena/pull/709 ("intrigus-lgtm" on GitHub).

      There needs to be a "happens before" barrier so that any Set and the objects it contains created by generateAcceptedParams() is completed and available to other threads.

      Making acceptedParams_ volatile achieves this.

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h