Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-811

Memcached unknown command causes a lost line in command pipeline

XMLWordPrintable

    • Low

      From Michal:

      "memcached server consumes one more line of input than it has to when unknown command occurs.

      input:
      "bogus\r\ndelete a\r\n"
      expected output:
      ERROR
      NOT_FOUND
      actual output:
      ERROR

      input:
      "bogus\r\ndelete a\r\ndelete a\r\n"
      expected output:
      ERROR
      NOT_FOUND
      NOT_FOUND
      actual output:
      ERROR
      NOT_FOUND

      input: "bogus \r\ndelete a\r\ndelete a\r" (space after bogus) behaves as expected

      check MemcachedDecoder.scala, line 45
      readLine consumes next line even when it was already done by readElement"

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: