Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.0.0
-
Ubuntu 16.04
-
Untriaged
-
Ubuntu 64-bit
-
1
-
No
-
Build Team 2017 week 35
Description
On Ubuntu 16.04, FTS service doesnt parse CBFT_ENV_OPTIONS env variable set in couchbase-server script. As a result, bleveMaxResultWindow is set to the default value 10000, and most queries will fail because of this.
This issue is not seen on Ubuntu 14.04 and other Linux flavors, its only seen on Ubuntu 16.04.
Here is how fts logs look like on Ubuntu 14.04:
2017-08-25T17:04:11.232-07:00 [INFO] main: /opt/couchbase/bin/cbft started (v0.5.0/5.0.0) |
2017-08-25T17:04:11.232-07:00 [INFO] -authType="cbauth" |
2017-08-25T17:04:11.232-07:00 [INFO] -bindHttp="127.0.0.1:8094,0.0.0.0:8094" |
2017-08-25T17:04:11.232-07:00 [INFO] -bindHttps=":18094" |
2017-08-25T17:04:11.232-07:00 [INFO] -cfgConnect="metakv" |
2017-08-25T17:04:11.232-07:00 [INFO] -container="" |
2017-08-25T17:04:11.232-07:00 [INFO] -dataDir="/opt/couchbase/var/lib/couchbase/data/@fts" |
2017-08-25T17:04:11.232-07:00 [INFO] -extras="127.0.0.1:8091" |
2017-08-25T17:04:11.232-07:00 [INFO] -help="false" |
2017-08-25T17:04:11.232-07:00 [INFO] -options="startCheckServer=skip,slowQueryLogTimeout=5s,defaultMaxPartitionsPerPIndex=171,bleveMaxResultWindow=10000,failoverAssignAllPrimaries=false,hideUI=true,cbaudit=true,ftsMemoryQuota=262144000,maxReplicasAllowed=3,bucketTypesAllowed=membase:ephemeral" |
2017-08-25T17:04:11.232-07:00 [INFO] -register="wanted" |
2017-08-25T17:04:11.232-07:00 [INFO] -server="http://127.0.0.1:8091" |
2017-08-25T17:04:11.232-07:00 [INFO] -staticDir="static" |
2017-08-25T17:04:11.232-07:00 [INFO] -staticETag="" |
2017-08-25T17:04:11.232-07:00 [INFO] -tags="feed,janitor,pindex,queryer,cbauth_service" |
2017-08-25T17:04:11.232-07:00 [INFO] -tlsCertFile="/opt/couchbase/var/lib/couchbase/config/ssl-cert-key.pem" |
2017-08-25T17:04:11.232-07:00 [INFO] -tlsKeyFile="/opt/couchbase/var/lib/couchbase/config/ssl-cert-key.pem" |
2017-08-25T17:04:11.232-07:00 [INFO] -uuid="2a889d30f4f7c9ade36f50033df42d45" |
2017-08-25T17:04:11.232-07:00 [INFO] -version="false" |
2017-08-25T17:04:11.232-07:00 [INFO] -weight="1" |
2017-08-25T17:04:11.233-07:00 [INFO] GOMAXPROCS=4 |
2017-08-25T17:04:11.233-07:00 [INFO] main: registered bleve stores |
2017-08-25T17:04:11.233-07:00 [INFO] metrics |
2017-08-25T17:04:11.233-07:00 [INFO] gtreap |
2017-08-25T17:04:11.233-07:00 [INFO] boltdb |
2017-08-25T17:04:11.233-07:00 [INFO] goleveldb |
2017-08-25T17:04:11.233-07:00 [INFO] moss |
2017-08-25T17:04:11.233-07:00 [INFO] main: curr dir: "/opt/couchbase/var/lib/couchbase" |
2017-08-25T17:04:11.233-07:00 [INFO] main: data dir: "/opt/couchbase/var/lib/couchbase/data/@fts" |
2017-08-25T17:04:11.233-07:00 [INFO] main_flags: ParseOptions, envName: CBFT_ENV_OPTIONS |
2017-08-25T17:04:11.233-07:00 [INFO] main_flags: ParseOptions, option: bleveMaxResultWindow |
2017-08-25T17:04:11.234-07:00 [INFO] main_flags: ParseOptions, option: hideUI |
2017-08-25T17:04:11.238-07:00 [INFO] moss_herder: memQuota: 262144000 |
On Ubuntu 16.04, it is like this -
2017-08-28T23:22:23.018-07:00 [INFO] main: /opt/couchbase/bin/cbft started (v0.5.0/5.0.0) |
2017-08-28T23:22:23.018-07:00 [INFO] -authType="cbauth" |
2017-08-28T23:22:23.018-07:00 [INFO] -bindHttp="172.23.106.122:8094,0.0.0.0:8094" |
2017-08-28T23:22:23.018-07:00 [INFO] -bindHttps=":18094" |
2017-08-28T23:22:23.018-07:00 [INFO] -cfgConnect="metakv" |
2017-08-28T23:22:23.018-07:00 [INFO] -container="" |
2017-08-28T23:22:23.018-07:00 [INFO] -dataDir="/opt/couchbase/var/lib/couchbase/data/@fts" |
2017-08-28T23:22:23.018-07:00 [INFO] -extras="172.23.106.122:8091" |
2017-08-28T23:22:23.018-07:00 [INFO] -help="false" |
2017-08-28T23:22:23.018-07:00 [INFO] -options="startCheckServer=skip,slowQueryLogTimeout=5s,defaultMaxPartitionsPerPIndex=171,bleveMaxResultWindow=10000,failoverAssignAllPrimaries=false,hideUI=true,cbaudit=true,ftsMemoryQuota=323584000,maxReplicasAllowed=3,bucketTypesAllowed=membase:ephemeral" |
2017-08-28T23:22:23.018-07:00 [INFO] -register="wanted" |
2017-08-28T23:22:23.018-07:00 [INFO] -server="http://127.0.0.1:8091" |
2017-08-28T23:22:23.018-07:00 [INFO] -staticDir="static" |
2017-08-28T23:22:23.018-07:00 [INFO] -staticETag="" |
2017-08-28T23:22:23.018-07:00 [INFO] -tags="feed,janitor,pindex,queryer,cbauth_service" |
2017-08-28T23:22:23.018-07:00 [INFO] -tlsCertFile="/opt/couchbase/var/lib/couchbase/config/ssl-cert-key.pem" |
2017-08-28T23:22:23.018-07:00 [INFO] -tlsKeyFile="/opt/couchbase/var/lib/couchbase/config/ssl-cert-key.pem" |
2017-08-28T23:22:23.018-07:00 [INFO] -uuid="fcacb6f6df1f31e9722dc14de4c3bc1f" |
2017-08-28T23:22:23.018-07:00 [INFO] -version="false" |
2017-08-28T23:22:23.018-07:00 [INFO] -weight="1" |
2017-08-28T23:22:23.019-07:00 [INFO] GOMAXPROCS=4 |
2017-08-28T23:22:23.019-07:00 [INFO] main: registered bleve stores |
2017-08-28T23:22:23.019-07:00 [INFO] boltdb |
2017-08-28T23:22:23.019-07:00 [INFO] goleveldb |
2017-08-28T23:22:23.019-07:00 [INFO] moss |
2017-08-28T23:22:23.019-07:00 [INFO] metrics |
2017-08-28T23:22:23.019-07:00 [INFO] gtreap |
2017-08-28T23:22:23.019-07:00 [INFO] main: curr dir: "/opt/couchbase/var/lib/couchbase" |
2017-08-28T23:22:23.019-07:00 [INFO] main: data dir: "/opt/couchbase/var/lib/couchbase/data/@fts" |
2017-08-28T23:22:23.024-07:00 [INFO] cfg_metakv: metaKVCallback, path: /fts/cbgt/cfg/version, key: version, deletion: false |
2017-08-28T23:22:23.024-07:00 [INFO] cfg_metakv: metaKVCallback, path: /fts/cbgt/cfg/version, key: version, deletion: false |
2017-08-28T23:22:23.024-07:00 [INFO] moss_herder: memQuota: 323584000 |
Test:
python testrunner.py -i <ini> get-cbcollect-info=False,get-logs=False,get-coredumps=False -t fts.stable_topology_fts.StableTopFTS.run_default_index_query,items=100,GROUP=PS
INI file could be like this :
[global]
|
username:root
|
password:couchbase
|
port:8091 |
|
[membase]
|
rest_username:Administrator
|
rest_password:password
|
|
[servers]
|
1:_1 |
2:_2 |
3:_3 |
|
[_1]
|
ip:172.23.105.162 |
|
[_2]
|
ip:172.23.107.216 |
|
[_3]
|
ip:172.23.106.122 |
Attached fts logs from both - Ubuntu 16.04 and Ubuntu 14.04
This issue is not a regression. The test had been failing earlier too but not analyzed.
Attachments
Issue Links
- mentioned in
-
Page Loading...