Details

      Description

      Step to reproduce:

      • Deploy Minium DEMO pack and create a site
      • Get the site groupId by going to CP -> (Site) Configuration -> Site Settings
        • Note the Site ID
      • Go to a GOGO Shell and type:
        • generateOrders <site-id> 100

      Expected result:

      100 Orders gets generated for the <site-id> 

      Actual result:

      The process ends randomly throwing exceptions in the logs.

      Typical exceptions refers to:

      com.liferay.portal.kernel.search.SearchException: [size] parameter cannot be negative, found [-1]
       	at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:159) 
      ...
       Caused by: java.lang.IllegalArgumentException: [size] parameter cannot be negative, found [-1]
       	at org.elasticsearch.search.builder.SearchSourceBuilder.size(SearchSourceBuilder.java:382)

      OR:

       2020-02-06 23:38:08.008 WARN  [pipe-generateOrders 35604 100][ProxyMessageListener:88] com.liferay.portal.kernel.search.SearchException: Invalid start -25 2020-02-06 23:38:08.008 WARN  [pipe-generateOrders 35604 100][ProxyMessageListener:88] com.liferay.portal.kernel.search.SearchException: Invalid start -25 com.liferay.portal.kernel.search.SearchException: Invalid start -25  at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:159)... Caused by: java.lang.IllegalArgumentException: Invalid start -25  at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:95) 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              riccardo.ferrari Riccardo Ferrari
              Reporter:
              riccardo.ferrari Riccardo Ferrari
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.0