Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-429

Falcon CLI entity list command throws NPE stack trace in case of no entities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • None
    • None

    Description

      When 'falcon entity -list' command is run in a cluster that doesn't have any entity of a particular type, it throws following stack trace:

      satish@dev2:~/install/falcon-prism$ bin/falcon entity -type process -list
      java.lang.NullPointerException
      	at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:350)
      	at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:169)
      	at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:119)
      null
      

      Typically this error will show up in an empty cluster where entities of a type are yet to be submitted.

      Attachments

        1. FALCON-429.patch.txt
          1 kB
          Satish Mittal
        2. FALCON-429.patch.1.txt
          1 kB
          Satish Mittal

        Activity

          People

            satish.mittal Satish Mittal
            satish.mittal Satish Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: