Distributed Key-Value Database Error Codes
Note:
Currently in the beta phase.
Note:
The following describes only the error codes specific to this module. For general error codes, please refer to the Universal Error Code Documentation.
15100001 Exceeded Maximum Subscription Limit
Error Message
Over max limits.
Error Description
The number of database subscriptions or open result sets has exceeded the maximum supported limit.
Possible Causes
- When calling the database change subscription interface
on, the number of database subscriptions has exceeded the maximum limit of 8. - When calling the result set acquisition interface
getResultSet, the number of currently open result sets in the database has exceeded the maximum limit of 8.
Resolution Steps
- If the number of database subscriptions has exceeded the limit when calling the
oninterface, cancel some subscriptions and try again. - If the number of open result sets has exceeded the limit when calling
getResultSet, retry after close the database.
15100002 Changed Configuration When Opening Existing Database
Error Message
Open existed database with changed options.
Error Description
This error code indicates that the options configuration parameters have changed when calling the getKVStore interface to open an already created database.
Possible Causes
- Attempting to create a new database using a
storeIdthat already exists. - Attempting to modify the
optionsparameter configuration of an already created database.
Resolution Steps
- Before creating a new database, ensure the
storeIddoes not duplicate an existing database name. - Currently, modifying the
optionsparameters of an existing database is not supported. Delete the database and recreate it with newoptionsparameters.
15100003 Database Corruption
Error Message
Database corrupted.
Error Description
This error code indicates that the database is corrupted when calling interfaces for operations such as adding, deleting, querying, or data synchronization.
Possible Causes
The database file is corrupted during operations such as adding, deleting, querying, or data synchronization.
Resolution Steps
- If a backup exists, attempt to restore the database using the backup file.
- If no backup is available, delete the database and recreate it.
15100004 Data Not Found
Error Message
Not found.
Error Description
This error code indicates that no relevant data was found when calling interfaces such as deleteKVStore, sync, or get.
Possible Causes
Relevant data was not found during database deletion, query, or synchronization operations. Possible reasons include:
- The database does not exist or has already been deleted during a deletion operation.
- The queried data does not exist or has been deleted during a query operation.
- The database does not exist or has been deleted during a synchronization operation.
Resolution Steps
- Before deleting a database, verify the database name or check for duplicate deletions.
- Before querying data, ensure the query key is correct.
- Before synchronizing data, confirm the relevant database has not been deleted.
15100005 Database or Result Set Already Closed
Error Message
Database or result set already closed.
Error Description
This error code indicates that the database or result set is in a closed state when calling related interfaces.
Possible Causes
The database or result set was manually closed before performing operations.
Resolution Steps
- For database operations, reopen the database and retry the operation.
- For result set operations, requery to obtain the result set and retry the operation.