killOp cannot interrupt v8 javascript loop

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • Environment:
      Ubuntu 10.10 x86_64, libv8-2.2.18
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      On my machine, killop.js does not end queries with a "while( 1 )

      { ; }

      " where clause - the shell hangs for a long period of time. Seems like the root of the problem is the v8::Locker l; mutex in V8ScriptEngine::interrupt(). As far as I can tell, this never yields when there's other javascript executing.

      If this is expected behavior (or difficult to fix), the test case should probably be modified - adding a sleep( 1 ) to the loop allows the operation to be killed.

      Observed this generally through many versions of mongodb.

            Assignee:
            Antoine Girbal (Inactive)
            Reporter:
            Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: