Help Center> Data Replication Service> User Guide> Check Items> Database Parameters> Checking Whether the Source Database Collections Contain TTL Indexes

Checking Whether the Source Database Collections Contain TTL Indexes

MongoDB Database

Table 1 Checking whether the source database collections contain TTL indexes

Check Item

Whether the source database collections contain TTL indexes

Description

Due to inconsistency of time zones and clocks between source and destination databases, migrating TTL indexes will cause data inconsistency.

Failure Cause and Handling Suggestion

Alarm cause: Due to inconsistency of time zones and clocks between source and destination databases, migrating TTL indexes will cause data inconsistency.

Handling suggestions: If data consistency is required, delete TTL indexes. Alternatively, do not migrate the collections containing TTL indexes.

Run the following command to delete the index:

run the db.Collection name.dropIndex(Index name)