History log of /6.0.3/couchdb/src/couch_set_view/ (Results 1 - 25 of 735)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
ccb71b0b31-Jan-2019 AnkitPrabhu <ankit.prabhu@couchbase.com>

MB-33945: Handling Json compressed datatype(0x03)

Change-Id: Ib502fed537192258f0cb0815a9f751ffe66867ec
Reviewed-on: http://review.couchbase.org/104302
Tested-by: <ankit.prabhu@couchb

MB-33945: Handling Json compressed datatype(0x03)

Change-Id: Ib502fed537192258f0cb0815a9f751ffe66867ec
Reviewed-on: http://review.couchbase.org/104302
Tested-by: <ankit.prabhu@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
(cherry picked from commit fb25b0aa303571035ad7b80ea963ebb832823057)
Reviewed-on: http://review.couchbase.org/108382
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: <ankit.prabhu@couchbase.com>

show more ...

3c4ad2b913-Nov-2018 AnkitPrabhu <ankit.prabhu@couchbase.com>

MB-31967 Use underlying data type flag

In order to get the data type of the document without fetching
actual document a new flag is introduced in DCP. Same flag is
used when doc fiel

MB-31967 Use underlying data type flag

In order to get the data type of the document without fetching
actual document a new flag is introduced in DCP. Same flag is
used when doc fields are unused in view definitions.

Change-Id: Ic03ab97a633869072ef8a35b3e0e5727a1f064cb
Reviewed-on: http://review.couchbase.org/101683
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Harsha H S
Tested-by: <ankit.prabhu@couchbase.com>
(cherry picked from commit 2fa07d77e465839532cdc34cc8e7516e52875c6e)
Reviewed-on: http://review.couchbase.org/102152
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

3b8209fc01-Jun-2018 Aman Achpal <aman.achpal@couchbase.com>

MB-100 Fix syntax error

Change-Id: I4cacbae0f6b6a1e64e47a19a46f2bb5450b61a86
Reviewed-on: http://review.couchbase.org/95053
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.co

MB-100 Fix syntax error

Change-Id: I4cacbae0f6b6a1e64e47a19a46f2bb5450b61a86
Reviewed-on: http://review.couchbase.org/95053
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Tested-by: Aman Kishore Achpal <aman.achpal@couchbase.com>

show more ...

0d306ad128-May-2018 Aman Achpal <aman.achpal@couchbase.com>

MB-27549 Fix flush

Design documents with the same View functions and Options are known
as aliases. If there are multiple aliases, they point to the same
couch_set_view_group gen_serv

MB-27549 Fix flush

Design documents with the same View functions and Options are known
as aliases. If there are multiple aliases, they point to the same
couch_set_view_group gen_server, and share the same signature.
While flushing, we get the group_server for each {SetName, Sig} pair,
and shutdown the group_server. If there are aliases of a DDoc, then
we attempt to shutdown the same group_server multiple times, which fails
with noproc. This change catches the noproc exception.

Change-Id: I5240d03486fae1b41e2e86aad94064cffb1951b9
Reviewed-on: http://review.couchbase.org/94828
Reviewed-by: Harsha H S
Tested-by: Harsha H S

show more ...

c1a52aa716-May-2018 Jeelan Basha Poola <jeelan.poola@couchbase.com>

MB-100 temporariliy skipping failing unit tests until root caused

Change-Id: I67f65023333a225184a821e2164e8fea7285d8dd
Reviewed-on: http://review.couchbase.org/94303
Reviewed-by: Ama

MB-100 temporariliy skipping failing unit tests until root caused

Change-Id: I67f65023333a225184a821e2164e8fea7285d8dd
Reviewed-on: http://review.couchbase.org/94303
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

8be914dd15-Apr-2018 harsha <harsha.hs.81@gmail.com>

MB-27546 Separate out ipv4 and ipv6 tests

It is observed that dcp fake server failed to start when the
bind address is changed from ipv4 to ipv6 mode.
This patch runs whole gamut of

MB-27546 Separate out ipv4 and ipv6 tests

It is observed that dcp fake server failed to start when the
bind address is changed from ipv4 to ipv6 mode.
This patch runs whole gamut of unit tests in ipv4 followed by ipv6
mode. Mode is decided by environment variable ipv6, which is
set to either true or false.

Change-Id: I5f9c6a6176f47294f78bbc56e88f807a80fd96a4
Reviewed-on: http://review.couchbase.org/92759
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

94134d1105-Mar-2018 harsha <harsha.hs.81@gmail.com>

MB-27546 Make dcp client and fake server robust to socket failures

noop_interval was set in control thread which handled
messages received from socket. This patch moves setting
noop

MB-27546 Make dcp client and fake server robust to socket failures

noop_interval was set in control thread which handled
messages received from socket. This patch moves setting
noop interval to main thread if noop is enabled by KV.

Fake server closes socket so that dcp client can restart
receive worker whenever there is are transient errors
during socket send/recv operations.
Fake server handle_calls had default timeout of 5s which is now
made infinite.

Change-Id: I5336c55d0ce7ea85ef1b4e31830ba11007630619
Reviewed-on: http://review.couchbase.org/90495
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

6c75deda02-Feb-2018 harsha <harsha.hs.81@gmail.com>

MB-21983 Redact dcp exit reason as it contains user data

Exit reason from dcp client dumps client state, which
could potentially contain user documents. This patch redacts
dcp exit r

MB-21983 Redact dcp exit reason as it contains user data

Exit reason from dcp client dumps client state, which
could potentially contain user documents. This patch redacts
dcp exit reason under user data.

Change-Id: I0066594f4eb355bc5b571a1f2d7eb5e4193bfe25
Reviewed-on: http://review.couchbase.org/88758
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

73648b9013-Jan-2018 harsha <harsha.hs.81@gmail.com>

MB-26674 Log redaction support in views.

This patch identifies user data and redacts customer user data
that are logged in the views under <ud> </ud> tags.

Change-Id: Ic61c92179

MB-26674 Log redaction support in views.

This patch identifies user data and redacts customer user data
that are logged in the views under <ud> </ud> tags.

Change-Id: Ic61c9217908c455ef4e4dce987a2295add9c5515
Reviewed-on: http://review.couchbase.org/87818
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

f7298f3214-Nov-2017 harsha <harsha.hs.81@gmail.com>

MB-26479 Add ipv6 protocol support in views

Change-Id: Ife18b0318d9505772d71dfeb7de71d8f6a1cb043
Reviewed-on: http://review.couchbase.org/86613
Reviewed-by: Aman Kishore Achpal <aman

MB-26479 Add ipv6 protocol support in views

Change-Id: Ife18b0318d9505772d71dfeb7de71d8f6a1cb043
Reviewed-on: http://review.couchbase.org/86613
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

8b994cdb08-Nov-2017 harsha <harsha.hs.81@gmail.com>

MB-100 Retire unused couchdb functionality

Change-Id: Icacf54e764d5cd30b1a25967ebbf45bc00b559b8
Reviewed-on: http://review.couchbase.org/85235
Reviewed-by: Aman Kishore Achpal <aman.

MB-100 Retire unused couchdb functionality

Change-Id: Icacf54e764d5cd30b1a25967ebbf45bc00b559b8
Reviewed-on: http://review.couchbase.org/85235
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>
Tested-by: Aman Kishore Achpal <aman.achpal@couchbase.com>

show more ...

d149230218-Jul-2017 Aman Achpal <aman.achpal@couchbase.com>

MB-21156 Log improvements to couchdb log

This fix makes enhancements to mitigate the loss of important
information due to rotation of the couchdb log. This includes
moving superfluou

MB-21156 Log improvements to couchdb log

This fix makes enhancements to mitigate the loss of important
information due to rotation of the couchdb log. This includes
moving superfluous, redundant and unhelpful information to the
debug level, as well as replacing expanded lists with their
condensed form. Additionally, this improves the logging of
POST query requests by logging the ddoc and view being queried.

Change-Id: I62fea718ad24251e72746d2e4b169afbf689a8e9
Reviewed-on: http://review.couchbase.org/80987
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

7a9be05926-Jun-2017 harsha <hhs.couchbase@gmail.com>

MB-25028 Catch all exit reasons from spatial btree updater

Instead of catching result of the updater as exit reason,
this fix catches all possible exit reasons along with the
btree u

MB-25028 Catch all exit reasons from spatial btree updater

Instead of catching result of the updater as exit reason,
this fix catches all possible exit reasons along with the
btree updater result.

Change-Id: I5ba7c4dd7af312caacf8f2e627163f854ee10450
Reviewed-on: http://review.couchbase.org/80030
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

9d07010120-Jan-2017 nimish <nimish@couchbase.com>

MB-22317 Stop the updater for spatial view

Stop the spatial updater after receiving the stop message

Change-Id: Id1d4baa379f9b4a8a12a6bd3654fbb07cf3a5f0e
Reviewed-on: http://rev

MB-22317 Stop the updater for spatial view

Stop the spatial updater after receiving the stop message

Change-Id: Id1d4baa379f9b4a8a12a6bd3654fbb07cf3a5f0e
Reviewed-on: http://review.couchbase.org/79802
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>

show more ...

0f89f3c215-Jun-2017 Aman Achpal <aman.achpal@couchbase.com>

MB-21156 Shifting extra information to debug log level

cbcollect logs are limited to 200MB per component. The couchdb
component was logging a very high volume of information at the
i

MB-21156 Shifting extra information to debug log level

cbcollect logs are limited to 200MB per component. The couchdb
component was logging a very high volume of information at the
info log level resulting in wrapping of the logs due to which
important information needed for triaging was lost.
This fix moves a large amount of that infomration to debug level,
which can be enabled dynamically using the REST API when the
customer faces an issue.

The API call to be used is -
curl -X POST -u username:password
http://url:port/diag/eval
-d 'ale:set_loglevel(couchdb,debug).

An example that worked with ./cluster_run is -
curl -X POST -u Administrator:asdasd
http://127.0.0.1:8091/diag/eval
-d 'ale:set_loglevel(couchdb,debug).

Change-Id: Ic7b4af748ebc2a2a2e524c43659953f1d215b8b1
Reviewed-on: http://review.couchbase.org/79551
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

22a262eb14-Jun-2017 harsha <hhs.couchbase@gmail.com>

MB-23946 Implement handle_info for DOWN message for monitored process

couch_set_view_group monitors ns_server capi_set_view_manager process
to update the progress of partition update sta

MB-23946 Implement handle_info for DOWN message for monitored process

couch_set_view_group monitors ns_server capi_set_view_manager process
to update the progress of partition update state.
If capi_set_view_manager dies, we are not handling the DOWN message
in our group which is fixed in this patch.

Change-Id: Ib26eabb8aee5acdd41125a1e91696b907576036c
Reviewed-on: http://review.couchbase.org/79477
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

Revision tags: v4.6.0
a004585521-Oct-2016 harsha <hhs.couchbase@gmail.com>

MB-21303 Handle race between stream addition and updater exit

DocLoader sub-process adds dcp stream for a vbucket.
Streams are added into active streams list after a response is
rece

MB-21303 Handle race between stream addition and updater exit

DocLoader sub-process adds dcp stream for a vbucket.
Streams are added into active streams list after a response is
received from dcp producer. If updater exits before the stream
is added into active list, there is no way of closing this stream
until updater is stopped in subsequent iteration, which could
potentially result in not acknowledgeing any stream events for
this vbucket.

This patch avoids race by adding, listing and removing
streams from the parent updater process.

Change-Id: Ide67f6a3ec061cfe7c279f98d199da32dc0cb47c
Reviewed-on: http://review.couchbase.org/76980
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

8463251518-Apr-2017 Sriram Melkote <siri@couchbase.com>

CBD-1983: Remove DCP flow control changes from master

This reverts commit e4767cfeae434e2e63480e7bc6b50395f0738a5d.

Remove the experimenal flow control changes from master. These

CBD-1983: Remove DCP flow control changes from master

This reverts commit e4767cfeae434e2e63480e7bc6b50395f0738a5d.

Remove the experimenal flow control changes from master. These
were reverted on watson as they introduced more problems, while
the root cause of the regression was a bug in ep-engine, and hence
were not strictly necessary.

Change-Id: I5da23439012d5e5097841477305fbb9ee4c383f9
Reviewed-on: http://review.couchbase.org/76951
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

584de8c001-Jun-2017 harsha <hhs.couchbase@gmail.com>

MB-24616 Control indexing of system _xattrs on document deletion

Indexing xattributes on document deletion has a potential problem,
that the index structure can grow out of proportions,

MB-24616 Control indexing of system _xattrs on document deletion

Indexing xattributes on document deletion has a potential problem,
that the index structure can grow out of proportions, if care is
not taken to delete them from the index structure.

Views depend on the dcp mutations to insert or delete a document
into the index structure. Dcp set triggers value insertion whereas
dcp deletion triggers value deletion from view index structure.

Since, we index xattrs on document deletion, there is no way to
delete this value from index structure, unless same document is
created and deleted without setting xattrs. In order to avoid
unscrupulous use of indexing xattrs, a new design doc level
attribute is added to enable indexing of xattrs on document deletion.
This attribute can be set using RESTful API on CAPI REST port,
and is not exposed in UI.

For example on development server where CAPI REST port is 9500,
design doc named ddoc which can index xattrs on document deletion
and smaple view called view1 is created using
curl -X PUT -H 'Content-Type: application/json'
http://Administrator:asdasd@localhost:9500/default/_design/ddoc -d
@views_def.json
where contents of views_def.json is
{
"views" : {
"view1": {
"map" : "function(doc, meta){emit(meta.id,
meta.xattrs);}"
}
},
"index_xattr_on_deleted_docs" : true
}

Change-Id: I3d977812409d6bba205431e7bc408aab4864b4e2
Reviewed-on: http://review.couchbase.org/78907
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>

show more ...

045f5a6425-May-2017 harsha <hhs.couchbase@gmail.com>

MB-23888 Unit test to stream xattrs during soft deletion of document

As part of mobile convergence plan, system xattributes are streamed
during document soft deletion.
This unit test

MB-23888 Unit test to stream xattrs during soft deletion of document

As part of mobile convergence plan, system xattributes are streamed
during document soft deletion.
This unit test simulates this feature by having a deleted attribute
in the document which is parsed, and delete mutation is generated,
along with streaming of xattribute body

Change-Id: I360ed51074e9f44f6baaab43538c00d04ed90940
Reviewed-on: http://review.couchbase.org/78582
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

87059c4a03-May-2017 harsha <hhs.couchbase@gmail.com>

MB-23946 Revert "MB-22317 Stop the updater for spatial view"

This reverts commit 70262640dfe82b3707861dc5187aff072228b4b8,
as this caused rebalance failures in longevity tests.

MB-23946 Revert "MB-22317 Stop the updater for spatial view"

This reverts commit 70262640dfe82b3707861dc5187aff072228b4b8,
as this caused rebalance failures in longevity tests.

Change-Id: Ib092385561a1846b3069c3aa42186848e483a23f
Reviewed-on: http://review.couchbase.org/77942
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

3db6751517-Feb-2017 harsha <hhs.couchbase@gmail.com>

MB-21350 Expose Extended attributes a.k.a XATTR to views

Extended Attributes that are streamed by KV are now included
in the metadata information of the document and are accessible
b

MB-21350 Expose Extended attributes a.k.a XATTR to views

Extended Attributes that are streamed by KV are now included
in the metadata information of the document and are accessible
by views as `meta.xattrs` property

Sample metadata of document with xattrs now looks like
{
"id": "xattr_demo_doc",
"rev": "4-14a501b8539400000000000002000000",
"seq": "4",
"vb": "321",
"expiration": 0,
"flags": 33554432,
"type": "json",
"xattrs": {
"doc": {
"readcount": [
10,
11
],
"author": "Jack"
},
"_sync": {
"channels": [
"UK",
"USA",
"EU"
]
}
}
}

whereas sample metadata of document not having xattrs looks like
{
"id": "pymc0",
"rev": "1-14a501f28e5b00000000000000000000",
"seq": "1",
"vb": "449",
"expiration": 0,
"flags": 0,
"type": "json",
"xattrs": {}
}

Change-Id: Iefb8d507a23737acdbe98ee632a0e7f09bdcde38
Reviewed-on: http://review.couchbase.org/73817
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

d1b6a79308-Feb-2017 nimish <nimish@couchbase.com>

MB-22588 Fix the error in spawning spatial updater

Change-Id: I946f68b7e8425e92984d111556651c1b7886a3c4
Reviewed-on: http://review.couchbase.org/73322
Reviewed-by: Harsha H S <hhs.co

MB-22588 Fix the error in spawning spatial updater

Change-Id: I946f68b7e8425e92984d111556651c1b7886a3c4
Reviewed-on: http://review.couchbase.org/73322
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

d759605531-Jan-2017 harsha <hhs.couchbase@gmail.com>

MB-22525 DCP_OPEN_NO_VALUE is made global per connection flag

For views that do not use document fields, only metadata was
streamed from dcp. Earlier this was done by setting NO_VALUE

MB-22525 DCP_OPEN_NO_VALUE is made global per connection flag

For views that do not use document fields, only metadata was
streamed from dcp. Earlier this was done by setting NO_VALUE
flag for every open stream request.
Now this flag is a global flag which is set while opening a
new DCP connection, as there was no use-case for selectively
streaming metadata from specific subset of vbuckets.

Change-Id: Ibb50e70aa2817d9c8a29876adf178b5b1afacce6
Reviewed-on: http://review.couchbase.org/72946
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

7026264020-Jan-2017 nimish <nimish@couchbase.com>

MB-22317 Stop the updater for spatial view

Stop the spatial updater after receiving the stop message

Change-Id: Idbc4a0b14eff39b9738e237c512706837c8cbb37
Reviewed-on: http://rev

MB-22317 Stop the updater for spatial view

Stop the spatial updater after receiving the stop message

Change-Id: Idbc4a0b14eff39b9738e237c512706837c8cbb37
Reviewed-on: http://review.couchbase.org/72792
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

12345678910>>...30