Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19151

[FTS] Bleve prefix query on a string-ified numeral yields 0 results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 4.5.0
    • 4.5.0
    • cbft
    • None
    • Untriaged
    • No

    Description

      Build
      4.5.0-2047, 4.5.0-2083

      Testcase
      ./testrunner -i INI_FILE.ini -p get-cbcollect-info=True,get-logs=False,stop-on-failure=False,compare_es=True,cluster=D+F,GROUP=P1,skip-cleanup=True -t fts.stable_topology_fts.StableTopFTS.test_query_type,items=30000,num_queries=100,query_types=prefix,cluster=D+F,compare_es=True,dataset=wiki,GROUP=P1

      Consistently reproducible.

      Many queries like the following fail -

      2016-04-11 12:46:33 | INFO | MainProcess | Cluster_Thread | [task.execute] ------------------------------------------------------------------ Query # 13 -----------------------------------------------------------------
      2016-04-11 12:46:33 | INFO | MainProcess | Cluster_Thread | [fts_base.run_fts_query] Running query {"from": 0, "indexName": "default_index", "fields": [], "explain": false, "ctl": {"timeout": 60000, "consistency": {"vectors": {}, "level": ""}}, "query": {"field": "revision.contributor.id", "prefix": "104"}, "size": 10000000} on node: 172.23.106.139
      2016-04-11 12:46:33 | INFO | MainProcess | Cluster_Thread | [rest_client.run_fts_query] Status: {u'successful': 32, u'failed': 0, u'total': 32}
      2016-04-11 12:46:33 | INFO | MainProcess | Cluster_Thread | [task.execute] FTS hits for query: {"field": "revision.contributor.id", "prefix": "104"} is 0 (took 7.700856ms)
      2016-04-11 12:46:34 | INFO | MainProcess | Cluster_Thread | [task.execute] ES hits for query: {"prefix": {"revision.contributor.id": "104"}} on es_index is 261 (took 22ms)
      2016-04-11 12:46:34 | ERROR | MainProcess | Cluster_Thread | [task.execute] FAIL: FTS hits: 0, while ES hits: 261
      2016-04-11 12:46:34 | ERROR | MainProcess | Cluster_Thread | [task.execute] FAIL: Following 261 docs were not returned by FTS, but ES, printing 50: [u'wiki10007551', u'wiki10013875', u'wiki10012012', u'wiki10007556', u'wiki10024640', u'wiki10018227', u'wiki10010363', u'wiki10023588', u'wiki10000521', u'wiki10024241', u'wiki10028228', u'wiki10001534', u'wiki10008361', u'wiki10009171', u'wiki10013849', u'wiki10021016', u'wiki10028409', u'wiki10004214', u'wiki10029787', u'wiki10023386', u'wiki10002717', u'wiki10028675', u'wiki10008850', u'wiki10000086', u'wiki10007818', u'wiki10023979', u'wiki10029602', u'wiki10015923', u'wiki10014493', u'wiki10029607', u'wiki10025638', u'wiki10017423', u'wiki10016365', u'wiki10008070', u'wiki10015942', u'wiki10005408', u'wiki10006769', u'wiki10023451', u'wiki10015510', u'wiki10013648', u'wiki10022452', u'wiki10001932', u'wiki10000537', u'wiki10025322', u'wiki10008276', u'wiki10008270', u'wiki10028185', u'wiki10016886', u'wiki10003434', u'wiki10025077']
      

      Sampling a doc -

      {
      _index: "es_index",
      _type: "wiki",
      _id: "wiki10007551",
      _version: 5,
      found: true,
      _source: {
      mutated: 0,
      title: "Saint Anna",
      type: "wiki",
      id: "14410",
      revision: {
      comment: "robot Adding: [[id:Santa Anna]]",
      timestamp: "2010-05-27T17:28:19Z",
      text: {
      @xml:space: "preserve",
      #text: "'''Saint Anna''' is the grandmother of [[Jesus]]. Saint Anna gave birth to the [[Virgin Mary]], and Mary grew up and gave birth to Jesus. Saint Anna's husband is [[Saint Joachim]], who is Mary's father. Saint Anna died at the age of 79 while her husband died at age 80. Her name Anna is interperating of a Hebrew name Hanna. Joachim went to the temple to pray and wasn't admitted in because of his childlessness. Joachim ran away. Anna heard and prayed and sacrificed like mad. She promised she would bring the child up in God's name. An angel came to Anna and told her that God would grant her a baby. The angel went to Joachim too and told him the same thing. Joachim came home. Anna had the baby soon after. She named the girl Mary. Anna continued to keep her promise. When Mary was about three years old, Joachim and Anna brought her up in The Second Temple. The name Anna means grace, joy, or favor. Saint Anna was hung because of her beliefs she hid a priest and held masses in her own house but eventually was arrested and hung {{stub}} [[Category:Saints|Anna]] [[be-x-old:Сьвятая Ганна]] [[bg:Света Анна]] [[ca:Santa Anna]] [[cs:Svatá Anna]] [[da:Sankt Anna]] [[de:Anna (Heilige)]] [[et:Anna]] [[el:Αγία Άννα]] [[en:Saint Anne]] [[es:Ana (madre de María)]] [[eo:Sankta Anna]] [[fr:Anne (protévangile)]] [[fy:Anna (hillige)]] [[gl:Ana, nai de María]] [[hr:Sveti Joakim i Ana]] [[id:Santa Anna]] [[it:Anna e Gioacchino]] [[he:אנה הקדושה]] [[ka:წმინდა ანა]] [[lv:Svētā Anna]] [[li:Anna]] [[ln:Santu Anna]] [[hu:Szent Anna]] [[nl:Anna (heilige)]] [[ja:アンナ (マリアの母)]] [[no:Anna av Jerusalem]] [[nrm:Âone]] [[pl:Święta Anna]] [[pt:Santa Ana]] [[ro:Sfânta Ana]] [[ru:Святая Анна]] [[sk:Svätá Anna]] [[sl:Sveta Ana]] [[sr:Света Ана]] [[fi:Pyhä Anna]] [[sv:Anna, Marias moder]] [[th:นักบุญแอนน์]] [[uk:Свята Анна]] [[vec:Santi Ana e Joachin]]"
      },
      contributor: {
      username: "GrouchoBot",
      id: "104199"
      },
      id: "2221293",
      minor: null
      }
      }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            apiravi Aruna Piravi (Inactive)
            apiravi Aruna Piravi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty