Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3425

Len property not honored when using JPA

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.3.0
    • None
    • core
    • None

    Description

      When using the oozie cli, the '-len' parameter is ignored when using JPA. 20 entries are always returned. It is possible to see more than the first 20 jobs returned using the '-offset' parameter:

      oozie jobs 
      oozie jobs -len 1000 
      oozie jobs -len 50 

      all return the same 20 jobs. However, it will limit the jobs if -len is less than 20. It appears some sort of pagination is happening without respecting len. 

      However, the customer can workaround this issue to see the jobs from the Oozie CLI by specifying an offset: 
      oozie jobs -offset 21 
      oozie jobs -offset 41... etc.

       

      It looks like there is some hardcoded '20' values in the code: https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/executor/jpa/BulkJPAExecutor.java#L259 which might affect this.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zyork Zach York

            Dates

              Created:
              Updated:

              Slack

                Issue deployment