Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i "mkdir /dfs/buckets/newbucket", remote s3 will create many "newbucket-xxxx" buckets. #2492

Closed
imfantuan opened this issue Dec 5, 2021 · 1 comment

Comments

@imfantuan
Copy link
Contributor

imfantuan commented Dec 5, 2021

System setup

Same as: #2465

Info:

/fastdfs : Mount of "Local Weed"
/dfs: Mount of "Remote Weed"

Describe the bug

When:

mkdir /fastdfs/buckets/newbucket/ (On Local Server)

I got ❌:

ll /dfs/buckets/ (On Remote Server)

drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-1317
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-1521
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-2486
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-2595
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-2863
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-3108
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-3293
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-4312
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-4410
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-5927
drwxrwxrwx 1 root root 0 Dec  5 23:40 'newbucket- 633'
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-8048
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-8791
drwxrwxrwx 1 root root 0 Dec  5 23:40  newbucket-9973

Expected behavior

When:

mkdir /fastdfs/buckets/newbucket/ (On Local Server)

I want ✅:

ll /dfs/buckets/ (On Remote Server)

drwxr-xr-x 1 root root 0 Dec  5 23:40 newbucket

Some logs

I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-2595
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-3108
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-1317
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-4410
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-2863
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-9973
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket- 633
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-1521
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-3293
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-2486
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-8048
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-8791
I1205 23:40:10 15824 filer_remote_gateway_buckets.go:97] create bucket newbucket-5927
@imfantuan
Copy link
Contributor Author

-createBucketWithRandomSuffix can fix this.

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

No branches or pull requests

1 participant