Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4658

Potential race if compiler reorders ReachedLimit() usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.8.0
    • Impala 3.3.0
    • Backend
    • None

    Description

      There is a potential race in our many usages of ExecNode::ReachedLimit() during execution from a different thread than the one updating rows_returned, e.g. scanner threads. The compiler in theory is free to notice that they're not updating rows_returned_ and hoist the load up out of loops, etc.

      We should consider AtomicInt64 or NoBarrier_Load(...).

      Attachments

        Issue Links

          Activity

            People

              arawat Abhishek Rawat
              mjacobs Matthew Jacobs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: