Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-4257

PuppetDB skips message files with LONGNAME_HASH

    Details

    • Template:
    • Team:
      PuppetDB
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Previously PuppetDB was unable to process commands that were submitted with certnames containing characters like backslash, forward slash, colon, underscore, null, etc. or were "too long" (e.g. 200+ UTF-8 bytes), but only if PuppetDB was restarted after the commands were submitted and before they were processed. Now PuppetDB should handle those commands correctly.
      Show
      Previously PuppetDB was unable to process commands that were submitted with certnames containing characters like backslash, forward slash, colon, underscore, null, etc. or were "too long" (e.g. 200+ UTF-8 bytes), but only if PuppetDB was restarted after the commands were submitted and before they were processed. Now PuppetDB should handle those commands correctly.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Given: https://puppet.com/docs/puppetdb/5.2/pdb_support_guide.html#message-queue

      > Note that the certname may be altered to accommodate filesystem restrictions. Currently that means replacing the characters “/”, “:”, “", and 0 with “-“, and truncating the certname so that it’s UTF-8 encoding never exceeds about 255 characters. A truncated certname will be followed by an underscore and a hash of the full certname.

      PuppetDB is failing to process messages with a hashed certname in the filename with a Command has disappeared error. For example:

      2019-01-25T17:48:41.687Z ERROR [p.p.queue] Command has disappeared: #puppetlabs.stockpile.queue.MetaEntry{:id 78342822, :metadata "1548132638857_report_8_sensu-server-i-03f0ac940c00b0a97.redactedxx.xxx.xxxxxxxxxxx.xxxxxxx-711bfaa65d298e501ef503231bc4e54b0739c167_1958dee5369fb75326e4b32d8876ceaf51c25d22.json"}
      

      They remain in the queue.

      Renaming the file, removing the hash, allows the message to be processed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rob.browning Rob Browning
                Reporter:
                tom.kishel Thomas Kishel
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support