[jira] [Created] (CARBONDATA-3499) Fix insert failure with customFileProvider

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-3499) Fix insert failure with customFileProvider

Akash R Nilugal (Jira)
Ajantha Bhat created CARBONDATA-3499:
----------------------------------------

             Summary: Fix insert failure with customFileProvider
                 Key: CARBONDATA-3499
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3499
             Project: CarbonData
          Issue Type: Bug
            Reporter: Ajantha Bhat


problem: 

Below exception is thrown when the custom file system is used with first time insert randomly.

IllegalArgumentException("Path belongs to unsupported file system") from FileFactory.getFileType()

 

cause:

DefaultFileTypeProvider.initializeCustomFileProvider is called concurrently insert. Hence one thread got the provider and other thread didn't get as flag is set to true.

so other thread failed as it tried with default provider.

 

solution:

synchronize the initialization of custom file provider



--
This message was sent by Atlassian Jira
(v8.3.2#803003)