szetszwo commented on PR #1438: URL: https://github.com/apache/ratis/pull/1438#issuecomment-4298736115
> Currently, if the server is not a leader, it will throw NotLeaderException ... > ... we should use staleRead instead. @ivandika3 , Tried to set a special minIndex (e.g. Long.MAX_VALUE/MIN_VALUE) to staleRead but it became an incompatible change since users might also use it. Then, found that watch request passed a null message and users could not set it. So, we may send a watch request with a "DUMMY" message. The server can check and return immediately with checking leader. LinearizableReadTests can pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
