Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-96774

InvalidSnapshotNameException appeared when run groovy script in Server Administration to backup index of Elastic Search

    Details

    • Story Points:
      0.25
    • Fix Priority:
      3

      Description

      Reproduce steps:

      1>Startup portal

      2>Go to script tab under Control Panel ->Configuration ->Server Administration

      3> Choose Groovy as script language, execute these statements as below:

      import com.liferay.portal.kernel.search.IndexAdminHelperUtil;
      IndexAdminHelperUtil.backup("benchmark_backup");
      

      Expect results: Successful and no errors appeared in console

      Actual results: Error information "Error: Your request failed to compete" be shown in the page and InvalidSnapshotNameException appeared in console.

      2019-06-12 09:06:40.109 ERROR [http-nio-8080-exec-4][EditServerMVCActionCommand:471] SanitizerLogWrapper warning: Following message contains CRLF characters
      org.elasticsearch.snapshots.InvalidSnapshotNameException: InvalidSnapshotNameException[[liferay_backup:benchmark_backup] Invalid snapshot name [benchmark_backup], snapshot with the same name already exists]
      Line 1: import com.liferay.portal.kernel.search.IndexAdminHelperUtil;
      Line 2: IndexAdminHelperUtil.backup("benchmark_backup");
      
      
      

      It reproduced on master, git id:94d20e9e8bce4d214f7e9602bca31e66539b6028

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Days since last comment:
                20 weeks, 5 days ago

                Packages

                Version Package