Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-121

Database Expiration program tries to delete table partition which is less than 0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Processors
    • Labels:
      None
    • Environment:

      Redhat EL 5.1, Java 6

      Description

      DataExpiration script calculate and attempt to drop the partition which is two time partition in the past. However, there is a bug, let's say if the current century partition is 0, and the expiration script will attempt to remove -1_century partition. The program should detect negative partition number and stop data expiration if the partition number is less than 0.

        Activity

        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Cheng.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Cheng.
        Hide
        zhangyongjiang Cheng added a comment -

        +1 Looks good.

        Show
        zhangyongjiang Cheng added a comment - +1 Looks good.
        Hide
        eyang Eric Yang added a comment -

        Check for partition number, if it is less than 0, do not create partition.

        Show
        eyang Eric Yang added a comment - Check for partition number, if it is less than 0, do not create partition.

          People

          • Assignee:
            eyang Eric Yang
            Reporter:
            eyang Eric Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development