Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
418ddeca
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
418ddeca
编写于
4月 10, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 10, 2023
浏览文件
操作
浏览文件
下载
差异文件
!16482 新增错误码KV文档修改
Merge pull request !16482 from 杨青/master
上级
d57dbc67
692478c9
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
157 addition
and
52 deletion
+157
-52
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
...lication-dev/reference/apis/js-apis-distributedKVStore.md
+150
-47
zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md
...-dev/reference/errorcodes/errorcode-distributedKVStore.md
+7
-5
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
浏览文件 @
418ddeca
...
...
@@ -2109,10 +2109,16 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2158,10 +2164,16 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise<void
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2199,10 +2211,16 @@ putBatch(entries: Entry[], callback: AsyncCallback<void>): void
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2266,10 +2284,16 @@ putBatch(entries: Entry[]): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2326,10 +2350,16 @@ putBatch(value: Array<ValuesBucket>, callback: AsyncCallback<void>):
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2383,10 +2413,16 @@ putBatch(value: Array<ValuesBucket>): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2435,6 +2471,12 @@ delete(key: string, callback: AsyncCallback<void>): void
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2486,10 +2528,16 @@ delete(key: string): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2538,6 +2586,12 @@ delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallb
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2584,10 +2638,16 @@ delete(predicates: dataSharePredicates.DataSharePredicates): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2633,10 +2693,16 @@ deleteBatch(keys: string[], callback: AsyncCallback<void>): void
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -2701,10 +2767,16 @@ deleteBatch(keys: string[]): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -3223,9 +3295,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 +3371,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3360,6 +3435,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 +3504,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3490,6 +3567,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3551,6 +3629,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -4028,9 +4107,15 @@ startTransaction(callback: AsyncCallback<void>): void
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -4096,9 +4181,15 @@ startTransaction(): Promise<void>
以下错误码的详细介绍请参见
[
分布式键值数据库错误码
](
../errorcodes/errorcode-distributedKVStore.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| ------------ | --------------------------------------
--
|
| 15100005 | Database or result set already closed. |
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
**示例:**
```
js
...
...
@@ -4646,7 +4737,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. |
**示例:**
...
...
@@ -5634,6 +5725,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KVStoreResultSet>)
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5708,6 +5800,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5772,6 +5865,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 +5922,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 +5970,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 +6048,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 +6122,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6091,6 +6189,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 +6260,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6222,6 +6322,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6275,6 +6376,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6337,6 +6439,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md
浏览文件 @
418ddeca
...
...
@@ -8,19 +8,21 @@
**错误信息**
Over max
subscribe
limits.
Over max limits.
**错误描述**
该错误码表示在调用数据库变化订阅on接口时,订阅数量已超过最大限制
。
超过数据库订阅数目或者打开结果集数目最大支持上限
。
**可能原因**
在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。
1.
在调用订阅数据库变化接口on时,对数据库的订阅数量已超过最大限制数目8。
2.
调用获取数据库结果集接口getResultSet时, 数据库当前打开的结果集数目超过最大限制数目8。
**处理步骤**
取消对数据库的部分订阅后,再次尝试订阅。
1.
如果在调用订阅数据库变化接口on时,对数据库的订阅数量已超过最大限制,取消对数据库的部分订阅后,再次尝试订阅。
2.
如果在调用获取数据库结果集接口getResultSet时数据库当前打开的结果集数目超过最大限制,关闭部分打开的结果集后重试。
## 15100002 打开已有数据库时参数配置发生变化
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录