Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you disconnect WSO2 DAS from the database it is currently configured with and connect it to a different database type, the index data stored in DAS may get corrupted if no data migration is carried out. In order to avoid this, reindex the data by following the steps given below.This section covers reindexing data that are already stored in databases configured for WSO2 DAS.

Data indexed and stored in databases may need to be reindexed due to the following reasons:

  • If the index data is corrupted.
  • To prevent the index data from getting corrupted during data migration when WSO2 DAS is connected to a different database.

To reindex existing data, follow the steps below:

  1. Shut down the WSO2 DAS server.
  2. Remove all the index data stored in theĀ <DAS_HOME>/repository/data directory.
  3. In theĀ <DAS_HOME>/repository/conf/analytics/local-shard-allocation-config.conf file, change the mode for all the shards from NORMAL to INIT.
  4. Restart the WSO2 DAS server.

...