drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arina Ielchiieva (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-5533) Fix flag assignment in FunctionInitializer.checkInit() method
Date Tue, 23 May 2017 13:31:04 GMT
Arina Ielchiieva created DRILL-5533:

             Summary: Fix flag assignment in FunctionInitializer.checkInit() method
                 Key: DRILL-5533
                 URL: https://issues.apache.org/jira/browse/DRILL-5533
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.10.0
            Reporter: Arina Ielchiieva
            Assignee: Arina Ielchiieva
            Priority: Minor

FunctionInitializer.checkInit() method uses DCL to ensure that function body is loaded only
once. But flag parameter is never updated and all threads are entering synchronized block.

Also FunctionInitializer.getImports() always returns empty list.


1. Fix DCL in FunctionInitializer.checkInit() method (update flag parameter  when function
body is loaded).
2. Fix ImportGrabber.getImports() method to return list with imports.
3. Add unit tests for FunctionInitializer.
4, Minor refactoring (rename methods, add javadoc).

This message was sent by Atlassian JIRA

View raw message