History log of /6.0.3/couchdb/ (Results 76 - 100 of 3947)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e4767cfe01-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Revert "Merge remote-tracking branch 'couchbase/watson'"

I didn't mean to revert master to the state before the dcp client
changes. So this reverts this faulty merge.

This rever

Revert "Merge remote-tracking branch 'couchbase/watson'"

I didn't mean to revert master to the state before the dcp client
changes. So this reverts this faulty merge.

This reverts commit 39c7fbc82ace9bf7955673b8a19c844f7f4ea40c, reversing
changes made to a6402a915bd2ea574ef5e32b0c247b727142209a.

Change-Id: I42b097ff809aa9f073bb4c6c228d400def5d122f
Reviewed-on: http://review.couchbase.org/69386
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

show more ...

39c7fbc801-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Merge remote-tracking branch 'couchbase/watson'

* couchbase/watson:
Revert dcp client changes.

Change-Id: I78ff3321010ddefe9f9b7acd76f7c5755ddd8c26


0a823e0601-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Merge remote-tracking branch 'couchbase/sherlock' into watson

* couchbase/sherlock:
Revert dcp client changes.
MB-21509 Always ack whatever is in the queue when removing it.

Merge remote-tracking branch 'couchbase/sherlock' into watson

* couchbase/sherlock:
Revert dcp client changes.
MB-21509 Always ack whatever is in the queue when removing it.
MB-21509 Crash if close_stream returns unexpected error.
MB-21509 [Backport] MB-21303 Handle race between stream addition and updater exit
MB-21509 [Backport] MB-21303 Address leak in stream_info queue
MB-21509 [Backport] MB-21303 Handle ack from dcp producer for control_request correctly

Change-Id: I24489dc1db1cde37d8e7b08811236b9a3f10298b

show more ...


7c4e378f01-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Merge remote-tracking branch 'couchbase/3.x' into sherlock

* couchbase/3.x:
Revert dcp client changes.
MB-21509 Always ack whatever is in the queue when removing it.
MB-215

Merge remote-tracking branch 'couchbase/3.x' into sherlock

* couchbase/3.x:
Revert dcp client changes.
MB-21509 Always ack whatever is in the queue when removing it.
MB-21509 Crash if close_stream returns unexpected error.
MB-21509 [Backport] MB-21303 Handle race between stream addition and updater exit
MB-21509 [Backport] MB-21303 Address leak in stream_info queue
MB-21509 [Backport] MB-21303 Handle ack from dcp producer for control_request correctly

Change-Id: I415d41675cb9ce463c18ade3ebf7d1a2d8cc54a6

show more ...


1946e3ea01-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Revert dcp client changes.

Because it still has bugs, just of a different kind. So reverting it
back to a pristine state. Will fix on master.

This reverts the following commits:

Revert dcp client changes.

Because it still has bugs, just of a different kind. So reverting it
back to a pristine state. Will fix on master.

This reverts the following commits:

37036aa9c0027bcbb810880a8d545500e5cad209
57c534b4f0272e5f61ffe4c205acb3264972e6e4
63c71f0b3290bd63ec0c8f76381b9dc44048b1f1
7990968eafc44452135d720d17335e1cb6008faa
6b43ef1a0baa907631fcd4ab384d8dc70ab4aa91

Change-Id: I608e8bc0fce7f5de4e0d3bd433dd09ed2baf7b9e
Reviewed-on: http://review.couchbase.org/69377
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

show more ...

a6402a9101-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Merge remote-tracking branch 'couchbase/3.x' into work

* couchbase/3.x:
MB-21509 Always ack whatever is in the queue when removing it.
MB-21509 Crash if close_stream returns unex

Merge remote-tracking branch 'couchbase/3.x' into work

* couchbase/3.x:
MB-21509 Always ack whatever is in the queue when removing it.
MB-21509 Crash if close_stream returns unexpected error.

Change-Id: I5f3371f01575cac198134ceb8524e16d11fbb471

show more ...


16b85e6b01-Nov-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

Merge commit 'couchbase/3.x~2' into work

* commit 'couchbase/3.x~2':
MB-21509 [Backport] MB-21303 Handle race between stream addition and updater exit
MB-21509 [Backport] MB-2130

Merge commit 'couchbase/3.x~2' into work

* commit 'couchbase/3.x~2':
MB-21509 [Backport] MB-21303 Handle race between stream addition and updater exit
MB-21509 [Backport] MB-21303 Address leak in stream_info queue
MB-21509 [Backport] MB-21303 Handle ack from dcp producer for control_request correctly

Change-Id: I3054952dd3eb82ce904382f4976a3cb403724334

show more ...


37036aa931-Oct-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

MB-21509 Always ack whatever is in the queue when removing it.

The problem with the original patch was that when the client got DOWN
message from a process, it would just delete the queu

MB-21509 Always ack whatever is in the queue when removing it.

The problem with the original patch was that when the client got DOWN
message from a process, it would just delete the queue without
acknowledging anything.

Now I just call check_and_send_buffer_ack from inside
remove_request_queue. Incidentally, this means that it gets called
even after the client just receives stream_end. And this means, that
even if ep-engine continues sending mutations after stream_end, we'll
still acknowledge them.

Change-Id: I18f55f54deff30c0a914803869c3fe62d64f99f7
Reviewed-on: http://review.couchbase.org/69349
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

show more ...

57c534b431-Oct-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

MB-21509 Crash if close_stream returns unexpected error.

It's much better than leaving the client in an undefined state.

Change-Id: I76afddcb33ae7db25609b88517c64d6e1f2099f1
Rev

MB-21509 Crash if close_stream returns unexpected error.

It's much better than leaving the client in an undefined state.

Change-Id: I76afddcb33ae7db25609b88517c64d6e1f2099f1
Reviewed-on: http://review.couchbase.org/69348
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

show more ...

63c71f0b23-Oct-2016 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

MB-21509 [Backport] 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

MB-21509 [Backport] 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 monitoring the DocLoader process and
removes the streams whenevr the process terminates or the stream
is explicitly closed.

Change-Id: Ib36bb8d6fe0d07c220b16c231e2762d4dfeb33d9
Reviewed-on: http://review.couchbase.org/68808
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-on: http://review.couchbase.org/69315
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Sarath Lakshman <sarath@couchbase.com>

show more ...

7990968e11-Oct-2016 harsha <hhs.couchbase@gmail.com>

MB-21509 [Backport] MB-21303 Address leak in stream_info queue

In the error condition of add_stream, stream_info
queue entry was not flushed out which resulted in leak.

Change-I

MB-21509 [Backport] MB-21303 Address leak in stream_info queue

In the error condition of add_stream, stream_info
queue entry was not flushed out which resulted in leak.

Change-Id: Id9358cc17a1b3ead45252bc61f18bf41e8d374ce
Reviewed-on: http://review.couchbase.org/68565
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Reviewed-on: http://review.couchbase.org/69314
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Sarath Lakshman <sarath@couchbase.com>

show more ...

6b43ef1a10-Oct-2016 harsha <hhs.couchbase@gmail.com>

MB-21509 [Backport] MB-21303 Handle ack from dcp producer for control_request correctly

control_request for flow control buffer size is added into the
pending request dictionary with nil

MB-21509 [Backport] MB-21303 Handle ack from dcp producer for control_request correctly

control_request for flow control buffer size is added into the
pending request dictionary with nil as SendTo parameter as
gen_server need not reply when it gets response from producer.
This was not handled correctly when stream_response is handled
in the client which is fixed in this patch.

Change-Id: Ib382ddc9db3dc5da65d7a550d9b9ffa6ee375399
Reviewed-on: http://review.couchbase.org/68525
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-on: http://review.couchbase.org/69313
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Sarath Lakshman <sarath@couchbase.com>

show more ...

6ebadbf923-Oct-2016 Aliaksey Artamonau <aliaksiej.artamonau@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 monitoring the DocLoader process and
removes the streams whenevr the process terminates or the stream
is explicitly closed.

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

show more ...

7a4ca03611-Oct-2016 harsha <hhs.couchbase@gmail.com>

MB-21303 Address leak in stream_info queue

In the error condition of add_stream, stream_info
queue entry was not flushed out which resulted in leak.

Change-Id: Ia499ea3d2c1f10b8

MB-21303 Address leak in stream_info queue

In the error condition of add_stream, stream_info
queue entry was not flushed out which resulted in leak.

Change-Id: Ia499ea3d2c1f10b8dc990a8695dd7e4475354853
Reviewed-on: http://review.couchbase.org/68565
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

7a92605a10-Oct-2016 harsha <hhs.couchbase@gmail.com>

MB-21303 Handle ack from dcp producer for control_request correctly

control_request for flow control buffer size is added into the
pending request dictionary with nil as SendTo parameter

MB-21303 Handle ack from dcp producer for control_request correctly

control_request for flow control buffer size is added into the
pending request dictionary with nil as SendTo parameter as
gen_server need not reply when it gets response from producer.
This was not handled correctly when stream_response is handled
in the client which is fixed in this patch.

Change-Id: I7afb11adbde79fe2ee0895feac8fec91d563a062
Reviewed-on: http://review.couchbase.org/68525
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

ed40de6f01-Jun-2016 Volker Mische <vmx@couchbase.com>

MB-16737 Set default timeout late

The default timeout for internal scatter requests is 60s. It can be changed
with the `connection_timeout` query parameter. For future changes it's neede

MB-16737 Set default timeout late

The default timeout for internal scatter requests is 60s. It can be changed
with the `connection_timeout` query parameter. For future changes it's needed
to be able to distinguish the `connection_timeout` parameter being set at
query time or not.

Hence set the default value to `nil` and set it to the default value of
60 seconds as late as possible.

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

show more ...

af17ac0c01-Jun-2016 Volker Mische <vmx@couchbase.com>

Remove the `Timeout` variable which isn't used

Change-Id: I50d1e8755de7986ae6a724540cc9e57856b0df11
Reviewed-on: http://review.couchbase.org/64650
Tested-by: buildbot <build@couchbas

Remove the `Timeout` variable which isn't used

Change-Id: I50d1e8755de7986ae6a724540cc9e57856b0df11
Reviewed-on: http://review.couchbase.org/64650
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

aa65de2931-May-2016 harsha <hhs.couchbase@gmail.com>

MB-19783 Use barrier to prevent exit of long running task

There is a potential race in which terminator thread decides to
terminate map reduce context and gets switched out of context.

MB-19783 Use barrier to prevent exit of long running task

There is a potential race in which terminator thread decides to
terminate map reduce context and gets switched out of context.
In the meantime map reduce task is finished normally and the same
context is reused to perform map reduce for subsequent mutations.
Now terminator thread will potentially terminate this new task,
when it is scheduled back to run.
This is avoided by using mutex in which either terminator thread,
if successful will terminate long running map reduce task or the
task is terminated normally.

Change-Id: I6785a4f12155eab637e924290889284050e13888
Reviewed-on: http://review.couchbase.org/64604
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Finlay <dave.finlay@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

c0add99f17-May-2016 harsha <hhs.couchbase@gmail.com>

Enable asserts in release builds

Change-Id: I70a6a4afb1eaada643e9a70d33b43d5912f81d6b
Reviewed-on: http://review.couchbase.org/64101
Reviewed-by: Abhishek Singh <abhishek@couchbase.c

Enable asserts in release builds

Change-Id: I70a6a4afb1eaada643e9a70d33b43d5912f81d6b
Reviewed-on: http://review.couchbase.org/64101
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

a80ef04e11-May-2016 Abhishek Singh <abhishek@couchbase.com>

Reference expected and received ddoc revision appropriately

Change-Id: I12c4a22da7b98f3e8e6574579465532c849948ee
Reviewed-on: http://review.couchbase.org/63923
Reviewed-by: Volker Mi

Reference expected and received ddoc revision appropriately

Change-Id: I12c4a22da7b98f3e8e6574579465532c849948ee
Reviewed-on: http://review.couchbase.org/63923
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

1535cd8613-May-2016 Volker Mische <vmx@couchbase.com>

MB-16712 Stop group synchronously after master db deletion

When the master database that contains the design documents is deleted,
the corresponding view group is also stopped/removed.

MB-16712 Stop group synchronously after master db deletion

When the master database that contains the design documents is deleted,
the corresponding view group is also stopped/removed.

Previously that view group deletion was asynchronous. That lead to issues
when the master database was deleted, but shortly afterwards recreated. If
the view group didn't terminate fast enough (which was the case for the
spatial views in the travel sample), calls to the view group ended up in
the old group, instead of the newly created one.

We now make a synchronous call to remove the group after the master deletion,
to make sure the group got shutdown properly before any further requests
can be initiated.

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

show more ...

a267d83604-May-2016 harsha <hhs.couchbase@gmail.com>

MB-19502 Catch exceptions from jsonStringify function

Reduce and emit functions did not handle exceptions thrown from
jsonStringify, which resulted in bringing down of couchdb VM.
Th

MB-19502 Catch exceptions from jsonStringify function

Reduce and emit functions did not handle exceptions thrown from
jsonStringify, which resulted in bringing down of couchdb VM.
This fix catches these exceptions and returns gracefully.

Change-Id: I7455fe9f33d7f70e5cc9946bd59a8ece1c518633
Reviewed-on: http://review.couchbase.org/63707
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

87dc07a227-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-19378 Handle memory leaks in context initialization

Memory allocated dynamically was not freed in the catch clause,
when exceptions happened. Also release resource if
initializati

MB-19378 Handle memory leaks in context initialization

Memory allocated dynamically was not freed in the catch clause,
when exceptions happened. Also release resource if
initialization fails.

Change-Id: I4233a5104a03805beda09291f9a346f60379fdbb
Reviewed-on: http://review.couchbase.org/63412
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

21a0d91225-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-19377 Handle collisions in context hash map

Mapreduce contexts were stored in hash table and key was provided
by erlang process to NIF using phash2 routine which is not
collision

MB-19377 Handle collisions in context hash map

Mapreduce contexts were stored in hash table and key was provided
by erlang process to NIF using phash2 routine which is not
collision resistent. This fix usues context address as key to
avoid collision.

Change-Id: I31defc4b1926022c9e649b8e2c7e11a8f4a56195
Reviewed-on: http://review.couchbase.org/63318
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

e8c7519d29-Apr-2016 Volker Mische <vmx@couchbase.com>

Merge remote-tracking branch 'couchbase/watson' into master

* couchbase/watson:
MB-18985 Use platform APIs for thread creation and synchronization
Increase DCP connection timeout

Merge remote-tracking branch 'couchbase/watson' into master

* couchbase/watson:
MB-18985 Use platform APIs for thread creation and synchronization
Increase DCP connection timeout for unit tests

Change-Id: I4415f19c5b0b78c543a47c28e01451b18968ff7a

show more ...


12345678910>>...158