1
0
Fork 0
Commit Graph

1041 Commits

Author SHA1 Message Date
Jan Steemann 0e802d6438 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-09-02 10:20:18 +02:00
Jan Steemann a80d6635ab create fat datafiles
This prevents SIGBUS when a sparse datafile is accessed and the disk is full. In
this case the mmapped region is not necessarily backed by physical memory, and
accessing the memory may crash the program
2015-09-02 10:18:24 +02:00
CoDEmanX 956b396e43 Change spelling of 'initialize' to American English (actual code and files) 2015-09-01 17:29:22 +02:00
CoDEmanX b4593a7e82 Change spelling of 'initialize' to American English (comments and log messages only) 2015-09-01 17:07:21 +02:00
Michael Hackstein 4409a59265 Further templatification of skiplist and fixed the tests 2015-09-01 15:05:47 +02:00
Michael Hackstein 40c1361244 Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-25 16:40:31 +02:00
Max Neunhoeffer 203e9a5195 Make hashcache in AssocMulti switchable-off. Does not work yet. 2015-08-25 12:46:47 +02:00
Michael Hackstein 22ddc3923f Fixed AttributeName parser tests 2015-08-24 11:49:40 +02:00
Jan Steemann b08713d768 added tests and documentation 2015-08-24 11:05:26 +02:00
Jan Steemann 31a6547d4c fix replication resumption 2015-08-21 15:57:24 +02:00
Michael Hackstein b708a7ae68 Merge remote-tracking branch 'origin/devel' into array_indexing 2015-08-21 15:34:49 +02:00
Michael Hackstein 9bb7c0dec6 The skiplist index is now able to index arrays as well 2015-08-21 11:04:04 +02:00
CoDEmanX 49fcde5872 Fix #1447: remove invalid/empty file 2015-08-19 23:17:25 +02:00
Michael Hackstein 5049c1dd23 Fixed CLANG compiler warnings in UnitTests 2015-08-19 15:25:41 +02:00
Michael Hackstein 241905c42c Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 12:51:53 +02:00
Jan Steemann d8be947246 fixed unittests-shell-client, which did not start anymore 2015-08-19 12:46:15 +02:00
Michael Hackstein 59e8ea3fad Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 11:56:34 +02:00
Willi Goesgens 487228ae83 Unix domainsocket startup: use arangosh to check whether the server is up and running. 2015-08-18 15:41:27 +02:00
Michael Hackstein e867181a72 Merge remote-tracking branch 'origin/eimerung_hashindex' into array_indexing 2015-08-17 15:58:53 +02:00
Michael Hackstein 7eda2e0f5c Fixed the test for last commit 2015-08-17 12:43:11 +02:00
Michael Hackstein d7d00a5d0d Fixed index comparision with multiple components. Introduced by AttributeName format. 2015-08-17 12:43:09 +02:00
Jan Steemann 907e6368c6 some unused function cleanup 2015-08-17 12:43:09 +02:00
Michael Hackstein 17a8f73a06 Now the input for indexes is parsed using the new attribute parser. This means the flags for expanded Attributes are set. Also introduced a transformation function to transform an attributeName list back into a string. 2015-08-17 12:43:07 +02:00
Michael Hackstein c85d5e347a Implemented a new AttributeNameParser this is able to identify [*] expansion and shall be used for array indexes. Also includes tests. 2015-08-17 12:43:05 +02:00
Jan Steemann c558a19511 added tests for timeouts 2015-08-16 23:28:49 +02:00
Frank Celler 8d26dc36ea fixed build on MacOSX via cmake 2015-08-13 15:39:03 +02:00
Jan Steemann 7468b13958 do not test on message strings, but error codes 2015-08-12 22:13:08 +02:00
Jan Steemann f6f10dbd45 removed uncalled functions 2015-08-12 19:46:25 +02:00
Jan Steemann 434d6167db added configuration option `--database.throw-collection-not-loaded-error` 2015-08-11 12:31:42 +02:00
Jan Steemann 330fac6225 some unused function cleanup 2015-08-06 21:25:32 +02:00
Jan Steemann 57fa0e45a9 fixed test when using SSL 2015-07-30 12:20:12 +02:00
Jan Steemann 05a233bec9 fixed failing test 2015-07-29 18:19:01 +02:00
Heiko Kernbach 1d0dfad48c Merge branch 'devel' of github.com:arangodb/arangodb into web-ui 2015-07-29 16:46:03 +02:00
Jan Steemann 6d4395059b use lock guards 2015-07-29 15:15:49 +02:00
Jan Steemann 4920420097 lol httparty 2015-07-29 12:54:51 +02:00
Heiko Kernbach 89975821bb tests 2015-07-28 18:21:40 +02:00
Jan Steemann 6d7ccd7699 move shaper to cxx 2015-07-28 17:38:31 +02:00
Jan Steemann dbb740a705 activate distinct test 2015-07-24 13:41:01 +02:00
Frank Celler 39a08acdce use log level error 2015-07-23 22:43:37 +02:00
Jan Steemann e5dbf725b2 added shorthand notation for attribute names in AQL object literals 2015-07-23 14:24:37 +02:00
Jan Steemann 118fd54fd0 split tests 2015-07-20 10:58:43 +02:00
Jan Steemann 7b1651a68c added even more headers, fixed warnings in boost tests 2015-07-16 21:52:20 +02:00
Jan Steemann c54b5a6ba8 renamed file 2015-07-16 21:06:29 +02:00
Jan Steemann ad30baa08c retry qcache with cluster 2015-07-14 14:53:16 +02:00
Jan Steemann c4e2c8f894 renamed test 2015-07-14 14:07:25 +02:00
Frank Celler 0f1ee72723 fixed version 2015-07-13 18:06:42 +02:00
Jan Steemann 0e42565aa8 added test for HTTP API 2015-06-27 05:50:32 +02:00
Jan Steemann 66eec2ac7e fix invalidation 2015-06-25 16:46:04 +02:00
Jan Steemann 67082b15fd moved AQL TO_* functions to CXX 2015-06-18 21:30:13 +02:00
Jan Steemann 83b326cfc7 moved PUT /_api/simple/all to C++ 2015-06-18 15:34:45 +02:00
Jan Steemann 1174cfd05c added tests 2015-06-12 18:29:54 +02:00
Jan Steemann db25013b10 added test cases 2015-06-12 17:54:45 +02:00
Jan Steemann 3d5ec4d906 speedup for V8-based AQL functions with huge literal array/object parameters 2015-06-12 15:40:08 +02:00
Jan Steemann ff7a00d6e4 fixed edge index selectivity estimates and added tests 2015-06-11 21:22:01 +02:00
Jan Steemann b5896be10b simplifications 2015-06-10 11:53:31 +02:00
Jan Steemann 627343dde4 added missing file to automated tests 2015-06-02 23:24:08 +02:00
Jan Steemann a41a84cc62 fixed test 2015-06-02 15:11:43 +02:00
Michael Hackstein 25aa2a58c3 Temprorarily disabled a neighbors test using the old return format. Will be reactivated soon 2015-05-30 00:41:28 -07:00
Jan Steemann 59ce0b7ad9 test option `--create-database` 2015-05-29 14:37:47 +02:00
Michael Hackstein 86c7f87dd3 Merge branch 'cppTrav2' into devel 2015-05-19 16:17:27 -07:00
Jan Steemann 20f61bd487 do not try to run non-existing test 2015-05-19 16:09:44 +02:00
Max Neunhoeffer ca17b07dca C++-ify associative-multi and add hashCache, adapt edge index. 2015-05-15 16:37:56 -07:00
Jan Steemann 8480c8b000 speed up resizing of edge index 2015-05-12 21:03:30 +02:00
Jan Steemann f6bc0a05e3 added `limit` parameter for export API 2015-05-12 14:16:27 +02:00
Jan Steemann e230b5a373 privatize vector->_memoryZone, too 2015-05-07 14:13:55 +02:00
Jan Steemann 6b412a1c01 Merge branch 'json-privatisierung' of https://github.com/arangodb/arangodb into json-privatisierung 2015-05-07 13:05:12 +02:00
Jan Steemann f1c3039a08 added routing test 2015-05-07 11:42:17 +02:00
Jan Steemann 63138def67 fix location response headers with special characters 2015-05-05 14:00:06 +02:00
Jan Steemann a007a867ee "privatized" TRI_vector_t internals.
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Max Neunhoeffer 371689fcff Fix a double free in a unit test. 2015-05-02 07:00:35 +02:00
Max Neunhoeffer 97f7743d84 Less copying in Traverser. 2015-05-02 06:28:52 +02:00
Jan Steemann ce7ea1e287 fixed test 2015-04-30 23:38:39 +02:00
Max Neunhoeffer fbfe019913 Rename lookup() to find() 2015-04-25 21:41:45 -07:00
Max Neunhoeffer a553548d87 Add a new priority queue implementation.
This blends a deque and a binary heap to implement a priority queue as
it is useful for the shortest path search.
2015-04-25 21:35:40 -07:00
Jan Steemann 260554cb35 added encoding tests 2015-04-24 00:10:05 +02:00
Jan Steemann baa5e39348 removed lib/Basics/utf8-helper.cpp and merged with lib/Basics/Utf8Helper.cpp 2015-04-21 17:53:35 +02:00
Jan Steemann eaa49b11c6 rename file 2015-04-17 17:48:34 +02:00
Jan Steemann 6e23c5330f added restrictions for export API 2015-04-17 00:24:43 +02:00
Jan Steemann d9add3a493 fixed collect in cluster 2015-04-16 21:10:48 +02:00
Jan Steemann c88109679d added tests for collect methods 2015-04-16 19:20:23 +02:00
Jan Steemann 3d6bc8d28a Merge branch 'import-update' into devel 2015-04-14 11:47:57 +02:00
Jan Steemann 92fcdd3e56 issue #1298: Bulk import if data already exists
This change extends the HTTP REST API for bulk imports as follows:

When documents are imported and the `_key` attribute is specified for them, the import can be
used for inserting and updating/replacing documents. Previously, the import could be used for
inserting new documents only, and re-inserting a document with an existing would have failed
with a *unique key constraint violated* error.

The above behavior is still the default. However, the API now allows controlling the behavior
in case of a unique key constraint error via the optional URL parameter `onDuplicate`.

This parameter can have one of the following values:

- `error`: when a unique key constraint error occurs, do not import or update the document but
  report an error. This is the default.

- `update`: when a unique key constraint error occurs, try to (partially) update the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. Only the attributes present in the import data will be
  updated and other attributes already present will be preserved. The number of updated documents
  will be reported in the `updated` attribute of the HTTP API result.

- `replace`: when a unique key constraint error occurs, try to fully replace the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. The number of replaced documents will be reported in the
  `updated` attribute of the HTTP API result.

- `ignore`: when a unique key constraint error occurs, ignore this error. There will be no
  insert, update or replace for the particular document. Ignored documents will be reported
  separately in the `ignored` attribute of the HTTP API result.

The result of the HTTP import API will now contain the attributes `ignored` and `updated`, which
contain the number of ignored and updated documents respectively. These attributes will contain a
value of zero unless the `onDuplicate` URL parameter is set to either `update` or `replace`
(in this case the `updated` attribute may contain non-zero values) or `ignore` (in this case the
`ignored` attribute may contain a non-zero value).
2015-04-14 11:44:33 +02:00
Max Neunhoeffer f34a009885 Do not execute a time critical test on cluster tests. 2015-04-14 09:06:47 +02:00
Alan Plum ecbc6f581f Merge pull request #1287 from arangodb/vulpine-grace
Foxx improvements (fixes #1284, #1257)
2015-04-08 03:23:55 +02:00
Jan Steemann 0f1244f72d better export API cleanup 2015-03-31 18:44:51 +02:00
Jan Steemann 80a99ab23e refactored cursor API 2015-03-30 14:58:51 +02:00
Willi Goesgens 1a88322a6f Add new env-test to the makefile. 2015-03-26 12:20:33 +01:00
Jan Steemann be713c0a0e bumped version number 2015-03-26 11:38:10 +01:00
Alan Plum 03ccf67269 Implemented Repository lifecycle events. See #1257. 2015-03-25 10:35:18 +01:00
Jan Steemann 1298bd40a8 added tests for out-of-memory situations 2015-03-20 08:54:15 +01:00
Jan Steemann cf845bbe5e added test 2015-03-19 16:27:48 +01:00
Jan Steemann 7dc3fc3d5c safely create collections and databases 2015-03-19 15:56:12 +01:00
Jan Steemann 6e3cf20876 higher timeout 2015-03-19 10:36:07 +01:00
Jan Steemann cf33a76f31 removed two tests 2015-03-18 17:56:01 +01:00
Jan Steemann a062280783 added test for empty datafiles 2015-03-18 17:37:28 +01:00
Michael Hackstein 711712fef3 Another improvement of query test 2015-03-13 13:58:06 +01:00
Michael Hackstein 50257a2d5d Made the api-query-anaylsis test more relyable 2015-03-13 13:43:59 +01:00
Michael Hackstein 1e9fdc379f Added AQL queries test to makefile 2015-03-12 16:05:52 +01:00
Michael Hackstein 6e893826dc Further tests for api query analysis 2015-03-12 16:05:46 +01:00
Michael Hackstein 7eb685a5aa Added a test for the new query analysis api. 2015-03-12 16:05:40 +01:00