Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage READ/WRITE support for LOAD DATA, External Table and SELECT OUTFILE #17979

Closed
wants to merge 147 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
5247247
Stage READ/WRITE support and restrict URL format (#17820)
cpegeric Jul 31, 2024
e5d7693
Stage READ/WRITE support and restrict URL format (#17820)
cpegeric Jul 31, 2024
e19a073
stage list file
cpegeric Aug 1, 2024
af06604
list with or without wildcard
cpegeric Aug 1, 2024
a31b03e
find the prefix without wildcard character to speed up file list
cpegeric Aug 1, 2024
2e97998
fix SCA test compile warning
cpegeric Aug 2, 2024
4012b31
fix test and remove test TestDoCheckFilePath to avoid failed to run S…
cpegeric Aug 2, 2024
edc08ce
disable updateTimeZone test. Not working in my machine. Expected 'lo…
cpegeric Aug 2, 2024
cf0dc02
fix SCA test
cpegeric Aug 2, 2024
6f522ae
fix SCA test
cpegeric Aug 2, 2024
a66c41e
add stage_list tests
cpegeric Aug 5, 2024
ff31d05
fix SCA test
cpegeric Aug 5, 2024
5c635eb
export work on top of fileservice (matrixorigin #17748)
cpegeric Aug 6, 2024
8c57483
fix bvt test cases (#17820)
cpegeric Aug 7, 2024
3932318
bug fix get proc context (#17820)
cpegeric Aug 8, 2024
058ff9b
remove unused code (##17820)
cpegeric Aug 8, 2024
bf7e6c8
Revert Projection operator back to bb4f5ea (#17976)
zengyan1 Aug 9, 2024
c9c93d6
apply pk filter for mo_tables and mo_database (#17892)
aptend Aug 9, 2024
d7212e6
CN merge objects in batch (#17867)
w-zr Aug 9, 2024
7341149
[fix] : fix restore related issues (#17773)
jensenojs Aug 9, 2024
bc7fca0
Add max_allow_packet check (#17846)
CJKkkk-315 Aug 9, 2024
dcc9dd4
support show pitr with range value and unit (#17928)
YANGGMM Aug 9, 2024
7f38225
Fix data race (#17975)
ck89119 Aug 9, 2024
2eb6756
Fix: skip view when collect rows and size in cmd `show table status` …
ck89119 Aug 9, 2024
de6eaa8
fix txn opt (#17981)
daviszhen Aug 9, 2024
c1ca8b6
support multi test cluster run concurrently (#17949)
zhangxu19830126 Aug 9, 2024
7fb4fa5
remove unused code (#17820)
cpegeric Aug 9, 2024
315fdbe
fix parallel run scope never do context rebuild. (#17950)
m-schen Aug 9, 2024
6b7c456
Fix #17959 (#17961)
fengttt Aug 9, 2024
7a12da0
collect table statistics for Ordinary and Materialized (#18026)
ck89119 Aug 9, 2024
5955325
Adjust some pub sub behaviors (#18024)
ck89119 Aug 9, 2024
0811528
Fix bug: prepare for update with limit clause get error (#18033)
ouyuanning Aug 9, 2024
dfb9921
return the err if some failure happened when build reader filter (#17…
gouhongshen Aug 9, 2024
52e9bcc
[bug] fix memory leak (#17947)
volgariver6 Aug 9, 2024
513998c
Optimize commit readonly txn (#18028)
zhangxu19830126 Aug 9, 2024
3fbe931
[bug] logtail: pause the client if error occurrs (#17900)
volgariver6 Aug 9, 2024
a61baca
refactor snapshot and support show create database with sp hint (#18030)
YANGGMM Aug 10, 2024
c2fa177
Optimize create txn (#18038)
zhangxu19830126 Aug 10, 2024
d67257a
add spool (#17943)
reusee Aug 11, 2024
94af48c
Cache a mysql parser in session. (#17978)
fengttt Aug 11, 2024
787bb7b
remove pipeline in shuffle join probe side (#18040)
badboynt1 Aug 11, 2024
2d5166d
fix WatchDirty UT (#18037)
aptend Aug 12, 2024
788b6b0
fix missing objectEntry after rollbacking (#18029)
aptend Aug 12, 2024
b05eb88
reuse: make ReusableObject pointer type (#18056)
reusee Aug 12, 2024
c0fbee1
simply scopes in shuffle join (#18050)
badboynt1 Aug 12, 2024
9bc518e
use sync.Mutex to replace channel for CompileService. (#18057)
m-schen Aug 12, 2024
bdb7e82
add pub sub case (#18049)
Ariznawlll Aug 12, 2024
88aafab
remove appendBytes and standardize to use bytes.Buffer
cpegeric Aug 12, 2024
397515c
remove unused logic in scope (#18069)
badboynt1 Aug 12, 2024
630d5d8
remove MysqlResultSet.Name2Index (#17891)
CJKkkk-315 Aug 12, 2024
07450e3
fix restore sub db by account level snapshot (#18060)
YANGGMM Aug 13, 2024
3b7700c
malloc: reduce memory usages of stacktrace (#18043)
reusee Aug 13, 2024
d41aff3
refactor pipelines in shuffle group (#18073)
badboynt1 Aug 13, 2024
1e20270
add log and test for restore view (#18080)
YANGGMM Aug 13, 2024
4d2a745
fix ut `Test_Append` (#18093)
gouhongshen Aug 13, 2024
ce7fdc2
ctx deadline should not retry lock (#18091)
iamlinjunhong Aug 13, 2024
3ffbb8c
Fix some warnings. #17854 (#17856)
fengttt Aug 14, 2024
cd4ee45
add pub sub case (#18087)
Ariznawlll Aug 14, 2024
81eb633
[Tech Request]: operators never receive data directly from channel (#…
badboynt1 Aug 14, 2024
2e89a7b
Fix bug: double free batch (#18078)
ouyuanning Aug 14, 2024
e5c82cf
call table_scan.Reader.Close() during table_scan.Free (#18100)
ouyuanning Aug 14, 2024
1482ed2
bugfix oom if dn not work in long time mo_logger will hold many req i…
xzxiong Aug 14, 2024
326e54d
[tech] pprof: dump malloc profile (#18099)
volgariver6 Aug 14, 2024
699b63b
[Cherry-pick] Fix: get system variable autocommit in backSession (#18…
ck89119 Aug 14, 2024
c86ab19
reuse col def packet constructed during prepare stmt (#18064)
CJKkkk-315 Aug 14, 2024
91673db
improve updateDebugString (#18105)
CJKkkk-315 Aug 14, 2024
c266557
Rm tag18063 (#18127)
Ariznawlll Aug 14, 2024
7bb6da4
code refactoring of join build scopes (#18106)
badboynt1 Aug 14, 2024
e8deb5c
[feature] proxy: support connection cache. (#16828)
volgariver6 Aug 15, 2024
d2fd810
fileservice: tune tests to reduce time cost (#17923)
reusee Aug 15, 2024
e232688
fix: respsect filterFn in pluginRouter (#16680)
aylei Aug 15, 2024
a08dd12
metric: change folder name and add datasource variable for local dash…
guguducken Aug 15, 2024
592572f
don't break pipeline for probe side of joins in tp query (#18139)
badboynt1 Aug 15, 2024
ddb65ed
[bug] proxy: fix memory leak when transfer connections. (#18142)
volgariver6 Aug 15, 2024
2d1c314
Implement #17897 json_extract_string/int/float. (#18135)
fengttt Aug 15, 2024
12040e1
fix: insert newParallelScope (#18144)
huby2358 Aug 15, 2024
a9d1936
[bug] bootstrap: add retry when failed to add schedule cmds in bootst…
volgariver6 Aug 15, 2024
081becb
improve cn transfer deletes performance and refactor related code (#1…
XuPeng-SH Aug 15, 2024
919f43e
Fix bug for partition table (#17936)
triump2020 Aug 15, 2024
71b9a4b
optimize agg after reader refactor (#18094)
triump2020 Aug 15, 2024
543a636
disable want detail during cn transfer tombstones (#18165)
XuPeng-SH Aug 16, 2024
19cacc0
1.2.1 readme update (#17229)
yangj1211 Aug 16, 2024
bb347c5
Improve perf for pub/sub's crud (#18171)
ck89119 Aug 16, 2024
0035d45
fix a bug that cause wrong stats for runtime filter (#18170)
badboynt1 Aug 16, 2024
b616d89
fix bug in union scopes (#18178)
badboynt1 Aug 16, 2024
197b6b0
build hashbuild operator in compile time for single parallel join (#1…
badboynt1 Aug 16, 2024
1de8655
add w-w conflict error tests (#18183)
zhangxu19830126 Aug 16, 2024
ab1fb99
enable ut TestMultiClusterCanWork and TestBaseClusterCanWorkWithNewCl…
badboynt1 Aug 16, 2024
2341a00
fix: fixed UUID for python-udf-server (#18185)
aylei Aug 16, 2024
ef2deaa
[enhancement] stats: only update stats if it has been requested (#17896)
volgariver6 Aug 16, 2024
135a87d
fix filter Intersection2Vector (#18173)
gouhongshen Aug 16, 2024
0b9e9c8
fix transfer deletes (#18186)
XuPeng-SH Aug 16, 2024
7be6a75
reduce pipelines in value_scan (#18195)
badboynt1 Aug 17, 2024
cd4bc08
fix sharding ranges for workspace uncommitted objects (#18194)
zhangxu19830126 Aug 17, 2024
e03723d
debug txn leak (#18189)
daviszhen Aug 17, 2024
80f313c
negative cpu log too much, ture it as debug log (#18202)
xzxiong Aug 17, 2024
c2b4d0c
support restore sub by cluster snapshot (#18191)
YANGGMM Aug 17, 2024
0fb7bd8
add metrics for tombstones (#18198)
Wenbin1002 Aug 17, 2024
ca09f07
fix a bug about isSameCN (#18209)
badboynt1 Aug 18, 2024
b56e311
fix tombstone data (#18210)
XuPeng-SH Aug 18, 2024
438a70b
make sharding support logtail (#18208)
zhangxu19830126 Aug 19, 2024
2cb705b
refactor show Physical plan (#18164)
qingxinhome Aug 19, 2024
76a4df8
reload the cpu/mem setting if cgroup config changed. (#18167)
xzxiong Aug 19, 2024
7e475bc
fileservice: add IOVectorCache.Evict (#18199)
reusee Aug 19, 2024
7bc9289
[Refactor]: get rid of constant package in our parser and remove some…
jensenojs Aug 19, 2024
db8ae71
[enhancement] logservice: add append metrics (#18216)
volgariver6 Aug 19, 2024
c45d899
make parallelRun and mergeRun can call each other (#18221)
badboynt1 Aug 19, 2024
1f058f7
fix transfer deletes and add ut (#18201)
aptend Aug 19, 2024
093ffd0
add more cluster test case (#18227)
zhangxu19830126 Aug 19, 2024
7a9be26
support restore pub and sub in pitr (#18228)
YANGGMM Aug 19, 2024
bb477a2
do not let load data infile allways write s3 (#18193)
huby2358 Aug 19, 2024
9670c9a
fix json_extract_string and ison_extract_float64 (#18232)
YANGGMM Aug 19, 2024
c05e23d
reuse col def packet constructed during prepare stmt when QUERY and P…
CJKkkk-315 Aug 19, 2024
b759df0
embed: refinements (#18236)
reusee Aug 20, 2024
514d1c2
fix: external parallel dupOperator forget strictmode (#18229)
huby2358 Aug 20, 2024
91cec09
[fix] : remove incorrect putBatch in product operator (#18230)
jensenojs Aug 20, 2024
775afd7
Improve debug show scopes (#18239)
qingxinhome Aug 20, 2024
01e10a9
Update checkin max-active to 100 (#18224)
XuPeng-SH Aug 20, 2024
323edb8
fix w-w conflict if retry mo_tables lock (#18251)
zhangxu19830126 Aug 20, 2024
62ed409
[Tech Request]: imbalance in shuffle plans (#18242)
badboynt1 Aug 21, 2024
143c670
remove unused parameter in build operator (#18247)
badboynt1 Aug 21, 2024
d3b5337
add if new lock added in lock result (#18253)
zhangxu19830126 Aug 21, 2024
7d5571e
support rename table (#18258)
YANGGMM Aug 21, 2024
59d7606
fix typo (#18260)
Wenbin1002 Aug 21, 2024
0486f90
Handle issue of debug tools (#18263)
qingxinhome Aug 21, 2024
80509e6
skip restore sub if pub not exists (#18261)
YANGGMM Aug 21, 2024
cfb9edf
move stage_list() function to table_function (#17820)
cpegeric Aug 21, 2024
45e70b3
cleanup (#17820)
cpegeric Aug 21, 2024
add027d
Stage READ/WRITE support and restrict URL format (#17820)
cpegeric Jul 31, 2024
009bb8b
Stage READ/WRITE support and restrict URL format (#17820)
cpegeric Jul 31, 2024
603261e
stage list file
cpegeric Aug 1, 2024
3ca6fdc
list with or without wildcard
cpegeric Aug 1, 2024
2cdcc3c
find the prefix without wildcard character to speed up file list
cpegeric Aug 1, 2024
76ac94c
fix SCA test compile warning
cpegeric Aug 2, 2024
80f3995
fix test and remove test TestDoCheckFilePath to avoid failed to run S…
cpegeric Aug 2, 2024
b893ec8
disable updateTimeZone test. Not working in my machine. Expected 'lo…
cpegeric Aug 2, 2024
2fccf15
fix SCA test
cpegeric Aug 2, 2024
dbc49b5
fix SCA test
cpegeric Aug 2, 2024
44fdbe7
add stage_list tests
cpegeric Aug 5, 2024
7989889
fix SCA test
cpegeric Aug 5, 2024
4866038
export work on top of fileservice (matrixorigin #17748)
cpegeric Aug 6, 2024
f33e1a1
bug fix get proc context (#17820)
cpegeric Aug 8, 2024
0421b88
remove unused code (##17820)
cpegeric Aug 8, 2024
f1d165d
remove unused code (#17820)
cpegeric Aug 9, 2024
3476abe
remove appendBytes and standardize to use bytes.Buffer
cpegeric Aug 12, 2024
b1dfc76
merge and bug fix (#17820)
cpegeric Aug 21, 2024
d505742
go fmt code (#17820)
cpegeric Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/pkg/common @zhangxu19830126
/pkg/common/mpool @m-schen
/pkg/common/malloc @reusee
/pkg/common/spool @reusee @m-schen
/pkg/common/async @zhangxu19830126
/pkg/common/bitmap @aunjgr
/pkg/common/hashmap @aunjgr
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<a href="https://www.codefactor.io/repository/github/matrixorigin/matrixone">
<img src="https://www.codefactor.io/repository/github/matrixorigin/matrixone/badge?s=7280f4312fca2f2e6938fb8de5b726c5252541f0" alt="codefactor"/>
</a>
<a href="https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Release-Notes/v1.2.0/">
<img src="https://img.shields.io/badge/Release-v1.2.0-green.svg" alt="release"/>
<a href="https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Release-Notes/v1.2.1/">
<img src="https://img.shields.io/badge/Release-v1.2.1-green.svg" alt="release"/>
</a>
<br>
<a href="https://docs.matrixorigin.cn/en/1.2.0/">
<a href="https://docs.matrixorigin.cn/en/1.2.1/">
<b>Docs</b>
</a>
<b>||</b>
Expand Down Expand Up @@ -165,20 +165,20 @@ MatrixOne's architecture is as below:
<img alt="MatrixOne" height="420" src="https://github.com/matrixorigin/artwork/blob/main/docs/overview/architecture/archi-en-2.png?raw=true">
</p>

For more details, you can checkout [MatrixOne Architecture Design](https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Overview/architecture/matrixone-architecture-design/).
For more details, you can checkout [MatrixOne Architecture Design](https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Overview/architecture/matrixone-architecture-design/).

## ⚡️ <a id="quick-start">Quick start</a>

### ⚙️ Install MatrixOne

MatrixOne supports Linux and MacOS. You can install MatrixOne either by [building from source](#building-from-source) or [using docker](#using-docker).
For other installation types, please refer to [MatrixOne installation](https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Get-Started/install-standalone-matrixone/) for more details.
For other installation types, please refer to [MatrixOne installation](https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Get-Started/install-standalone-matrixone/) for more details.

**Step 1.Install Dependency**

- **Building from source**

1. Install Go (version 1.20 is required)
1. Install Go (version 1.22 is required)

Click <a href="https://go.dev/doc/install" target="_blank">Go Download and install</a> to enter its official documentation, and follow the installation steps to complete the **Go** installation.

Expand Down Expand Up @@ -216,7 +216,7 @@ The mo_ctl tool can be installed through the following command:
wget https://raw.githubusercontent.com/matrixorigin/mo_ctl_standalone/main/install.sh && sudo -u $(whoami) bash +x ./install.sh
```

See [mo_ctl Tool](https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Maintain/mo_ctl/) for complete usage details.
See [mo_ctl Tool](https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Maintain/mo_ctl/) for complete usage details.

**Step 3. Set mo_ctl parameters**

Expand Down Expand Up @@ -248,10 +248,10 @@ mo_ctl deploy main

- *Option 2*: Get the MatrixOne(Stable Version)

If you want to get the latest stable version code released by MatrixOne, please switch to the branch of version **1.2.0** first.
If you want to get the latest stable version code released by MatrixOne, please switch to the branch of version **1.2.1** first.

```
mo_ctl deploy v1.2.0
mo_ctl deploy v1.2.1
```

**Step 5. Launch MatrixOne server**
Expand All @@ -264,12 +264,12 @@ __Tips__: The initial startup of MatrixOne approximately takes 20 to 30 seconds.

One-click connection to MatrixOne service through `mo_ctl connect` command.

__Note__: The login account in the above code snippet is the initial account; please change the initial password after logging in to MatrixOne; see [Password Management](https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Security/password-mgmt/).
__Note__: The login account in the above code snippet is the initial account; please change the initial password after logging in to MatrixOne; see [Password Management](https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Security/password-mgmt/).

## 🙌 <a id="contributing">Contributing</a>

Contributions to MatrixOne are welcome from everyone.
See [Contribution Guide](https://docs.matrixorigin.cn/en/1.2.0/MatrixOne/Contribution-Guide/make-your-first-contribution/) for details on submitting patches and the contribution workflow.
See [Contribution Guide](https://docs.matrixorigin.cn/en/1.2.1/MatrixOne/Contribution-Guide/make-your-first-contribution/) for details on submitting patches and the contribution workflow.

### 👏 All contributors

Expand Down
24 changes: 12 additions & 12 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<a href="https://www.codefactor.io/repository/github/matrixorigin/matrixone">
<img src="https://www.codefactor.io/repository/github/matrixorigin/matrixone/badge?s=7280f4312fca2f2e6938fb8de5b726c5252541f0" alt="codefactor"/>
</a>
<a href="https://docs.matrixorigin.cn/1.2.0/MatrixOne/Release-Notes/v1.2.0/">
<img src="https://img.shields.io/badge/Release-1.2.0-green.svg" alt="release"/>
<a href="https://docs.matrixorigin.cn/1.2.1/MatrixOne/Release-Notes/v1.2.1/">
<img src="https://img.shields.io/badge/Release-1.2.1-green.svg" alt="release"/>
</a>
<br>
<a href="https://docs.matrixorigin.cn//1.2.0/">
<a href="https://docs.matrixorigin.cn//1.2.1/">
<b>Docs</b>
</a>
<b>||</b>
Expand Down Expand Up @@ -159,24 +159,24 @@ MatrixOne 是一款超融合异构分布式数据库,通过云原生化和存

MatrixOne 的架构图如下图所示:
<p align="center">
<img alt="MatrixOne" height="500" src="https://community-shared-data-1308875761.cos.ap-beijing.myqcloud.com/artwork/docs/overview/architecture/architecture-1.png?raw=true">
<img alt="MatrixOne" height="500" src="https://community-shared-data-1308875761.cos.ap-beijing.myqcloud.com/artwork/docs/Release-Notes/release-notes-1.1.0.png">
</p>

关于更详细的 MatrixOne 技术架构,可以参考[MatrixOne 架构设计](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Overview/architecture/matrixone-architecture-design/)。
关于更详细的 MatrixOne 技术架构,可以参考[MatrixOne 架构设计](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Overview/architecture/matrixone-architecture-design/)。

## ⚡️ <a id="quick-start">快速上手</a>

### ⚙️ 安装 MatrixOne

MatrixOne 目前支持 Linux 及 MacOS 系统,您可以通过源码安装,二进制包安装或者 docker 安装。对于更详情的安装方式请参见[MatrixOne 安装指南](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Get-Started/install-standalone-matrixone/)。
MatrixOne 目前支持 Linux 及 MacOS 系统,您可以通过源码安装,二进制包安装或者 docker 安装。对于更详情的安装方式请参见[MatrixOne 安装指南](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Get-Started/install-standalone-matrixone/)。

以下为您介绍通过源码部署和docker部署两种方式:

**步骤 1.前置依赖**

- 源码部署

1. 搭建 Go 语言环境(至少需要 1.20 版本)
1. 搭建 Go 语言环境(至少需要 1.22 版本)

点击 <a href="https://go.dev/doc/install" target="_blank">Go Download and install</a> 入到 **Go** 的官方文档,按照官方指导安装步骤完成 **Go** 语言的安装。

Expand Down Expand Up @@ -214,7 +214,7 @@ __Tips__: 建议 MySQL 客户端版本为 8.0.30 版本及以上。
wget https://raw.githubusercontent.com/matrixorigin/mo_ctl_standalone/main/install.sh && sudo -u $(whoami) bash +x ./install.sh
```

如需获取完整的使用细节可以参考 [mo_ctl 工具指南](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Maintain/mo_ctl/#_3)。
如需获取完整的使用细节可以参考 [mo_ctl 工具指南](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Maintain/mo_ctl/#_3)。

**步骤 3.设置 mo_ctl 的配置参数**

Expand Down Expand Up @@ -246,10 +246,10 @@ mo_ctl set_conf MO_DEPLOY_MODE=docker #设置MatrixOne部署方式,此为docke

- *选项 2*:获取 MatrixOne (稳定版本)

如果您想获得 MatrixOne 发布的最新稳定版本,请先从 **main** 切换选择至 **1.2.0** 版本分支。
如果您想获得 MatrixOne 发布的最新稳定版本,请先从 **main** 切换选择至 **1.2.1** 版本分支。

```
mo_ctl deploy 1.2.0
mo_ctl deploy 1.2.1
```

**步骤 5.启动 MatrixOne 服务**
Expand All @@ -262,7 +262,7 @@ __Tips__: 首次启动 MatrixOne 大致需要花费 20 至 30 秒的时间,在

通过 `mo_ctl connect` 命令一键连接 MatrixOne 服务。

__Tips__: 连接和登录账号为初始账号 `root` 和密码 `111`,请在登录 MatrixOne 后及时修改初始密码,参见[密码管理](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Security/password-mgmt/)。修改登录用户名或密码后重新登录同样需要通过 `mo_ctl set_conf` 的方式设置新的用户名和密码。详情可以参考 [mo_ctl 工具指南](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Maintain/mo_ctl/#_3)。
__Tips__: 连接和登录账号为初始账号 `root` 和密码 `111`,请在登录 MatrixOne 后及时修改初始密码,参见[密码管理](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Security/password-mgmt/)。修改登录用户名或密码后重新登录同样需要通过 `mo_ctl set_conf` 的方式设置新的用户名和密码。详情可以参考 [mo_ctl 工具指南](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Maintain/mo_ctl/#_3)。


### 👏贡献者
Expand Down Expand Up @@ -1021,7 +1021,7 @@ __Tips__: 连接和登录账号为初始账号 `root` 和密码 `111`,请在
## 🙌 <a id="contributing">参与贡献</a>

欢迎大家对 MatrixOne 的贡献。
请查看[贡献指南](https://docs.matrixorigin.cn/1.2.0/MatrixOne/Contribution-Guide/make-your-first-contribution/)来了解有关提交补丁和完成整个贡献流程的详细信息。
请查看[贡献指南](https://docs.matrixorigin.cn/1.2.1/MatrixOne/Contribution-Guide/make-your-first-contribution/)来了解有关提交补丁和完成整个贡献流程的详细信息。

## <a id="license">License</a>

Expand Down
2 changes: 2 additions & 0 deletions cmd/mo-service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ func (c *Config) mustGetServiceUUID() string {
return c.LogService.UUID
case metadata.ServiceType_PROXY:
return c.ProxyConfig.UUID
case metadata.ServiceType_PYTHON_UDF:
return c.PythonUdfServerConfig.UUID
}
panic("impossible")
}
Expand Down
39 changes: 37 additions & 2 deletions cmd/mo-service/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package main

import (
"bytes"
"compress/gzip"
"context"
"flag"
"fmt"
"hash/fnv"
Expand All @@ -31,14 +34,15 @@ import (

"github.com/felixge/fgprof"
"github.com/google/uuid"
"go.uber.org/zap"

"github.com/matrixorigin/matrixone/pkg/catalog"
"github.com/matrixorigin/matrixone/pkg/cnservice"
"github.com/matrixorigin/matrixone/pkg/common/malloc"
"github.com/matrixorigin/matrixone/pkg/fileservice"
"github.com/matrixorigin/matrixone/pkg/logutil"
"github.com/matrixorigin/matrixone/pkg/perfcounter"
"github.com/matrixorigin/matrixone/pkg/util/profile"
"github.com/matrixorigin/matrixone/pkg/util/status"
"go.uber.org/zap"
)

var (
Expand Down Expand Up @@ -416,6 +420,8 @@ func saveProfiles() {
saveProfile(profile.HEAP)
//dump goroutine before stopping services
saveProfile(profile.GOROUTINE)
// dump malloc profile
saveMallocProfile()
}

func saveProfile(typ string) string {
Expand All @@ -425,3 +431,32 @@ func saveProfile(typ string) string {
cnservice.SaveProfile(profilePath, typ, globalEtlFS)
return profilePath
}

func saveMallocProfile() {
buf := bytes.Buffer{}
w := gzip.NewWriter(&buf)
if err := malloc.WriteProfileData(w); err != nil {
logutil.GetGlobalLogger().Error("failed to write malloc profile", zap.Error(err))
return
}
if err := w.Close(); err != nil {
return
}
name, _ := uuid.NewV7()
profilePath := catalog.BuildProfilePath(globalServiceType, globalNodeId, "malloc", name.String()) + ".gz"
writeVec := fileservice.IOVector{
FilePath: profilePath,
Entries: []fileservice.IOEntry{
{
Offset: 0,
Data: buf.Bytes(),
Size: int64(len(buf.Bytes())),
},
},
}
ctx, cancel := context.WithTimeout(context.TODO(), time.Minute*3)
defer cancel()
if err := globalEtlFS.Write(ctx, writeVec); err != nil {
logutil.GetGlobalLogger().Error("failed to save malloc profile", zap.Error(err))
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions etc/launch-with-python-udf-server/python-udf-server.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
service-type = "PYTHON_UDF"

[python-udf-server]
uuid = "dd1dccb4-4d3c-41f8-b482-5251dc7a41b2"
address = "127.0.0.1:50051"
path = "pkg/udf/pythonservice/pyserver"
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/cespare/xxhash/v2 v2.2.0
github.com/cockroachdb/errors v1.9.1
github.com/confluentinc/confluent-kafka-go/v2 v2.4.0
github.com/containerd/cgroups/v3 v3.0.1
github.com/docker/go-units v0.5.0
github.com/dolthub/maphash v0.1.0
github.com/elastic/gosigar v0.14.2
Expand Down Expand Up @@ -50,8 +51,8 @@ require (
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
github.com/ncruces/go-dns v1.2.5
github.com/panjf2000/ants/v2 v2.7.4
github.com/parquet-go/parquet-go v0.20.1
github.com/pierrec/lz4/v4 v4.1.18
github.com/parquet-go/parquet-go v0.23.0
github.com/pierrec/lz4/v4 v4.1.21
github.com/pkg/errors v0.9.1
github.com/plar/go-adaptive-radix-tree v1.0.5
github.com/prashantv/gostub v1.1.0
Expand All @@ -72,20 +73,19 @@ require (
go.uber.org/zap v1.24.0
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
golang.org/x/sync v0.6.0
golang.org/x/sys v0.20.0
golang.org/x/sys v0.21.0
gonum.org/v1/gonum v0.14.0
google.golang.org/grpc v1.62.1
google.golang.org/protobuf v1.33.0
google.golang.org/protobuf v1.34.2
gopkg.in/natefinch/lumberjack.v2 v2.2.1
)

require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/K-Phoen/sdk v0.12.3 // indirect
github.com/andybalholm/brotli v1.0.5 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cilium/ebpf v0.9.1 // indirect
github.com/containerd/cgroups/v3 v3.0.1 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
Expand Down Expand Up @@ -154,7 +154,7 @@ require (
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
Expand Down
Loading
Loading