History log of /6.0.3/couchdb/src/mapreduce/ (Results 1 - 25 of 84)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
45731d9f20-Sep-2018 AnkitPrabhu <ankit.prabhu@couchbase.com>

MB-31075: Link icudtl.dat file in windows

Change-Id: Iecbd67182bebbcdf3d7ec35a590bb99ec4398e3b
Reviewed-on: http://review.couchbase.org/99788
Reviewed-by: Jeelan Basha Poola <jeelan.

MB-31075: Link icudtl.dat file in windows

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

show more ...

4aa3b05217-May-2018 Chris Hillery <ceej@couchbase.com>

MB-29718: Set mapreduce_nif RPATH correctly

Change-Id: Ide32ae7cbf38f5ce576269eae3d4cd559ac908b5
Reviewed-on: http://review.couchbase.org/94316
Reviewed-by: Kenneth Lareau <kenneth.l

MB-29718: Set mapreduce_nif RPATH correctly

Change-Id: Ide32ae7cbf38f5ce576269eae3d4cd559ac908b5
Reviewed-on: http://review.couchbase.org/94316
Reviewed-by: Kenneth Lareau <kenneth.lareau@couchbase.com>
Reviewed-by: Matt Carabine <matt.carabine@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>

show more ...

60d9342c10-Jan-2018 harsha <harsha.hs.81@gmail.com>

MB-27448 Detect view errors early

Since we run view map functions through esprima static analyzer, we
can detect malformed view map function at this phase instead of
mapping pahse an

MB-27448 Detect view errors early

Since we run view map functions through esprima static analyzer, we
can detect malformed view map function at this phase instead of
mapping pahse and flag invalid ddoc error during ddoc creation.
This also exhibits handling ddoc failures gracefully instead of
crashing and restarting CouchDB VM.

Change-Id: Id3b96548694a2d1c53053b1f549b1135237c9df5
Reviewed-on: http://review.couchbase.org/87640
Reviewed-by: Gautham B A <gautham.bangalore@gmail.com>
Reviewed-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>
Tested-by: Jeelan Basha Poola <jeelan.poola@couchbase.com>

show more ...

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

MB-27422, MB-27424 Do not use statically allocated resource in NIF

couchdb vm is locked up since it is undefined behavior to destroy
condition variable being used. This patch uses pointe

MB-27422, MB-27424 Do not use statically allocated resource in NIF

couchdb vm is locked up since it is undefined behavior to destroy
condition variable being used. This patch uses pointer to
condition variable used in terminator thread and also
notifies it before unloading mapreduce NIF.
maxTaskduration variable is made atomic since it is used by
2 different threads concurrently.

Change-Id: I10e24c6260d11302cd6bd1b85dd9795632913c08
Reviewed-on: http://review.couchbase.org/87451
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksey.artamonau@couchbase.com>
Tested-by: Aliaksey Artamonau <aliaksey.artamonau@couchbase.com>

show more ...

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

MB-26868 Remove platform dependency

There are issues with jemalloc and erl_nif_allocs which resulted in
unit test faiures on debian and Mac platforms. This patch removes
platform dep

MB-26868 Remove platform dependency

There are issues with jemalloc and erl_nif_allocs which resulted in
unit test faiures on debian and Mac platforms. This patch removes
platform dependency and use C++ synchronizaiton primitives and
system memory allocator for view engine.

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

show more ...

2e98082211-Sep-2017 Chris Hillery <ceej@couchbase.com>

CBD-2051: Update to V8 5.9 (required for eventing)

Change-Id: Ia6fa36f2ab9e3be32d569764851f8fdd5341ebb1
Reviewed-on: http://review.couchbase.org/83251
Reviewed-by: Chris Hillery <cee

CBD-2051: Update to V8 5.9 (required for eventing)

Change-Id: Ia6fa36f2ab9e3be32d569764851f8fdd5341ebb1
Reviewed-on: http://review.couchbase.org/83251
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>

show more ...

Revision tags: v4.6.0
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 ...

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 ...


Revision tags: v4.5.0
7ad0cfa622-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-18985 Use platform APIs for thread creation and synchronization

Platform APIs are compatible with NIF APIs for thread creation
and synchronization. So mapreduce NIF uses platform APIs

MB-18985 Use platform APIs for thread creation and synchronization

Platform APIs are compatible with NIF APIs for thread creation
and synchronization. So mapreduce NIF uses platform APIs instead
of C++11 primitivies to be compatible with NIF APIs.

On Windows, mixing C++11 primitives with NIF APIs resulted in improper
shutdown of erl.exe application in the unit tests which resulted in
error popups at the exit of every unit test run.

Change-Id: I002510632673ccbaee76f4f71b89526f00271dcd
Reviewed-on: http://review.couchbase.org/63406
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

1c372c0409-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-8512 Unit test for optimizing document loads

Change-Id: I975e96a617e13dabe559a1b02354857bddeaf53e
Reviewed-on: http://review.couchbase.org/60921
Reviewed-by: Volker Mische <volker

MB-8512 Unit test for optimizing document loads

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

show more ...

49e10b8b09-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-8512 Do not load doc when document fields are not indexed

If document is not used by all the view functions defined in design doc, we
can optimize by not loading documents during inde

MB-8512 Do not load doc when document fields are not indexed

If document is not used by all the view functions defined in design doc, we
can optimize by not loading documents during indexing.
esprima and unused java script are used to detect if javascript map
function uses document in its function body. If none of the views
defined on design doc does not index document fields in their map function,
then we prevent loading of documents for that design document during
updater runs. This helps with sync gateway views.

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

show more ...

908b7edd09-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-8512 Add helper code and generate raw string header of js code

Helper java script code is added which returns if the document
(first parameter) of map function is used or not.
All

MB-8512 Add helper code and generate raw string header of js code

Helper java script code is added which returns if the document
(first parameter) of map function is used or not.
All the related JavaScript code is embedded as a raw string
which is included in relevant V8 code.

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

show more ...

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

MB-8512 Modify unused code to return AST along with unused variables

Change-Id: Ib6ed1c00bdbd6ed6ae03565aa369b9569f6ef435
Reviewed-on: http://review.couchbase.org/60707
Tested-by: bu

MB-8512 Modify unused code to return AST along with unused variables

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

show more ...

0d52d0af09-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-8512 Latest stable vanilla code for esprima and unused

Esprima is tool to generate AST for ECMA Script a.k.a JavaScript
Source: https://raw.githubusercontent.com/jquery/esprima/2.7/es

MB-8512 Latest stable vanilla code for esprima and unused

Esprima is tool to generate AST for ECMA Script a.k.a JavaScript
Source: https://raw.githubusercontent.com/jquery/esprima/2.7/esprima.js
Git SHA: eb05a03b18b8433ab1ebeabea635a949219cd75e
License: BSD

Unused is a node module that uses esprima to detect unused variables
in the JavaScript code.
Source: https://raw.githubusercontent.com/Kami/node-unused/master/lib/context.js
https://raw.githubusercontent.com/Kami/node-unused/master/index.js
Git SHA: ff619df98dfb112ed2b69dad0ed94ab0227e6191
License: Apache

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

show more ...

0484eeb206-Apr-2016 harsha <hhs.couchbase@gmail.com>

MB-19031 Handle race in updating terminator timeout

Change-Id: I8f819e9673bcff7e6fd0b3971a1f191dd43c38ba
Reviewed-on: http://review.couchbase.org/62489
Reviewed-by: Dave Rigby <daver

MB-19031 Handle race in updating terminator timeout

Change-Id: I8f819e9673bcff7e6fd0b3971a1f191dd43c38ba
Reviewed-on: http://review.couchbase.org/62489
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

1569057428-Mar-2016 harsha <hhs.couchbase@gmail.com>

MB-17567 Add startup snapshot for builtin JavaScript functions

Change-Id: I83a75f8d91870d39bfee6a7baae53ba6266f4d17
Reviewed-on: http://review.couchbase.org/62052
Reviewed-by: Volker

MB-17567 Add startup snapshot for builtin JavaScript functions

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

show more ...

1fc9a81f09-Mar-2016 Volker Mische <vmx@couchbase.com>

CBD-1453: Rebuild when header files change

Whenever an Erlang header file changes, rebuild the corresponding
Erlang files. This isn't an automated process, but you need to pass
in th

CBD-1453: Rebuild when header files change

Whenever an Erlang header file changes, rebuild the corresponding
Erlang files. This isn't an automated process, but you need to pass
in the header files a project should depend on manually. For simplicity
sometimes more headers are use than strictly needed. We rather rebuild
more than having a broken incremental build.

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

show more ...

4bd0f4c503-Mar-2016 Volker Mische <vmx@couchbase.com>

MB-17420 Don't use GLOB to find source/test files

Instead of using globbing, it's better to name the files
explicitely. That way incremental builds work.

Change-Id: I1b47c61b0f5

MB-17420 Don't use GLOB to find source/test files

Instead of using globbing, it's better to name the files
explicitely. That way incremental builds work.

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

show more ...

4c94bcfe03-Mar-2016 harsha <hhs.couchbase@gmail.com>

MB-13022 CBQE-3350 Test ArrayBuffer support in V8 4.8

Usage of Unit8Array in map function is included in map tests.

Change-Id: I451d6849597b2e0c2031985670d92a6ccf67815a
Reviewed

MB-13022 CBQE-3350 Test ArrayBuffer support in V8 4.8

Usage of Unit8Array in map function is included in map tests.

Change-Id: I451d6849597b2e0c2031985670d92a6ccf67815a
Reviewed-on: http://review.couchbase.org/60847
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

c75857af01-Jan-2016 harsha <hhs.couchbase@gmail.com>

MB-17043 Upgrade V8 to version 4.8

V8 APIs have changed from earlier version of 3.23 to current
version of 4.8, current stable v8 version used in Chrome.
Corresponding API changes ar

MB-17043 Upgrade V8 to version 4.8

V8 APIs have changed from earlier version of 3.23 to current
version of 4.8, current stable v8 version used in Chrome.
Corresponding API changes are incorporated in this fix.

Change-Id: I9942225d70d8d5b8dac1bde2429d995b8a4d7dc2
Reviewed-on: http://review.couchbase.org/58183
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

a0f0440313-Nov-2015 Volker Mische <vmx@couchbase.com>

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

* couchbase/sherlock:
MB-16435: OS X: Add correct rpath for NIFs

Change-Id: Id6accdf6b55c008426b475ee0e6e

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

* couchbase/sherlock:
MB-16435: OS X: Add correct rpath for NIFs

Change-Id: Id6accdf6b55c008426b475ee0e6e5458077f2711

show more ...


1234