Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logging for dns resolution error in the Query component as well #2525

Merged
merged 9 commits into from
May 18, 2020
Merged

Added logging for dns resolution error in the Query component as well #2525

merged 9 commits into from
May 18, 2020

Commits on May 18, 2020

  1. Added logging for dns resolution error in the Query component as well

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Nitpicking
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    More nitpicking
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Removed the errorlist from lock scope for faster access
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Added tsdb.MultiError for error handling
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Fixed some import issues
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Fixed linting
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Changelog
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Linting issues
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    More linting issues
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    fixed import error
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Reverted some changes
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Added some more error checks
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Fixed some failing tests
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Linting
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Removed extra error param for logging
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Changelog modification
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Fixed unused variable
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Logged failed dns resolution in the memcached_client
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Changed the errorList to errs
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Changed concrete error type to primitive one
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Added logging of dns resolution failure in `http.go`
    Changed the error message in the `memcached_client.go`
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Removed logging of errors in . Now it would return error list, which is to be handled by the receiver
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Removed Err() method
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Fixed import errors
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Removed extra variables
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Linting
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Check to ensure that return error if list of error is non-empty
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    Modified tests of provider_test.go
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    
    more checks
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    ba8644e View commit details
    Browse the repository at this point in the history
  2. Remove print statement

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    e4c7880 View commit details
    Browse the repository at this point in the history
  3. Instead of logging the error and then returning it, just return the e…

    …rror
    
    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    3993d8b View commit details
    Browse the repository at this point in the history
  4. Error check for resolve method in rule.go

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    a931f9d View commit details
    Browse the repository at this point in the history
  5. Added more useful error message

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    4c5d4b1 View commit details
    Browse the repository at this point in the history
  6. Modified errs.Err() so that it returns error if found else returns nil

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    41eed65 View commit details
    Browse the repository at this point in the history
  7. Linting

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    288b80f View commit details
    Browse the repository at this point in the history
  8. Added missing imports

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    72c5b92 View commit details
    Browse the repository at this point in the history
  9. Fixed some changelog issues

    Signed-off-by: Yash <yashrsharma44@gmail.com>
    yashrsharma44 committed May 18, 2020
    Configuration menu
    Copy the full SHA
    53fbd38 View commit details
    Browse the repository at this point in the history