File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Markdown format
2
+ on :
3
+ pull_request :
4
+ types : [ synchronize, opened, reopened ]
5
+ branches :
6
+ - master
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
13
+ - uses : dorny/paths-filter@v3
14
+ id : changes
15
+ with :
16
+ list-files : shell
17
+ filters : |
18
+ markdown:
19
+ - added|modified: '**/*.md'
20
+ - name : Install packages
21
+ if : ${{ steps.changes.outputs.markdown == 'true' }}
22
+ run : pip install -U pangu
23
+ - name : Check format
24
+ if : ${{ steps.changes.outputs.markdown == 'true' }}
25
+ run : for markdown_file in ${{ steps.changes.outputs.markdown_files }}; do diff <(pangu -f ${markdown_file}) <(cat ${markdown_file}); done
26
+
Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ backup request 的实现原理比较简单:对于读操作(目前写操作
14
14
# 如何使用
15
15
在 Pegasus Java client v2.0.0 中,我们增加了一个接口,通过该接口可以打开某个表的 backup request 功能。其实现如下:
16
16
``` java
17
- public PegasusTableInterface openTable(String tableName, int backupRequestDelayMs) throws PException ;
17
+ public PegasusTableInterface openTable (String tableName, int backupRequestDelayMs) throws PException ;
18
18
```
19
-
20
- 相比于老版本的 ` openTable ` 接口,我们增加了一个 ` backupRequestDelayMs ` 参数。这个参数便是上文所指的时延,即:向 primary 发送请求,如果过了 ` backupRequestDelayMs ` 毫秒 response 仍没有返回,则向 secondary 发送 backup request。需要注意的是,` backupRequestDelayMs <= 0 ` 代表禁用 backup request 功能。
19
+ 相比于老版本的` openTable ` 接口,我们增加了一个` backupRequestDelayMs ` 参数。这个参数便是上文所指的时延,即:向 primary 发送请求,如果过了` backupRequestDelayMs ` 毫秒 response 仍没有返回,则向 secondary 发送 backup request。需要注意的是,` backupRequestDelayMs <= 0 ` 代表禁用 backup reqeust 功能。
21
20
22
21
另外在老版本的 ` openTable ` 接口中,backup request 功能默认是关闭的。
23
22
You can’t perform that action at this time.
0 commit comments