Skip to content

call Probe error due to timeout setting is too short #67

@wnxn

Description

@wnxn

Hi,

  1. I develop a CSI driver and implement Probe call. The Probe call verifies driver status and takes about 2 seconds. The external attacher prints calling Probe RPC timeout log (Probe failed with rpc error: code = DeadlineExceeded desc = context deadline exceeded). In my opinion, when external attacher calling Probe, the timeout setting is too short (only one second). We can increase timeout second.
    ctx, cancel := context.WithTimeout(context.Background(), csiTimeout)
  2. We would not share the same context object in several GRPC call.
    csiConn, err := connection.New(*csiAddress, *connectionTimeout)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions