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:
- Shut down the WSO2 DAS server.
- Remove all the index data stored in theĀ
<DAS_HOME>/repository/data
directory. - In theĀ
<DAS_HOME>/repository/conf/analytics/local-shard-allocation-config.conf
file, change the mode for all the shards fromNORMAL
toINIT
. - Restart the WSO2 DAS server.
...