-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix panic on empty findTraces query #3232
Conversation
Signed-off-by: Alex <alexmkuznicki@gmail.com>
… fix-SIGSEGV-2996
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just two very minor improvements.
Codecov Report
@@ Coverage Diff @@
## master #3232 +/- ##
==========================================
- Coverage 95.99% 95.99% -0.01%
==========================================
Files 242 242
Lines 14789 14813 +24
==========================================
+ Hits 14197 14219 +22
- Misses 513 515 +2
Partials 79 79
Continue to review full report at Codecov.
|
@akuzni2, do you think you can improve the test coverage of this PR? |
Signed-off-by: Alex <alexmkuznicki@gmail.com>
…into fix-SIGSEGV-2996 � Conflicts: � cmd/query/app/grpc_handler_test.go
@jpkrohling - Thanks for reviewing! updated tests to meet code cov for the file which was changed Not sure why the Codecov report is showing my changes impacted the other files |
Signed-off-by: Alex <alexmkuznicki@gmail.com>
Which problem is this PR solving?
Closes #2996
Short description of the changes
Added validation checks to the gRPC server handler methods that implement the QueryServiceClient interface.
Couple of notes:
nil
- however the client looks like it panics before it reaches the server. Is there a way I can write a unit test for this functionality? As I understand it perhaps not all clients generated in other languages python, java, javascript etc... would fail before sending request to the server.GetServices
service method: the request parameterr *api_v2.GetServicesRequest
not used so I didn't add any validation for it.Questions for the following service methods
GetOperations
GetOperationsRequest
parameters are Service and Span which are typeString
. Not sure what the behavior should be if they are""
. Is it possible that these are valid arguments?