Commit Graph

59 Commits

Author SHA1 Message Date
slasher
4ae8eb48e7 chore(proto): golangci lint apply into proto
Signed-off-by: slasher <shenjie1@oppo.com>
2024-01-12 14:21:16 +08:00
slasher
1d84f74acd chore(format): format all code with gofumpt
Signed-off-by: slasher <shenjie1@oppo.com>
2024-01-12 14:21:16 +08:00
slasher
27c0b44a17 chore(blockcache): golangci lint apply into blockcache
Signed-off-by: slasher <shenjie1@oppo.com>
2023-12-28 17:13:05 +08:00
slasher
8234a93836 chore(lcnode): golangci lint apply into lcnode
Signed-off-by: slasher <shenjie1@oppo.com>
2023-12-28 17:13:05 +08:00
slasher
8f3e31faa8 feat(ci): show diffs of gofmt in ci format
Signed-off-by: slasher <shenjie1@oppo.com>
2023-12-27 10:23:10 +08:00
zhuzhengyi001
9f968b373d Enhancement: update dockerimage for s3test
Signed-off-by: zhuzhengyi001 <zhuzhengyi001@ke.com>
Signed-off-by: slasher <shenjie1@oppo.com>
2023-11-24 14:41:14 +08:00
slasher
7f406e5d0e chore(cli): golangci lint apply into cli
Signed-off-by: slasher <shenjie1@oppo.com>
2023-10-23 15:31:07 +08:00
slasher
a679018192 build(storage): format code with go generate
Signed-off-by: slasher <shenjie1@oppo.com>
2023-09-18 15:22:58 +08:00
NaturalSelect
7b945319cd test(ci): show node information to help debug
Signed-off-by: NaturalSelect <2145973003@qq.com>
2023-09-15 14:33:24 +08:00
leonrayang
4d81c6693c update: snapshot deletion and build test env
. inode 0 snapshot deletion and top layer deletion
. extentlist get inode don't need verion
. snapshot tools clean support 0 deletion
. update: build metanode basic test env

Signed-off-by: leonrayang <chl696@sina.com>
2023-08-30 20:05:32 +08:00
Patrick Wu
29e3110a93 S3 lifecycle
Signed-off-by: Patrick Wu <wuchunhuan@gmail.com>
2023-08-30 20:05:32 +08:00
slasher
fbbd480bb5 test(ci): rename all ci checks
close: #2210

Signed-off-by: slasher <shenjie1@oppo.com>
2023-06-29 11:56:08 +08:00
slasher
8c0deada4f test(build): concurrency unit and scenario tests
Signed-off-by: slasher <shenjie1@oppo.com>
2023-06-28 17:31:23 +08:00
yuxiaobo
53b933f1b8 build: put rocksdb libs into the docker image
Signed-off-by: yuxiaobo <yuxiaobo@oppo.com>
2023-05-29 17:08:46 +08:00
leonrayang
d5bb45ea49 docs. update to cubefs
Signed-off-by: leonrayang <chl696@sina.com>
2023-05-26 11:17:10 +08:00
yuxiaobo
ac75137295 build: the build script of blobstore is merged into cubefs
1. rocksdb upgrade to 6.3.6
2. optimize the build scripts
3. fix build errors
4. add env variable for blobstore unit test
5. update git ignore file to ignore build and test result
6. modify open files limit for unit test

Signed-off-by: yuxiaobo <yuxiaobo@oppo.com>
Signed-off-by: slasher <shenjie1@oppo.com>
Signed-off-by: Victor1319 <834863182@qq.com>
2023-05-23 15:24:53 +08:00
leonrayang
f41b8c40d5 update: docker start create hot volume on default
Signed-off-by: leonrayang <chl696@sina.com>
2023-03-04 16:13:35 +08:00
Patrick Wu
c8bf55ae69 S3 bugfix
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-04 16:13:35 +08:00
Patrick Wu
5f9e775cbe Cold volume support for S3 in objectnode
Signed-off-by: Patrick Wu <wuchunhuan@gmail.com>
Signed-off-by: Patrick Wu <wuchunhuan@oppo.com>
2023-03-04 16:13:35 +08:00
slasher
15bdd062fc test(docker): run ltp testing when released
run ltp test with tag v* and release-*

closes #1698

Signed-off-by: slasher <shenjie1@oppo.com>
2023-02-28 16:01:50 +08:00
ZhangRui
07012bf6fa add build cfs-bcache
Signed-off-by: zcola <zhangrui90@163.com>
2022-10-11 17:48:27 +08:00
leonrayang
051a6218f9 update: clean docker start cli output
Signed-off-by: leonrayang <chl696@sina.com>
2022-08-22 18:16:09 +08:00
leonrayang
9a30b9f884 update: update to CubeFS
Signed-off-by: leonrayang <chl696@sina.com>
2022-08-22 18:16:09 +08:00
leonrayang
f97aa5717c update: name related update to cubefs
Signed-off-by: leonrayang <chl696@sina.com>
2022-08-10 22:05:45 +08:00
wanglei469
6c9364ed8b test: change s3-tests from single bucket to double buckets
We found a bug when multi bucket were operated.
The s3-tests case now only support single bucket tests.
So I add a bucket named 's3test'.

Signed-off-by: wanglei469 <wanglei469@ke.com>
2022-03-14 11:07:45 +08:00
leonrayang
2970e2c3d1 update. go import path change from chubaofs to cubefs
Signed-off-by: leonrayang <chl696@sina.com>
2022-01-25 18:17:02 +08:00
Shuoran Liu
c01debc1cd ci: use go 1.16.12 instead of go 1.15
As of Go 1.16, os.ReadDir is a more efficient and correct choice than
ioutil.ReadDir, so we are making the updates.

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2022-01-21 12:04:56 +08:00
zhuzhengyi001
4e17bdbac4 Fix: fix ltptest ci bug
Signed-off-by: zhuzhengyi001 <zhuzhengyi001@ke.com>
2021-08-25 18:02:00 +08:00
Justice
d455fdaea6 Enhancement: add ci check for ltptest result
Signed-off-by: Justice <zhengyi.zhu.hust@gmail.com>
2021-07-30 14:19:41 +08:00
Shuoran Liu
47129c7eb7 enhance: add libsdk build process to ci
Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2021-02-09 15:31:58 +08:00
awzhgw
cf7fbde1f5
Revert "Sync from release-20200720" 2020-11-11 14:23:59 +08:00
awzhgw
b230b7107d Sync changes from release-20200720 branch.
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-11-09 16:03:42 +08:00
xuxihao1
428b5d1018 Enhancement: set/get delete rate parameters, display zone information and bad partition ids in cli tools.
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-30 11:13:28 +08:00
xuxihao1
f3cfd46577 enhancement: introduce log to cli tool and format error message
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-16 20:10:51 +08:00
ansjsun
f0c164523e add console node
Signed-off-by: ansjsun <ansj-sun@163.com>
2020-07-03 12:21:11 +08:00
yuboLee
2775a5e1cc Enhancement: add support for modifying part system metadata, self defined metadata management and tagging management
Signed-off-by: yuboLee <pangbolee@gmail.com>
2020-06-11 08:48:53 +08:00
Mofei Zhang
5b2d3fdc8f
Optimize multipart session lookup and docker tool
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-05-28 12:23:55 +08:00
Mervin
c52f2aa306
Merge branch 'master' into master 2020-05-22 13:49:20 +08:00
Mofei Zhang
df4b7f9a42
Fix: parallel-safe issue in conn pool and metanode conn serve
1. Fix: parallel-safe issue in conn pool and metanode conn serve
2. Fix: nil pointer issue when list parts for non-exist uploadId
3. Enhancement: validate read size while read from connnect.
4. Enhancement: clean up useless data on failure while upload part.
5. Enhancement: generate ETag if do not exist when listing.
6. Enhancement: include error message when formatting packet to string.
7. Enhancement: improve compatile with old version SDK.
8. Enhancement:  success when retry add exist multipart part.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
Signed-off-by: 张墨飞 <zhangmofei@jd.com>
2020-05-21 12:28:18 +08:00
xuxihao
10c957b810 Fix: the maxInodeID of a metapartition is not sync to others when recovered from snapshot; docker build failing when running build_docker.sh; spelling mistakes in cli
Refactor: upgrade base image from `cfs-base:1.0` to `cfs-base:1.1` in dockerfile

Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-05-20 18:20:03 +08:00
Mofei Zhang
aeafa437d1
Refactor: create volume and create data partition
When creating a volume, it returns to success when both the meta
partition and data partition are successfully created.
When adding a data partition to the volume, the data partition is
successfully created and then returns to success.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-05-06 12:35:14 +08:00
Mofei Zhang
184ca0b428
Ehancement: improve compatibility with nginx
Http's Expect header is a special header. When nginx is used as the
reverse proxy in the front end of ObjectNode, nginx will process the
Expect header information in advance, send the http status code 100 to
the client, and will not forward this header information to ObjectNode.
At this time, if the client request uses the Expect header when signing,
it will cause the ObjectNode to verify the signature.
A workaround is used here to solve this problem. Add the following
configuration in Nginx:

proxy_set_header X-Forwarded-Expect $ http_Expect

In this way, nginx will not only automatically handle the Expect
handshake, but also send the original value of Expect to the ObjectNode
through X-Forwared-Expect. ObjectNode only needs to use the value of
X-Forwared-Expect.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-04-30 15:12:53 +08:00
Mofei Zhang
4a456f6951
Enhancement: add python based test script for s3
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-04-21 17:17:13 +08:00
Mofei Zhang
397edb4370
Enhancement: auto create user while create volume
Auto create user while create volume if the owner user is not exists.
Add a option for force transfer volume to target user.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-26 16:06:29 +08:00
Mofei Zhang
8b3d6aa3c5
Enhancement: multiple enhancements and fixes
Enhancement: validate user policy when mount volume.
Enhancement: when an object node loads a volume, different volumes do not block each other.
Enhancement: when checking policies, check user permissions before checking volume policies to reduce the overhead of loading volumes.
Enhancement: release connection pool when releasing meta wrapper resources.
Enhancement: the object node automatically releases the deleted volume.
Fix: response when deleting non-existing files using Object Storage
Interface.
Fix: url parameter parsing issue of signature algorithm V2.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-22 21:02:28 +08:00
Mofei Zhang
ddfd8b7c3f
Enhancement: improve error parsing for master APIs
Enhancement: improve error parsing for master APIs.
Fix: status code of DelteBucket ans DeleteObjects API.
Fix: url signature parsing of signature algorithm V2.
Add: s3tests framework for compatibility test.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-22 08:31:51 +08:00
Mofei Zhang
76bc8667af
Refactor: using cli instead of curl in CI scripts
Refactor: using cli instead of curl in CI scripts
Add: CLI command for CLI for adding more data partition to volume
Enhancement: optimize CLI output format

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-21 16:32:32 +08:00
Mofei Zhang
d609fedb5c feature: object storage interface
Add ObjectNode provides S3-compatibile APIs.
Fusion Storage interface expose two interface (POSIX and S3-compatible) for file operation.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2019-12-17 17:36:53 +08:00
wuwenjia5
df6ff2a328 feature: add authorization to master api getVol
Signed-off-by: wuwenjia5 <wuwenjia5@jd.com>
2019-12-02 22:17:20 -08:00
Shuoran Liu
ad20305923 feature: daemonize server
Start server as a daemon, so no need to use nohup.

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-08-26 16:05:01 +08:00