PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-31848

Empty folders in /document_library created for every user when reindexing

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      Steps to Reproduce
      1. Upload a document
      2. Check out your /document_library/10132 directory, you'll see it created a folder with the document reference - this is normal.
      3. Create 3 Users
      4. Go to Control Panel -> Server Administration - Click on Reindex
      5. Go back to the /document_library/10132 directory, you'll see now that there are several empty folders that have been created.
      These folders correspond to the GroupID in the Group_ table - basically, Liferay will create a folder for every entry in the Group_ table.
      (see 3 attached screenshots)

      While this may not seem so malicious, for Liferay implentations with 32,000+ users on a Linux EXT3 environment, this is a big problem.
      The Linux EXT3 system has a hard limit of 32,000 subfolders (http://serverfault.com/questions/87054/mkdir-cannot-create-directory-foldername-too-many-links), and if Liferay creates an empty folder for every user, then it will reach the EXT3 cap and you will be unable to upload documents in Liferay, even if in reality, you have only a few documents in Liferay.

        Issue Links

          Activity

          Hide
          Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 6.0 + MySQL 5. Portal 6.0.12 EE.

          There are empty folders in document_library created for users when reindexing.

          Fixed on:
          Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: b4d3d5e4c33f1084e56ff390d2e6927f784887a6.

          There will not be empty folders in document_library.

          Show
          Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 6.0 + MySQL 5. Portal 6.0.12 EE. There are empty folders in document_library created for users when reindexing. Fixed on: Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: b4d3d5e4c33f1084e56ff390d2e6927f784887a6. There will not be empty folders in document_library.
          Hide
          Sophia Zhang added a comment -

          Thank you Pani for testing. Closing as "Fixed".

          Show
          Sophia Zhang added a comment - Thank you Pani for testing. Closing as "Fixed".

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 21 weeks, 3 days ago

                Development

                  Structure Helper Panel