Probably because I didn't describe the problem clearly.Below are my questions
Notice:
1.All the following operations use the HTTP protocol
2.We disable read access from anonymous user on all projects
3.We have two Gerrit servers, one primary and one replica:
primary ip: 82.157.232.50
replica ip: 101.42.251.175
4.primary gerrit.config
What experiment did i do?
1. Execute git clone[1] from primary server
Cloning into 'sync_repo'...
remote: Counting objects: 26, done
remote: Finding sources: 100% (26/26)
remote: Total 26 (delta 5), reused 24 (delta 5)
Receiving objects: 100% (26/26), 2.26 KiB | 2.26 MiB/s, done.
Resolving deltas: 100% (5/5), done.
2. Execute git clone[2] from primary server
Cloning into 'sync_repo'...
warning: You appear to have cloned an empty repository.
3. Execute git clone[3] from replica server
Cloning into 'sync_repo'...
warning: You appear to have cloned an empty repository.
4. Execute git clone[4] from replica server
Cloning into 'sync_repo'...
warning: You appear to have cloned an empty repository.
What is the expected output?
When doing git clone [3], I am able to clone the full repository and require a username and password for Gerrit authentication
What do you see instead?
Cloning into 'sync_repo'...
warning: You appear to have cloned an empty repository.
Clone an empty repository, and no username, password authentication appears
You can try to execute the command [1][2][3][4]