HCL Commerce Version 9.1.6.0

Troubleshooting: Live storefront displays corrupt data or no data after performing Elasticsearch push-to-live operation

Push-to-live operation does not update the live store appropriately. On performing the push-to-live operation, the live storefront displays corrupt data or no data.

Problem

An auth index is built successfully. All products and categories are getting displayed in the auth store. But on performing the push-to-live operation, the live storefront displays corrupt data or no data.

Solution

  1. By using any one of the following two ways, ensure that the queued data in NiFi is 0 / 0 bytes.
    1. Use the following URL to navigate to the NiFi UI:

      http://{NIFIHOST}:{NIFIPORT}/nifi/

    2. On the Nifi UI, check the second row of numbers at the top grey bar. It indicates queued data number.

    OR

    1. Use the following URL to access NiFi API:

      http://{NIFIHOST}:{NIFIPORT}/nifi-api/flow/status

    2. Under controllerStatus, check the value of the key, queued.
  2. If the queued data in NiFi is not 0 / 0 bytes, then either cancel API from Ingest (http://{INGESTHOST}:{INGESTPORT}/connectors/{connectorId}/cancel ) to clear the queued data or restart Nifi to get rid of the queue.
  3. Build a new live index for the store by using any one of the following two ways:
    1. Send DELETE request to http://{ESHOST}:{ESPORT}/*live.{StoreId}.* to delete live Elasticsearch index of the store. This deletes the live index of that particular store so that when the push-to-live operation is performed again a new live index gets created for the store.
    2. Build a new live index for the store by using the build index API: https://AuthCommerceServerName:{TSPORT}/wcs/resources/admin/index/dataImport/build?connectorId=push-to-live&storeId={StoreId}

    OR

    1. Build a new live index for the store by using the build index API: https://LiveCommerceServerName:ts-app-port/wcs/resources/admin/index/dataImport/build?connectorId=live.reindex&storeId={StoreId}