From ad296d0f0861835bc9bd5bf7a96e51673d5adbb3 Mon Sep 17 00:00:00 2001 From: ylq121 Date: Sat, 25 Mar 2023 10:14:42 +0800 Subject: [PATCH] errcode Signed-off-by: ylq121 --- .../apis/js-apis-distributedKVStore.md | 39 +++++++++++++++++-- .../errorcode-distributedKVStore.md | 28 ++++++++++--- 2 files changed, 58 insertions(+), 9 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md b/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md index 657c3b86f3..2b576197fb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md @@ -2112,6 +2112,7 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2161,6 +2162,7 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise<void | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2202,6 +2204,7 @@ putBatch(entries: Entry[], callback: AsyncCallback<void>): void | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2269,6 +2272,7 @@ putBatch(entries: Entry[]): Promise<void> | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2329,6 +2333,7 @@ putBatch(value: Array<ValuesBucket>, callback: AsyncCallback<void>): | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2386,6 +2391,7 @@ putBatch(value: Array<ValuesBucket>): Promise<void> | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2434,6 +2440,7 @@ delete(key: string, callback: AsyncCallback<void>): void | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2489,6 +2496,7 @@ delete(key: string): Promise<void> | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2537,6 +2545,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallb | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2587,6 +2596,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates): Promise<void> | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2636,6 +2646,7 @@ deleteBatch(keys: string[], callback: AsyncCallback<void>): void | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -2704,6 +2715,7 @@ deleteBatch(keys: string[]): Promise<void> | ------------ | -------------------------------------- | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -3223,9 +3235,11 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KVStoreResultSet>) | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | + **示例:** ```js @@ -3297,6 +3311,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -3360,6 +3375,7 @@ getResultSet(query: Query, callback: AsyncCallback<KVStoreResultSet>): voi | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -3428,6 +3444,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -3490,6 +3507,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -3551,6 +3569,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -4030,6 +4049,7 @@ startTransaction(callback: AsyncCallback<void>): void | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -4098,6 +4118,7 @@ startTransaction(): Promise<void> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | | 15100005 | Database or result set already closed. | +| 14800047 | WAL file size exceeds the default limit| **示例:** @@ -4646,7 +4667,7 @@ on(event: 'dataChange', type: SubscribeType, listener: Callback<ChangeNotific | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | -| 15100001 | Over max subscribe limits. | +| 15100001 | Over max limits. | | 15100005 | Database or result set already closed. | **示例:** @@ -4757,9 +4778,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]& 取消订阅同步完成事件回调通知。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core - -**参数:** +**系统能力:** SystemCapability.DistributedDataManager.KVStore. | 参数名 | 类型 | 必填 | 说明 | | ------------ | --------------------------------------------- | ---- | ---------------------------------------------------------- | @@ -5634,6 +5653,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KVStoreResultSet>) | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -5708,6 +5728,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -5772,6 +5793,7 @@ getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KVS | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -5828,6 +5850,7 @@ getResultSet(deviceId: string, keyPrefix: string): Promise<KVStoreResultSet&g | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -5875,6 +5898,7 @@ getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KVStoreR | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -5952,6 +5976,7 @@ getResultSet(deviceId: string, query: Query): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6025,6 +6050,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6091,6 +6117,7 @@ getResultSet(deviceId: string, query: Query): Promise<KVStoreResultSet> | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6161,6 +6188,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6222,6 +6250,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6275,6 +6304,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | @@ -6337,6 +6367,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat | **错误码ID** | **错误信息** | | ------------ | -------------------------------------- | +| 15100001 | Over max limits. | | 15100003 | Database corrupted. | | 15100005 | Database or result set already closed. | diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md b/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md index 960121c19a..a743ee9fad 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md @@ -8,19 +8,20 @@ **错误信息** -Over max subscribe limits. +Over max limits. **错误描述** -该错误码表示在调用数据库变化订阅on接口时,订阅数量已超过最大限制。 +超过数据库最大支持上限。 **可能原因** -在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。 +1. 在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。 +2. 数据库当前打开的结果集数目超过最大限制。 **处理步骤** -取消对数据库的部分订阅后,再次尝试订阅。 +如果当前操作为数据库订阅操作,取消对数据库的部分订阅后,再次尝试订阅,否则,关闭部分打开的结果集后重试。 ## 15100002 打开已有数据库时参数配置发生变化 @@ -102,4 +103,21 @@ Database or result set already closed. **处理步骤** 1. 在数据库相关操作前,请重新打开数据库之后再重试当前操作。 -2. 在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。 \ No newline at end of file +2. 在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。 +## 14800047 WAL文件大小超过默认值 +**错误信息** + +WAL file size exceeds the default limit. + +**错误描述** + +WAL文件大小超过默认上限。 + +**可能原因** + +WAL文件大小超过默认上限。 + +**处理步骤** + +1. 检查结果集或者事务是否未关闭。 +2. 关闭所有结果集或者事务。 -- GitLab