提交

113 次代码提交

作者 SHA1 备注 提交日期
Captain32 22fca04564 [Fix] Ensure ChainTable's version is monotonically increasing (#413)
Build / build (push) Has been cancelled
2026-05-07 17:31:53 +08:00
dxlog0 593cec5851 fix(IoRing): correct timeout check logic for batch processing (#404)
Co-authored-by: Artorias <dexin_zeng@qq.com>
2026-03-30 10:41:21 +08:00
SF-Zhou e2cef822ec fix(sync): handle truncate/extend operations correctly in syncing (#403) 2026-03-27 15:12:26 +08:00
SF-Zhou 18317763fb Fix the size limit of get_allocate_tasks in chunk engine (#401) 2026-03-09 11:47:26 +08:00
SF-Zhou 9814c6e569 chore: replace set with add_link_options for linker flags (#399) 2026-02-25 13:42:28 +08:00
qieqieplus e7ef789d94 Fix indentation in CLI (#396) 2026-02-04 15:54:23 +08:00
SF-Zhou ebbd02f144 Enable build workflow for pull requests (#394)
Restrict build triggers to only the main branch.
2026-01-24 20:48:44 +08:00
qieqieplus c79633a250 Fix strict aliasing violations in Address (#393) 2026-01-24 20:47:52 +08:00
yangxingxiang f6395e7d34 Add ubuntu20.04 compile dockerfile (#226)
Co-authored-by: yangxingxiang <hansyang@yunify.com>
2026-01-22 14:47:45 +08:00
Simon_CQK c33c344456 Refine(IB): ib connect using 1byte probe msg instead of empty payload. (#333) 2026-01-22 14:21:20 +08:00
Copilot 1e917a96a5 Clarify speed_up_quit() test usage violates documented safety contract (#392)
* Initial plan

* Update speed_up_quit() test comment to clarify exceptional testing usage

Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>
2026-01-22 14:01:58 +08:00
Copilot 02ba0a524a Mark speed_up_quit() as unsafe with safety contract (#388)
* Initial plan

* Mark speed_up_quit as unsafe and add safety documentation

Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>
2026-01-20 21:43:31 +08:00
Copilot fc5688e9a2 Document unsafe pointer lifetime constraints in update_chunk() (#385)
* Initial plan

* Add SAFETY comments to document unsafe pointer usage in update_chunk()

Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>

* Fix line numbers in SAFETY comment to reflect actual code locations

Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SF-Zhou <7477599+SF-Zhou@users.noreply.github.com>
2026-01-20 13:51:37 +08:00
qieqieplus b32f5e8d49 Fix SimpleRingBuffer issues (#383)
* Refactor SimpleRingBuffer

- Use std::allocator for memory management
- Add destructor to properly destroy elements and prevent memory leaks
- Remove incorrect modulo in iterator increment
- Fix iterator post-increment operator returning reference
- Use constraints (std::constructible_from) for push/emplace
- Add size() and clear() methods

* tests: fix build and avoid NodeInfoWrapper copy

The copy constructor for SimpleRingBuffer is explicitly disabled in
src/common/utils/SimpleRingBuffer.h. Since NodeInfoWrapper contains
a SimpleRingBuffer, it is also non-copyable.

This commit optimizes the MgmtdOperator tests to use pointers instead
of object copies when retrieving NodeInfoWrapper, avoiding build
failures caused by dereferencing and copying.
2026-01-20 13:15:43 +08:00
SF-Zhou d31a2a98a5 fix(AtomicSharedPtrTable): Fix AvailSlots dealloc() slot cleanup logic (#382)
* fix(AtomicSharedPtrTable): Fix AvailSlots dealloc() slot cleanup logic

* fix: revert nextAvail to std::atomic<int>

---------

Co-authored-by: qieqieplus <admin@qieqie.me>
2026-01-15 14:26:13 +08:00
SF-Zhou 5c5eac0b08 Add 'dev' branch to build workflow (#381) 2026-01-15 09:20:35 +08:00
SF-Zhou d84574b8c0 Revert "fix(AtomicSharedPtrTable): Fix AvailSlots dealloc() slot cleanup logi…" (#380)
This reverts commit 0849a95b4e.
2026-01-14 18:06:41 +08:00
qieqieplus 0849a95b4e fix(AtomicSharedPtrTable): Fix AvailSlots dealloc() slot cleanup logic (#379) 2026-01-14 17:47:24 +08:00
SF-Zhou 587bec3a40 Fix potential counter overflow issue in the iterator (#378) 2026-01-06 09:10:32 +08:00
ゆり 1dbb882a46 Fix connected_count metric underflow in TransportPool::get() (#375)
The bug was in TransportPool::get() where creating a new transport
always incremented acceptedCount, regardless of addr.ip value.

When addr.ip != 0 (outgoing connection), the code should increment
connectedCount instead. The mismatch caused:

1. get() creates connection with addr.ip != 0 -> increments acceptedCount (wrong)
2. remove() for that connection -> decrements connectedCount (correct)
3. connectedCount underflows (wraps to UINT32_MAX)

This fix adds the same addr.ip check that exists in add() and remove()
to ensure the correct counter is incremented when creating transports.

Fixes #366

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: yurekami <yurekami@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 22:40:54 +08:00
SF-Zhou 2dead8803f fix: remove std::move to prevent use-after-move (#374) 2025-12-31 18:13:07 +08:00
Yiyuan Liu e5e020a345 fix ci (#371) 2025-12-26 14:41:11 +08:00
Yiyuan Liu 9cd799f576 fix ci (#370) 2025-12-26 14:22:18 +08:00
Yiyuan Liu bbb1e1ee04 Implement deterministic shuffle with configurable g++/libstdc++ compatibility. (#369) 2025-12-26 14:11:59 +08:00
mwish c669cbc91a Reduce a copying for shared_ptr in IOBuffer (#361) 2025-12-13 12:46:35 +08:00
SF-Zhou 6f029c439d Fix compile (#357) 2025-10-24 17:15:44 +08:00
SF-Zhou 5813f30ffd Fix transport leak caused by one-shot clients (#356) 2025-10-24 17:08:11 +08:00
SF-Zhou d2b24392fc Enable ARMv8-A CRC32 extension for faster CRC32C (#354)
Modify CMakeLists.txt to set `-march=armv8-a+crc`. This enables the use of hardware-accelerated CRC32 instructions, significantly improving the performance of CRC32C calculations on compatible ARM targets.
2025-10-22 17:34:39 +08:00
nauta f0ffa22312 update default value of max_idle_threads to keep consistent with libfuse (#350) 2025-10-14 10:34:36 +08:00
咕咕 263cde1dba Fix log (#349) 2025-10-14 08:30:50 +08:00
nauta 245701ef26 Fix include directive for ifaddrs.h (#348) 2025-10-11 15:42:33 +08:00
SF-Zhou 6afec76d5e Remove linker configuration for Rust (#347) 2025-10-11 09:09:32 +08:00
SF-Zhou 497941599c loosen restrictions on public state in batch read scenarios (#346)
Simplified upToDate function to check only localState.
2025-10-10 17:09:39 +08:00
SF-Zhou 9c7a5a3796 loosen restrictions on chain version in batch read scenarios (#341) 2025-09-23 12:09:59 +08:00
SF-Zhou 8fefb2ed6c add custom tcp nic prefix config (#338) 2025-09-10 09:18:24 +08:00
SF-Zhou 513453ccec fix serialization for Varint64 (#330) 2025-08-26 15:25:20 +08:00
SF-Zhou 35262e5890 fix potential inconsistency in commit chunk(s) (#329) 2025-08-22 13:44:24 +08:00
SF-Zhou e8e7c801b6 fix cache cleanup after batch remove (#328) 2025-08-22 09:29:08 +08:00
SF-Zhou 7234683b80 fix potential inconsistency in batch remove (#326) 2025-08-21 17:13:17 +08:00
SF-Zhou 702419373a Fix potential inconsistency in move chunk (#325) 2025-08-21 16:14:34 +08:00
cccshuang 03e35e2bda Fix race condition in chunk removal and compaction leading to metadata corruption (#322)
* Fix race condition in chunk removal and compaction leading to metadata corruption

Concurrent execution of chunk removal and compaction could lead to race conditions, causing stale or inconsistent metadata.

The change uses the meta cache entry lock to serialize access during both operations, ensuring atomic updates and consistent metadata.

* remove useless enumerate in batch_remove
2025-08-19 11:40:00 +08:00
Simon_CQK 394583dbf0 feat(rdma): parse ibdev2netdev from /sys/class to avoid 'ibdev2netdev' dependency. (#317)
Signed-off-by: SimonCqk <cqk0100@gmail.com>
2025-07-28 17:20:11 +08:00
SF-Zhou 2db69ced80 fix(fuse): fix fd leak in extract_mount_point 2025-06-17 17:20:51 +08:00
Neo Liu 91bfcf3606 Add metrics document (#282)
Signed-off-by: diabloneo <diabloneo@gmail.com>
Co-authored-by: ds-lkua <dslkua.c@gmail.com>
2025-05-21 10:37:44 +08:00
izxl007 0fd4d9b308 Fix a small spelling mistake (#266)
Signed-off-by: izxl007 <zeng.zheng@zte.com.cn>
2025-05-07 09:03:00 +08:00
SF-Zhou 0033c5b0bb Fix index out of bounds issue in batch_remove (#256) 2025-04-24 09:51:17 +08:00
SF-Zhou 59eccb7fb3 Update build.yml 2025-04-23 17:38:47 +08:00
YuqqiZhou de5e47e8de bugfix: let meta_cache.remove happen after meta_store.write (#252)
Co-authored-by: keji.zyq <keji.zyq@alibaba-inc.com>
2025-04-23 17:23:53 +08:00
Simon_CQK d0883bab13 fix: typo on queryLastChunk logging. (#253)
Signed-off-by: SimonCqk <cqk0100@gmail.com>
2025-04-22 14:29:44 +08:00
jojomanar ee9a5cee0a fix OfflineTargetReq.targetId in ResyncWorker (#231)
The targetId should be successor's targetId, because the OfflineTargetReq is sent to successor.
2025-04-04 12:15:48 +08:00