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.
- 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.