You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Bryn Cooke (JIRA)" <ji...@apache.org> on 2017/03/06 13:04:32 UTC

[jira] [Created] (TINKERPOP-1644) Improve script compilation syncronisation

Bryn Cooke created TINKERPOP-1644:
-------------------------------------

             Summary: Improve script compilation syncronisation
                 Key: TINKERPOP-1644
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1644
             Project: TinkerPop
          Issue Type: Improvement
    Affects Versions: 3.2.4
            Reporter: Bryn Cooke


Currently there is no synchronisation around script compilation. This means that if a particularly heavy script is in use, many threads may end up compiling the same script.

It would seem like a good idea to have some some sort of synchronisation to prevent ever getting to this stage.

In addition, there will be cases where users will repeatedly submit broken scripts to the server. In this case it is useful to log the error the first time the script compilation is attempted and then cache the error for subsequent runs.

Finally I have found some scripts take in excess of 30 seconds to compile. To aid performance debugging the script compilation times should be included in the logs.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)