Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9417

ZRANGE Behavior After Deletion of Key Inconsistent With Redis

    XMLWordPrintableJSON

    Details

      Description

      After deleting a SortedSet the behavior for ZRANGE differs from native Redis.

       

      Reproduction Steps:

      Add some data to a SortedSet:

      • ZADD leaderboard 1 "one"
      • ZADD leaderboard 2 "two"

      Delete the SortedSet with the key "leaderboard":

      • DEL leaderboard

      Now perform a ZRANGE command on the deleted key

      ZRANGE leaderboard 0 10

       

      Native Redis returns "(empty array)" where as we return "

      "(error) ERR The server had an internal error please try again".

       

      The same behavior occurs even if the SortedSet never existed.  For example:

      ZRANGE nonexistent 0 10 will also result in 

      "(error) ERR The server had an internal error please try again".

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                donalevans Donal Evans
                Reporter:
                wmilsted_vm Wayne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: