Skip to content

meta/redis: preserve full sustained inode IDs - #7935

Open
jiefenghuang wants to merge 1 commit into
juicedata:mainfrom
jiefenghuang:codex/redis-sustained-inode-encoding
Open

jiefenghuang wants to merge 1 commit into
juicedata:mainfrom
jiefenghuang:codex/redis-sustained-inode-encoding

Conversation

@jiefenghuang

@jiefenghuang jiefenghuang commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Redis sustained inode IDs pass through Go's int, which can truncate them on 32-bit clients.

Change

Use full uint64 IDs throughout and report malformed members. GC stops before deletion if a retained inode cannot be identified. Existing valid members keep their encoding.

Validation

The regression fails before the fix and passes after it. Core metadata tests, TestRedisCluster, and the linux/386 metadata build passed.

@jiefenghuang
jiefenghuang requested a review from zxh326 November 27, 2026 08:10
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 37.93103% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.77%. Comparing base (0d98d56) to head (efc33d3).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
pkg/meta/redis.go 43.13% 22 Missing and 7 partials ⚠️
pkg/meta/redis_bak.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7935      +/-   ##
==========================================
+ Coverage   42.86%   52.77%   +9.91%     
==========================================
  Files         196      148      -48     
  Lines       64965    53572   -11393     
==========================================
+ Hits        27845    28272     +427     
+ Misses      33913    22303   -11610     
+ Partials     3207     2997     -210     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread pkg/meta/redis.go
inode, err := parseSustainedInode(key, sinode)
if err != nil {
logger.Warnf("%s", err)
fail = true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 解析失败的 session 永远没有机会清理?解析失败直接 rem 掉?

This branch has not been deployed

No deployments
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.

2 participants