Search index network error conversion is too specific

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      getSearchIndexManagerResponse converts HostUnreachable errors it receives from TaskExecutor into more generic errors to obfuscate the mongot's host and port. This is too specific though, since TaskExecutor could return a number of different network errors. This should instead catch any error that is in the NetworkError category.

      e.g.

      catch (const ExceptionFor<ErrorCategory::NetworkError>& e) { }
      

      https://github.com/mongodb/mongo/blob/e204c648682f23e15c2a44218615fc2074f04fd2/src/mongo/db/query/search/search_index_common.cpp#L163-L167

            Assignee:
            Mariano Shaar
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: