File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ func (ls *LeaseServer) leaseKeepAlive(stream pb.Lease_LeaseKeepAliveServer) erro
92
92
return nil
93
93
}
94
94
if err != nil {
95
+ plog .Warningf ("failed to receive lease keepalive request from gRPC stream (%q)" , err .Error ())
95
96
return err
96
97
}
97
98
@@ -117,6 +118,7 @@ func (ls *LeaseServer) leaseKeepAlive(stream pb.Lease_LeaseKeepAliveServer) erro
117
118
resp .TTL = ttl
118
119
err = stream .Send (resp )
119
120
if err != nil {
121
+ plog .Warningf ("failed to send lease keepalive response to gRPC stream (%q)" , err .Error ())
120
122
return err
121
123
}
122
124
}
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ func (ws *watchServer) Watch(stream pb.Watch_WatchServer) (err error) {
141
141
// deadlock when calling sws.close().
142
142
go func () {
143
143
if rerr := sws .recvLoop (); rerr != nil {
144
+ plog .Warningf ("failed to receive watch request from gRPC stream (%q)" , rerr .Error ())
144
145
errc <- rerr
145
146
}
146
147
}()
@@ -337,6 +338,7 @@ func (sws *serverWatchStream) sendLoop() {
337
338
338
339
mvcc .ReportEventReceived (len (evs ))
339
340
if err := sws .gRPCStream .Send (wr ); err != nil {
341
+ plog .Warningf ("failed to send watch response to gRPC stream (%q)" , err .Error ())
340
342
return
341
343
}
342
344
@@ -353,6 +355,7 @@ func (sws *serverWatchStream) sendLoop() {
353
355
}
354
356
355
357
if err := sws .gRPCStream .Send (c ); err != nil {
358
+ plog .Warningf ("failed to send watch control response to gRPC stream (%q)" , err .Error ())
356
359
return
357
360
}
358
361
@@ -368,6 +371,7 @@ func (sws *serverWatchStream) sendLoop() {
368
371
for _ , v := range pending [wid ] {
369
372
mvcc .ReportEventReceived (len (v .Events ))
370
373
if err := sws .gRPCStream .Send (v ); err != nil {
374
+ plog .Warningf ("failed to send pending watch response to gRPC stream (%q)" , err .Error ())
371
375
return
372
376
}
373
377
}
You can’t perform that action at this time.
0 commit comments