Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1037

Combining filter and limit in _changes requests produce strange results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.1, 1.2
    • None
    • Distribution: CRUX-2.7, linux 2.6.37, x86, smp
      CouchDB 1.0.1, icu 4.2.1, spidermonkey 1.7.0, erlang R14A all build from ports (sources), gcc 4.5.2, glibc 2.12.2

    • Committers Level (Medium to Hard)

    Description

      To reproduce the problem:
      create some doc and filter function with doc_type=="test" criteria (total: 2 docs)
      create some more docs with

      {"doc_type":"test"}

      to match filtering
      inspect the whole _changes
      make sure filter function works
      make sure limit works
      combine them:
      _changes/limit=1&filter=testdocs/testdocsonly - gives empty "results". I guess this should not happen.
      _changes/limit=2&filter=testdocs/testdocsonly - works as expected

      actual bash script to test it easily and log output attached.

      Attachments

        1. _changes_gilter_limit.log
          2 kB
          Mikhail Kolesnik
        2. _changes_filter_limit.sh
          0.9 kB
          Mikhail Kolesnik

        Activity

          People

            fdmanana Filipe David Borba Manana
            fake_mike_k Mikhail Kolesnik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: