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

[FTS] expvars broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.0
    • 4.5.0
    • cbft
    • None
    • Untriaged
    • Unknown

    Description

      Accessing expvars (/debug/vars) does not return valid JSON:

      {
      "bleve": {"bootDuration": 29621, "indexes": %!v(PANIC=runtime error: invalid memory address or nil pointer dereference)},
      "cmdline": ["/Users/mschoch/Documents/research/cbsource/install/bin/cbft","-cfg=metakv","-uuid=b5df5bd3a5e53a1121e32d4387a91e38","-server=http://127.0.0.1:9000","-bindHttp=192.168.1.111:9200,0.0.0.0:9200","-dataDir=/Users/mschoch/Documents/research/cbsource/ns_server/data/n_0/data/@fts","-tags=feed,janitor,pindex,queryer,cbauth_service","-auth=cbauth","-extra=192.168.1.111:9000","-options=startCheckServer=skip,slowQueryLogTimeout=5s,defaultMaxPartitionsPerPIndex=32,bleveMaxResultWindow=10000,failoverAssignAllPrimaries=false,hideUI=true,cbaudit=true,ftsMemoryQuota=524288000"],
      "memstats": {"Alloc":800849720,"TotalAlloc":81721661664,"Sys":1907315432,"Lookups":1036,"Mallocs":1505660343,"Frees":1498633315,"HeapAlloc":800849720,"HeapSys":1780809728,"HeapIdle":713949184,"HeapInuse":1066860544,"HeapReleased":8749056,"HeapObjects":7027028,"StackInuse":1441792,"StackSys":1441792,"MSpanInuse":11649480,"MSpanSys":14581760,"MCacheInuse":4800,"MCacheSys":16384,"BuckHashSys":1784502,"GCSys":104146944,"OtherSys":4534322,"NextGC":1442643493,"LastGC":1461116769831769091,"PauseTotalNs":8167701413,"PauseNs":[185448,119116,169090,113952,162305,238128,121920,1268416,313627,506006,6297759,530049,336635,134401,119199,196604,103144,133716,145990,224986,184644,105050,284243,190070,143455,649964,372842,117626,177866,431710,122834,1446160,120558,160955,129786,163268,427767,1019772,134746,115325,161436,148679,318067,273900,196531,728462,221218,193466,168897,641352,134115,527327,296330,125959,104588,104500,3882049,152287,85555,124684,218886,302780,112681,3163457,447422,205556,588638,178404,169177,224051,553168,861463,2163205,304107,200850,377067,396136,13456678,818045,3215927,708206,11572429,26125850,1680595,382499,15374881,56556278,43392378,327784,10228926,428689,27665995,547293,650494,22945465,45559783,746945,3247385,2818334,11768169,763980,19735825,696315,272316,476483,16186334,794790,74177852,126068091,1132508,4306961,40975502,20139081,29915922,800820,400140,1320937,1720497,802634,34672319,1193327,93180954,10882788,613512,4435426,120237639,482439,780055,29259469,826871,122820800,138273803,144541658,4345857,375507,52646853,37957590,129635195,2201826,180099518,705525,141031816,49482036,201633167,3403370,110322654,181076761,565459,19352577,402972,2781986,398565,1010980,439833,1337723,192268954,316191627,2023775,1377245,909570,81890098,1021139,61176589,1535523,48608582,2005488,3934347,785973,97978754,378518,5067593,255428400,4905661,145863481,521278,10573799,217022627,3952836,193426767,2824516,124811936,1653041,1936047,747249,162970983,12220631,24860303,136973728,69113411,23629831,492956,250161525,5631832,4821289,2026252,249741422,1564390,13211782,9794012,644085,541780,8548684,145970435,46246045,108729432,79709932,179785190,55443442,588723,98138576,187284740,925983,277048590,112036546,165329892,2444979,1052958,51700519,57469975,156388402,1322455,141221543,287326598,2624194,75737769,100772269,903744,146513792,96987757,997293,640339,6155083,1529999,319613482,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"PauseEnd":[1461114365204611173,1461114365239357807,1461114365267554198,1461114365302973741,1461114365415529159,1461114365555137379,1461114365647197951,1461114365722544561,1461114365762763649,1461114365794007763,1461114366049486691,1461114366471759803,1461114366961581561,1461114367286848843,1461114367847425228,1461114368366501072,1461114368746320486,1461114369240825091,1461114369757731413,1461114370233453065,1461114370544065601,1461114370884880962,1461114371257549141,1461114371647002510,1461114372007191943,1461114372379366845,1461114372976470395,1461114373641905187,1461114373968882712,1461114374405839342,1461114374838041634,1461114375290343320,1461114376638402297,1461114376878601060,1461114377382906026,1461114378142977676,1461114378625663220,1461114379244159881,1461114379662170087,1461114380132194908,1461114380787970376,1461114381329481123,1461114381832448428,1461114382449108197,1461114382990722719,1461114383596560909,1461114384129458308,1461114385004846601,1461114385443923066,1461114397449600758,1461114399619846466,1461114399660554052,1461114408447807806,1461114419693372524,1461114419766590057,1461114419801700522,1461114434449237589,1461114439870523613,1461114439924600386,1461114439949390676,1461114459978222761,1461114460076335132,1461114460118545832,1461114468791599720,1461114475401003967,1461114475656023384,1461114475812552796,1461114477000904015,1461114477061009903,1461114477142688165,1461114477190203436,1461114477252718788,1461114477421189237,1461114477633313403,1461114478208414088,1461114479304318938,1461114479767435626,1461114480860662284,1461114482014184343,1461114482942277428,1461114484626931203,1461114485676794815,1461114488518286811,1461114491122423257,1461114492932972312,1461114497495388760,1461114500957429099,1461114505917594459,1461114510432758494,1461114514476528171,1461114519516233766,1461114525134164477,1461114530243646469,1461114536627823038,1461114543324992134,1461114550389154400,1461114557662039153,1461114562570084190,1461114569314597792,1461114580370117428,1461114592867078885,1461114600054321368,1461114609311028551,1461114615940255441,1461114623273616126,1461114634076749443,1461114640544522800,1461114646161773494,1461114656452075323,1461114665534925130,1461114672381571197,1461114681255472357,1461114691234498114,1461114701947254839,1461114711109652874,1461114723451577796,1461114733814964791,1461114744815084253,1461114756730652008,1461114766006402174,1461114775484562081,1461114783098060716,1461114789799101136,1461114799691940799,1461114808769243257,1461114817099804414,1461114825786174871,1461114836405376146,1461114843697135630,1461114855625879301,1461114865957527211,1461114878720944344,1461114893197736568,1461114905714085664,1461114918412581680,1461114930343840725,1461114943623730371,1461114957448039826,1461114968928170773,1461114983258405298,1461114991602707149,1461115003828598789,1461115017088334946,1461115030337693459,1461115042761106450,1461115053660028577,1461115062563233802,1461115076859459240,1461115088138240883,1461115101891623879,1461115117195870313,1461115129924920887,1461115144183704865,1461115155666886926,1461115167413870295,1461115178271116369,1461115189801973340,1461115201976822636,1461115217069002124,1461115229284213293,1461115237022016528,1461115245337998632,1461115254010447819,1461115267137386940,1461115284400841883,1461115302418759890,1461115320266819043,1461115331183488757,1461115350691599120,1461115370759410298,1461115391845012710,1461115405100286167,1461115417808092562,1461115435848264749,1461115466040669316,1461115481618851753,1461115498625675335,1461115512041849307,1461115521844643750,1461115540774642917,1461115557441294907,1461115573407661911,1461115589419722857,1461115603411671553,1461115619211036895,1461115642479735882,1461115658368927522,1461115680792639804,1461115697958520927,1461115714022495209,1461115730121740596,1461115749127477422,1461115763920573856,1461115778489440651,1461115796170588007,1461115815553763595,1461115839503481131,1461115865980707395,1461115890553679223,1461115919408465587,1461115949777121953,1461115961429679429,1461115971949432981,1461115984476636252,1461116003236989458,1461116019874469783,1461116037588095381,1461116050255242127,1461116070700649532,1461116095459473291,1461116116497554326,1461116142829923077,1461116193963028925,1461116211020049974,1461116228710009216,1461116260621446969,1461116294539062231,1461116311990350834,1461116328492452473,1461116345869126375,1461116407014110940,1461116427141460161,1461116444627379245,1461116460038113250,1461116491862744586,1461116539919992035,1461116556788378697,1461116571809181668,1461116592049397730,1461116617872128650,1461116658243312628,1461116682397324315,1461116733204437791,1461116769831769091,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"NumGC":234,"GCCPUFraction":0.07363641194406267,"EnableGC":true,"DebugGC":false,"BySize":[{"Size":0,"Mallocs":0,"Frees":0},{"Size":8,"Mallocs":70246902,"Frees":70097267},{"Size":16,"Mallocs":370194353,"Frees":368289227},{"Size":32,"Mallocs":179650911,"Frees":179358266},{"Size":48,"Mallocs":211442178,"Frees":208278500},{"Size":64,"Mallocs":241065464,"Frees":240745329},{"Size":80,"Mallocs":39479572,"Frees":39291127},{"Size":96,"Mallocs":66274908,"Frees":65390150},{"Size":112,"Mallocs":29498241,"Frees":29442983},{"Size":128,"Mallocs":4332939,"Frees":4325366},{"Size":144,"Mallocs":11402,"Frees":11249},{"Size":160,"Mallocs":63490,"Frees":63193},{"Size":176,"Mallocs":26205,"Frees":25806},{"Size":192,"Mallocs":1098134,"Frees":1096386},{"Size":208,"Mallocs":9793839,"Frees":9790874},{"Size":224,"Mallocs":8419,"Frees":8330},{"Size":240,"Mallocs":599311,"Frees":599015},{"Size":256,"Mallocs":673453,"Frees":667299},{"Size":288,"Mallocs":1402062,"Frees":1396645},{"Size":320,"Mallocs":386000,"Frees":385925},{"Size":352,"Mallocs":1144192,"Frees":1139582},{"Size":384,"Mallocs":34835,"Frees":34475},{"Size":416,"Mallocs":757389,"Frees":757290},{"Size":448,"Mallocs":45791,"Frees":45703},{"Size":480,"Mallocs":46903,"Frees":46842},{"Size":512,"Mallocs":411017,"Frees":387217},{"Size":576,"Mallocs":501563,"Frees":501180},{"Size":640,"Mallocs":57192,"Frees":57112},{"Size":704,"Mallocs":42646,"Frees":42540},{"Size":768,"Mallocs":1736,"Frees":1721},{"Size":896,"Mallocs":1802380,"Frees":1802330},{"Size":1024,"Mallocs":119598,"Frees":114853},{"Size":1152,"Mallocs":75094,"Frees":74794},{"Size":1280,"Mallocs":35530,"Frees":35332},{"Size":1408,"Mallocs":35153,"Frees":35014},{"Size":1536,"Mallocs":70122,"Frees":69852},{"Size":1664,"Mallocs":766331,"Frees":765910},{"Size":2048,"Mallocs":306823,"Frees":305843},{"Size":2304,"Mallocs":289998,"Frees":289165},{"Size":2560,"Mallocs":136485,"Frees":136070},{"Size":2816,"Mallocs":93587,"Frees":93305},{"Size":3072,"Mallocs":266782,"Frees":266038},{"Size":3328,"Mallocs":613132,"Frees":611044},{"Size":4096,"Mallocs":97030,"Frees":96686},{"Size":4608,"Mallocs":632,"Frees":628},{"Size":5376,"Mallocs":5142,"Frees":5065},{"Size":6144,"Mallocs":951,"Frees":941},{"Size":6400,"Mallocs":209,"Frees":209},{"Size":6656,"Mallocs":11311,"Frees":11253},{"Size":6912,"Mallocs":16,"Frees":16},{"Size":8192,"Mallocs":3978,"Frees":3959},{"Size":8448,"Mallocs":31901,"Frees":31786},{"Size":8704,"Mallocs":66,"Frees":65},{"Size":9472,"Mallocs":136,"Frees":135},{"Size":10496,"Mallocs":669,"Frees":656},{"Size":12288,"Mallocs":3623,"Frees":3612},{"Size":13568,"Mallocs":920,"Frees":902},{"Size":14080,"Mallocs":1,"Frees":1},{"Size":16384,"Mallocs":740,"Frees":736},{"Size":16640,"Mallocs":311,"Frees":30},{"Size":17664,"Mallocs":1214,"Frees":1209}]},
      "stats": {}
      }
      

      For some reason it contains:

       "indexes": %!v(PANIC=runtime error: invalid memory address or nil pointer dereference)}
      

      Attachments

        Activity

          People

            mschoch Marty Schoch [X] (Inactive)
            mschoch Marty Schoch [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty