Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for remotePeer (0.12 sec)

  1. cmd/notification.go

    		}
    	}
    	return reply
    }
    
    func (sys *NotificationSys) addNodeErr(nodeInfo madmin.NodeInfo, peerClient *peerRESTClient, err error) {
    	addr := peerClient.host.String()
    	reqInfo := (&logger.ReqInfo{}).AppendTags("remotePeer", addr)
    	ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    	peersLogOnceIf(ctx, err, "add-node-err-"+addr)
    	nodeInfo.SetAddr(addr)
    	nodeInfo.SetError(err.Error())
    }
    
    // GetSysErrors - Memory information
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    	errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("1: server payload: ", len(payload), "bytes.")
    		return append([]byte{}, payload...), nil
    	}))
    	// 2: Return as error
    	errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("2: server payload: ", len(payload), "bytes.")
    		err := RemoteErr(payload)
    		return nil, &err
    	}))
    
    	remote := grid.Managers[1]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  3. internal/grid/handlers.go

    func NewRemoteErrString(msg string) *RemoteErr {
    	r := RemoteErr(msg)
    	return &r
    }
    
    func (r RemoteErr) Error() string {
    	return string(r)
    }
    
    // Is returns if the string representation matches.
    func (r *RemoteErr) Is(other error) bool {
    	if r == nil || other == nil {
    		return r == other
    	}
    	var o RemoteErr
    	if errors.As(other, &o) {
    		return r == &o
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. cmd/storage-rest-server.go

    	defer p.Recycle()
    	return s.RenameDataHandler(&p.RenameDataHandlerParams)
    }
    
    // RenameFileHandler - rename a file from source to destination
    func (s *storageRESTServer) RenameFileHandler(p *RenameFileHandlerParams) (grid.NoPayload, *grid.RemoteErr) {
    	if !s.checkID(p.DiskID) {
    		return grid.NewNPErr(errDiskNotFound)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  5. internal/grid/benchmark_test.go

    		// Register a single handler which echos the payload.
    		errFatal(remote.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    			defer PutByteBuffer(payload)
    			return append(GetByteBuffer()[:0], payload...), nil
    		}))
    		errFatal(rpc.Register(remote, func(req *testRequest) (resp *testResponse, err *RemoteErr) {
    			return &testResponse{
    				OrgNum:    req.Num,
    				OrgString: req.String,
    				Embedded:  *req,
    			}, nil
    		}))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. cmd/endpoint_test.go

    			if err := zendpoints[0].Endpoints.UpdateIsLocal(); err != nil {
    				t.Errorf("error: expected = <nil>, got = %v", err)
    			}
    		}
    		remotePeers, local := zendpoints.peers()
    		if !reflect.DeepEqual(remotePeers, testCase.expectedResult) {
    			t.Errorf("expected: %v, got: %v", testCase.expectedResult, remotePeers)
    		}
    		if local != testCase.expectedLocal {
    			t.Errorf("expected: %v, got: %v", testCase.expectedLocal, local)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    	if v, ok := c.outgoing.Load(m.MuxID); ok {
    		var cErr muxConnectError
    		_, err := cErr.UnmarshalMsg(m.Payload)
    		gridLogIf(ctx, err)
    		v.error(RemoteErr(cErr.Error))
    		return
    	}
    	PutByteBuffer(m.Payload)
    }
    
    func (c *Connection) handleAckMux(ctx context.Context, m message) {
    	PutByteBuffer(m.Payload)
    	v, ok := c.outgoing.Load(m.MuxID)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. cmd/metacache-walk.go

    }
    
    // WalkDirHandler - remote caller to list files and folders in a requested directory path.
    func (s *storageRESTServer) WalkDirHandler(ctx context.Context, payload []byte, _ <-chan []byte, out chan<- []byte) (gerr *grid.RemoteErr) {
    	var opts WalkDirOptions
    	_, err := opts.UnmarshalMsg(payload)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    
    	if !s.checkID(opts.DiskID) {
    		return grid.NewRemoteErr(errDiskNotFound)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. internal/grid/muxclient.go

    	ok := m.addResponse(r)
    	if !ok {
    		PutByteBuffer(r.Msg)
    	}
    }
    
    var errStreamEOF = errors.New("stream EOF")
    
    // error is a message from the server to disconnect.
    func (m *muxClient) error(err RemoteErr) {
    	if debugPrint {
    		fmt.Printf("mux %d: got remote err:%v\n", m.MuxID, string(err))
    	}
    	m.addResponse(Response{Err: &err})
    }
    
    func (m *muxClient) ack(seq uint32) {
    	if !m.checkSeq(seq) {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top