Commit Graph

84 Commits

Author SHA1 Message Date
weisd
91c099e35f add Error test, fix clippy 2025-06-09 11:29:23 +08:00
weisd
b51ee48699 update filereader/writer todo 2025-06-06 18:04:51 +08:00
weisd
f199718e3b drop common/error 2025-06-06 16:34:59 +08:00
weisd
c589972fa7 mc test ok 2025-06-06 16:15:26 +08:00
overtrue
8747a91df8 feat: add comprehensive formatting rules and type inference guidelines 2025-05-28 16:04:38 +08:00
overtrue
cad2aa436b fix: resolve clippy warnings for field reassignment with default in last_minute.rs tests 2025-05-28 15:14:49 +08:00
overtrue
de35928496 resolve: merge conflicts in last_minute.rs tests 2025-05-28 14:48:53 +08:00
安正超
ecbd1e0bc3 fix: resolve critical namespace lock bug and improve test reliability 2025-05-28 11:51:48 +08:00
安正超
181e08cb8e fix: resolve critical namespace lock bug and improve test reliability 2025-05-28 11:46:46 +08:00
安正超
87a4ed2107 fix: resolve all Clippy warnings and test failures - Fixed field reassignment warnings in ecstore/src/file_meta.rs by using struct initialization - Fixed overly complex boolean expression in ecstore/src/utils/os/mod.rs - Fixed JWT claims extraction tests in iam module to handle error cases properly - Fixed filter_policies tests to match actual function behavior with empty cache - Fixed tracing subscriber initialization conflicts in rustfs-event-notifier tests - Added buffer length validation in ecstore read_bytes_header function - Fixed concurrent read locks test by clearing global state and improving test reliability - Removed unused imports to eliminate Clippy warnings - All tests now pass: cargo test --workspace --lib --all-features --exclude e2e_test - All Clippy warnings resolved: cargo clippy --all-targets --all-features -- -D warnings 2025-05-28 11:40:05 +08:00
安正超
a1f4abf6c3 fix: resolve all Clippy warnings across codebase - Fixed field reassignment warnings in ecstore/src/file_meta.rs by using struct initialization instead of default + field assignment - Fixed overly complex boolean expression in ecstore/src/utils/os/mod.rs by removing meaningless assertion - Replaced manual Default implementation with derive in crates/zip/src/lib.rs - Updated io::Error usage to use io::Error::other() instead of deprecated pattern - Removed useless assertions and clone-on-copy warnings - Fixed unwrap usage by replacing with expect() providing meaningful error messages - Fixed useless vec usage by using array repeat instead - All code now passes comprehensive Clippy check with --all-targets --all-features -- -D warnings 2025-05-28 11:00:07 +08:00
overtrue
adb3ea171a feat: add comprehensive test coverage for common module 2025-05-27 22:58:06 +08:00
overtrue
9d594cbda6 feat: add comprehensive tests for DRWMutex and fix critical bugs 2025-05-27 21:21:47 +08:00
overtrue
2b641b7ef3 feat: add comprehensive test coverage for last_minute latency module 2025-05-27 21:03:56 +08:00
houseme
a95138868e improve code 2025-05-27 19:07:09 +08:00
houseme
29ddf4dbc8 refactor: standardize constant management and fix typos (#387)
* init rustfs config

* init rustfs-utils crate

* improve code for rustfs-config crate

* add

* improve code for comment

* init rustfs config

* improve code for rustfs-config crate

* add

* improve code for comment

* Unified management of configurations and constants

* fix: modify rustfs-config crate name

* add default fn

* improve code for rustfs config

* refactor: standardize constant management and fix typos

- Create centralized constants module for global static constants
- Replace runtime format! expressions with compile-time constants
- Fix DEFAULT_PORT reference issues in configuration arguments
- Use const-str crate for compile-time string concatenation
- Update tokio dependency from 1.42.2 to 1.45.0
- Ensure consistent naming convention for configuration constants

* fix

* Update common/workers/src/workers.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 17:23:22 +08:00
junxiang Mu
0ac1095c70 support spec char as delimiter
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-05-06 11:10:30 +08:00
weisd
cffd4fc28d merge fix/pools 2025-04-23 16:48:57 +08:00
weisd
fff7e5f827 pool select idx
fixs:#346, #339, #338, #337, #336, #334

test healbucket

test get_available_pool_idx

fix
2025-04-23 15:11:43 +08:00
junxiang Mu
29fbfc3d6e move protobuf generate into bin crate
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-21 03:09:54 +00:00
junxiang Mu
99a5866680 degrade rand && object_store
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-09 03:27:03 +00:00
junxiang Mu
ebf1a9d9c4 update tonic axum
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-09 02:41:06 +00:00
weisd
545ae79e44 move ecsotre/error to common 2025-03-25 17:42:15 +08:00
weisd
70031effa7 use http for remote read/write 2025-03-11 16:12:34 +08:00
weisd
9831d14d5e cargo fmt 2025-01-11 01:01:04 +08:00
weisd
30ef259c89 feat:cros 2025-01-07 22:00:49 +08:00
junxiang Mu
c749cda90d fix remote err && lock err
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-30 11:38:36 +08:00
junxiang Mu
a55b45c0ee tmp 5
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-29 20:27:05 +08:00
junxiang Mu
2f5f352f9a tmp 4
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-29 20:25:23 +08:00
weisd
1af62dafa4 cargo fmt 2024-12-26 00:17:41 +08:00
weisd
34b16293ba merge main 2024-12-26 00:10:11 +08:00
junxiang Mu
9c7bcd4c2f reduce panic function call
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-25 15:01:26 +08:00
weisd
2e0ee441cf clippy 2024-12-24 20:04:40 +08:00
weisd
e725c97536 remove openssl dep 2024-12-23 19:58:37 +08:00
junxiang Mu
9dec7b1f66 rewrite decode
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-23 17:46:39 +08:00
junxiang Mu
ab26b7c1ca refactor walk_dir grpc api
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-23 16:21:30 +08:00
junxiang Mu
84953bf15b refactor error framework
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-18 20:50:22 +08:00
weisd
64e631fcdb cargo check 2024-12-16 22:20:33 +08:00
weisd
03adb9f57e cargo fmt 2024-12-12 10:13:12 +08:00
junxiang Mu
008919cdfa rebase main
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-09 15:31:10 +08:00
Nugine
c83d5e1e59 style: workspace lints (#148)
* fix: clippy error

* style: workspace lints

* test: ignore failures
2024-12-05 15:12:52 +08:00
weisd
e39775bb34 notification_sys base 2024-12-04 10:55:09 +08:00
mujunxiang
9533e312b1 scanner(2)
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-12-04 10:51:34 +08:00
mujunxiang
f87b2bee95 scanner status command(1)
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-12-03 10:20:41 +08:00
mujunxiang
26c5ebea53 rebase main
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-30 16:05:02 +08:00
mujunxiang
e95bb4c4d7 heal admin api(3)
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-30 15:40:22 +08:00
mujunxiang
a421b5be2b heal admin api(1)
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-30 15:34:04 +08:00
mujunxiang
1b9ae3ccb3 support some peer rest api
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-27 14:31:26 +08:00
mujunxiang
7029524504 peer rest frame
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-27 14:24:22 +08:00
mujunxiang
e94d462652 auto heal(3)
Signed-off-by: mujunxiang <1948535941@qq.com>
2024-11-19 17:15:37 +08:00