Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2468 Sqoop2: Make REST interface more resilient to various malformed inputs
  3. SQOOP-2546

Sqoop2: RESTiliency: Unify behavior on getting details on non-existing connector

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.7
    • None
    • None

    Description

      Here is test code that is testing our behavior on non existing connector:

          new TestDescription("Get connector by non-existing ID", "v1/connector/666", "GET", null, new Validator() {
            @Override
            void validate() throws Exception {
              assertResponseCode(500);
              assertServerException("org.apache.sqoop.error.code.CommonRepositoryError", "COMMON_0057");
            }}),
          new TestDescription("Get connector by non-existing name", "v1/connector/jarcecs-cool-connector", "GET", null, new Validator() {
            @Override
            void validate() throws Exception {
              assertResponseCode(500);
              assertServerException("org.apache.sqoop.server.common.ServerError", "SERVER_0005");
            }}),
      

      Depending whether one asks for non-existing connector ID or non-existing connector name, he gets different answer. That seems really weird for single REST end point and I think that we should fix that.

      Attachments

        1. SQOOP-2546.001.patch
          4 kB
          Colin

        Issue Links

          Activity

            People

              colin Colin
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: