Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1638

Notification on Submission.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • 2.0.0
    • None

    Description

      What is this really supposed to do?

      There was some hacky code to set this URL

      // TODO: This should be outsourced somewhere more suitable than here
              if(JobManager.getInstance().getNotificationBaseUrl() == null) {
                String url = ctx.getRequest().getRequestURL().toString();
                JobManager.getInstance().setNotificationBaseUrl(
                  url.split("v1")[0] + "/v1/submission/notification/");
              }
      
      

      But all it did was return status

        private JsonBean handleNotification(RequestContext ctx, String sjid) {
          LOG.debug("Received notification request for job " + sjid);
          JobManager.getInstance().status(Long.parseLong(sjid));
          return JsonBean.EMPTY_BEAN;
        }
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vybs Veena Basavaraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: