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

Fix insert failure with customFileProvider

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.1
    • Component/s: None
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                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