mirror of
https://github.com/minio/minio.git
synced 2025-11-13 15:21:36 -05:00
distributed-XL: Support to run one minio process per export even on the same machine. (#2999)
fixes #2983
This commit is contained in:
committed by
Harshavardhana
parent
41f9ab1c69
commit
32c3a558e9
@@ -24,8 +24,6 @@ import (
|
||||
"net"
|
||||
"net/rpc"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -144,14 +142,14 @@ type TestRPCStorageSuite struct {
|
||||
// Starting the Test server with temporary FS backend.
|
||||
func (s *TestRPCStorageSuite) SetUpSuite(c *testing.T) {
|
||||
s.testServer = StartTestStorageRPCServer(c, s.serverType, 1)
|
||||
splitAddrs := strings.Split(s.testServer.Server.Listener.Addr().String(), ":")
|
||||
var err error
|
||||
globalMinioPort, err = strconv.Atoi(splitAddrs[1])
|
||||
if err != nil {
|
||||
c.Fatalf("Unable to convert %s to its integer representation, %s", splitAddrs[1], err)
|
||||
}
|
||||
listenAddress := s.testServer.Server.Listener.Addr().String()
|
||||
|
||||
for _, disk := range s.testServer.Disks {
|
||||
storageDisk, err := newRPCClient(splitAddrs[0] + ":" + disk)
|
||||
remoteEndPoint, err := parseStorageEndPoint(listenAddress+":"+disk.path, 0)
|
||||
if err != nil {
|
||||
c.Fatalf("Unexpected error %s", err)
|
||||
}
|
||||
storageDisk, err := newRPCClient(remoteEndPoint)
|
||||
if err != nil {
|
||||
c.Fatal("Unable to initialize RPC client", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user