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

SPARQLQueryProcessor: Need volatile to make method thread-safe

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 3.14.0
    • Fix Version/s: Jena 3.15.0
    • Component/s: Fuseki
    • Labels:
      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

              • Assignee:
                andy Andy Seaborne
                Reporter:
                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