Skip to content

Modify form of default value - #2

Merged
iamlinjunhong merged 1 commit into
LeftHandCold:AddDefaultValfrom
iamlinjunhong:AddDefaultVal
Jun 9, 2022
Merged

iamlinjunhong merged 1 commit into
LeftHandCold:AddDefaultValfrom
iamlinjunhong:AddDefaultVal

Conversation

@iamlinjunhong

Copy link
Copy Markdown
Collaborator

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:

Not Available

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

@iamlinjunhong
iamlinjunhong merged this pull request into LeftHandCold:AddDefaultVal Jun 9, 2022
iamlinjunhong added a commit that referenced this pull request Jun 12, 2022
LeftHandCold added a commit that referenced this pull request Jun 13, 2022
* Support default value for tae

* Update SchemaToDefs

* Add UT

* Modify form of default value (#2)

Co-authored-by: iamlinjunhong <[email protected]>
Co-authored-by: Jin Hai <[email protected]>
LeftHandCold pushed a commit that referenced this pull request Aug 29, 2022
* Update char.test

* Update varchar.test

* Update char.test

* Update varchar.test

* Update char.result

* Update varchar.result

* adjust result

* adjust test cases

* add explain cases (#2)

* Update decimal.test

* Update timestamp.test

* Update go.mod

* Update go.mod

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.result

* adjust cases (#3)

* Update bigint.test

* Update bigint.result

* Update char.result

* Update char.test

* CI: add PR UT coverage (matrixorigin#4371)

Create a new yml file to support detect incremental code coverage

Approved by: @sukki37

* Update ut_pr.yml (matrixorigin#4439)

* Delete ut_pr.yml

Co-authored-by: iamlinjunhong <[email protected]>
Co-authored-by: Yingfeng <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: brown <[email protected]>
Co-authored-by: maomao <[email protected]>
Co-authored-by: ou yuanning <[email protected]>
Co-authored-by: fengttt <[email protected]>
LeftHandCold pushed a commit that referenced this pull request Oct 1, 2023
mergify Bot pushed a commit that referenced this pull request Nov 8, 2024
LeftHandCold pushed a commit that referenced this pull request Nov 12, 2024
support ip whitelist feat

Approved by: @heni02, @qingxinhome, @sukki37
LeftHandCold pushed a commit that referenced this pull request Nov 12, 2024
…rately(#2.0-dev) (matrixorigin#19950)

support password_history and password_reuse_interval take effect separately

Approved by: @daviszhen, @heni02, @sukki37
LeftHandCold pushed a commit that referenced this pull request Nov 12, 2024
)

add system variable profiling_history_size

Approved by: @daviszhen, @sukki37, @heni02
mergify Bot pushed a commit that referenced this pull request Nov 12, 2024
LeftHandCold pushed a commit that referenced this pull request Nov 13, 2024
mergify Bot pushed a commit that referenced this pull request Nov 14, 2024
…0078)

drop snapshot read test with multi ts txnop

Approved by: @heni02, @sukki37
LeftHandCold pushed a commit that referenced this pull request Nov 18, 2024
LeftHandCold pushed a commit that referenced this pull request Nov 21, 2024
optimize restore system table

Approved by: @daviszhen, @heni02, @sukki37
LeftHandCold pushed a commit that referenced this pull request Nov 21, 2024
)

fix restore table or database with keyword

Approved by: @daviszhen, @heni02, @sukki37
LeftHandCold pushed a commit that referenced this pull request Dec 4, 2024
LeftHandCold pushed a commit that referenced this pull request Dec 4, 2024
LeftHandCold pushed a commit that referenced this pull request Dec 4, 2024
LeftHandCold pushed a commit that referenced this pull request Dec 11, 2024
…atrixorigin#20668)

fix restore view with lower case table names equals to 0

Approved by: @daviszhen, @heni02, @aressu1985, @sukki37
LeftHandCold pushed a commit that referenced this pull request Dec 23, 2024
LeftHandCold pushed a commit that referenced this pull request Jan 15, 2025
LeftHandCold pushed a commit that referenced this pull request Jan 21, 2025
support dump for vecf32 and vecf64

Approved by: @qingxinhome, @heni02, @sukki37
LeftHandCold pushed a commit that referenced this pull request Apr 17, 2026
…origin#24117)

Move postEvict callbacks (value.Release + metrics updates) outside the global `queueLock` in the FIFO cache to eliminate lock convoy under memory pressure.

### Root Cause

When MemCache (12GB FIFO cache) is 100% full, every `Set()` triggers `Evict()` which holds the global `queueLock` while executing `postEvict` callbacks. Under GC pressure (STW pauses up to ~1s), this creates a lock convoy where all concurrent cache operations serialize through the single lock:

- Each `Set()` takes **300-444ms** (normal: <0.1ms, 3000-4400x slower)
- Queries with ~90 cache ops inflate from 1-5s to **60-107s**
- Exceeds client-side timeouts → **connection disconnections**

Evidence from fileservice slow event trace:
```
Single S3FS.Read (total: 798ms) breakdown:
disk cache read:            35ms
set memory cache entry #1: 318ms  ← queueLock wait + eviction
set memory cache entry #2: 444ms  ← queueLock wait + eviction
762ms (95%) spent in "set memory cache entry"
```

### Fix

1. Collect evicted items under `queueLock` into a pending list
2. Release `queueLock`
3. Execute `postEvict` callbacks (value.Release + metrics) outside the lock

The `item.valueOK` flag is still set to `false` under the **shard lock** (not queueLock) to prevent data races with concurrent `Get()` calls.

### Impact

In stability testing (commit 725b723):
- **TPCC**: 40 "Communications link failure" events
- **Fulltext**: 57 "Lost connection" events
- **Sysbench**: 0 errors (point queries <5s skip tombstone transfer)

Approved by: @gouhongshen, @XuPeng-SH, @fengttt
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.

1 participant