Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4030

ResourceStore deleteResource by comparing timestamp may be failed to delete caused by time precision loose

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v2.6.3
    • None
    • None

    Description

      In ResourceStore, the interface deleteResourceImpl(String resPath, long timestamp) maybe failed to delete the resource because the resource timestamp may lose the precision.

      For example, if we use $KYLIN_HOME/bin/metastore.sh to backup from metastore to Local OS filesystem, and restore from local filesystem to metastore. The resource timestamp will lose precision in Millis Second.

      An example here:
      original timestamp: 1559564381
      after precision lost: 1559564000

      The fix design is to tolerate [0-999] ms difference when comparing the timestamp

      Attachments

        Issue Links

          Activity

            People

              PENG Zhengshuai PENG Zhengshuai
              PENG Zhengshuai PENG Zhengshuai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: