Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2649

Update config validation check to give better information

    XMLWordPrintableJSON

    Details

      Description

      As part of submitting a topology we need to serialize the config as JSON. The check right now is rather bad. it just calls Utils.isValidConf and throws some generic Exception about problems.

      https://github.com/apache/storm/blob/master/storm-client/src/jvm/org/apache/storm/utils/Utils.java#L978-L980

      It would be much better to have a new function/method that would check if they are equal and if not it would walk through them looking for which configs are different when it finds one it includes which configs and how they are different in the exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ghajos Gergely Hajós
                Reporter:
                revans2 Robert Joseph Evans
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m