Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-3499

Fix insert failure with customFileProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.1
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Ajantha_Bhat Ajantha Bhat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h