Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2528

Format exception when fetching a full snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • Sentry
    • None

    Description

      When fetching a full snapshot we get the below error. This is a regression of SENTRY-2301

      2019-07-07 23:07:39,677 ERROR org.apache.sentry.service.thrift.SentryHMSClient: Snapshot created failed
      java.util.IllegalFormatConversionException: f != java.lang.Long
              at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
              at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2806)
              at java.util.Formatter$FormatSpecifier.print(Formatter.java:2753)
              at java.util.Formatter.format(Formatter.java:2520)
              at java.util.Formatter.format(Formatter.java:2455)
              at java.lang.String.format(String.java:2940)
              at org.apache.sentry.service.thrift.FullUpdateInitializer.getFullHMSSnapshot(FullUpdateInitializer.java:552)
              at org.apache.sentry.service.thrift.SentryHMSClient.fetchFullUpdate(SentryHMSClient.java:244)
              at org.apache.sentry.service.thrift.SentryHMSClient.getFullSnapshot(SentryHMSClient.java:147)
              at org.apache.sentry.provider.db.service.persistent.HMSFollower.createFullSnapshot(HMSFollower.java:409)
              at org.apache.sentry.provider.db.service.persistent.HMSFollower.syncupWithHms(HMSFollower.java:237)
              at org.apache.sentry.provider.db.service.persistent.HMSFollower.run(HMSFollower.java:198)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        1. SENTRY-2528.01.patch
          2 kB
          Arjun Mishra

        Issue Links

          Activity

            People

              arjunmishra13 Arjun Mishra
              arjunmishra13 Arjun Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: