Skip to content

Merge main to branch - #18234

Merged
ouyuanning merged 17 commits into
matrixorigin:refactor-operators-for-mem-reusedfrom
ouyuanning:merge-new-main
Aug 19, 2024
Merged

ouyuanning merged 17 commits into
matrixorigin:refactor-operators-for-mem-reusedfrom
ouyuanning:merge-new-main

Conversation

@ouyuanning

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

badboynt1 and others added 17 commits August 17, 2024 05:48
reduce pipelines in value_scan

Approved by: @ouyuanning
…8194)

fix sharding ranges for workspace uncommitted objects

Approved by: @triump2020
原因:未定位到。没有goroutineid。

1.给用到txnclient.new的地方都加了createby。标识是谁创建了事务。leak checker会输出createby到日志。
2.实时更新fprints到txnop
3.backses结束时,rollback其创建的事务。通常事务都提交了。如果有泄露,rollback 会结束事务。

Approved by: @m-schen, @triump2020, @qingxinhome, @XuPeng-SH
negative cpu log too much, ture it as debug log

Approved by: @qingxinhome, @daviszhen
support restore sub by cluster snapshot

Approved by: @daviszhen, @aressu1985
add metrics for tombstones transfer
* transfer tombstone count
* transfer tombstone duration
* batch transfer tombstone duration

Approved by: @aptend, @triump2020, @zhangxu19830126, @XuPeng-SH
fix  a bug about isSameCN

Approved by: @ouyuanning
Integrated sharding and logtail

Approved by: @triump2020
物理计划侧,pipeline经过重构后,算子流结构由原来的连式结构 更新为树形结构, 因此在调试打印pipeline的代码需要重构,示例如下:
```plpgsql
SQL:SELECT ROUND(SUM(distance), 2) AS total_distance from real_time_position WHERE time_stamp < 1694733800000
Scope 1 (Magic: Merge, mcpu: 1, Receiver: [4])
Pipeline: └── output
└── projection
└── projection
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Merge, mcpu: 4, Receiver: [0, 1])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 4
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 0
└── group
└── projection
└── filter
└── tablescan
Scope 2 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 1
└── group
└── projection
└── filter
└── tablescan
}
}
```

Approved by: @m-schen
)

changed:
1. reload the cpu / mem quota from cgroupv2 if `cpu.max`, `memory.max` is modified
2. fill the metadata.CNService with logpb.CNStore's Resource setting.

no changed:
1. the cn, which running compile, still use its own `#cpu` to setup others cn `#cpu` (which should be `engine.Node.Mcpu`)

Approved by: @zhangxu19830126, @volgariver6, @XuPeng-SH
为了减少pipeline的打断,需要连接出一些比较长比较复杂的pipeline,导致pipeline执行流程会比之前复杂很多。
为了复用代码,需要让mergeRun和parallelRun可以互相调用,但是需要避免产生死循环

Approved by: @m-schen
fix a transfer error and add ut to ensure everything goes well

Approved by: @XuPeng-SH
@ouyuanning
ouyuanning requested a review from a user August 19, 2024 10:04
@ouyuanning
ouyuanning merged commit 93d6c5a into matrixorigin:refactor-operators-for-mem-reused Aug 19, 2024
@ouyuanning
ouyuanning deleted the merge-new-main branch August 30, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.