apache / apache/incubator-seata

client加锁数量判断

Open
#3,475 1 comment 0 reactions 0 assignees View on GitHub
task: help-wanted
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

因为有的时候在更新或者删除数据时,sql条件设置不合理的情况下,影响行数很多
在执行buildTableRecords时一次性加载大量数据到内存,导致内存溢出,服务宕机
为了保证服务的稳定性,希望能增加一个配置用于判断加锁数据量,当大于阈值是进行相应的异常中断,防止加载beforImage时内存溢出

Contributor guide

Open the contributing guide

Research direction

Trace the client path around buildTableRecords and the beforeImage loading mentioned in the issue. Identify where a configurable lock-data threshold can be checked, then verify that exceeding it interrupts the operation with an appropriate exception before excessive memory use; the payload names no specific test or file.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.