forked from arangodb/arangodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCHANGELOG
More file actions
2281 lines (1506 loc) · 91.9 KB
/
Copy pathCHANGELOG
File metadata and controls
2281 lines (1506 loc) · 91.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
v1.4.2 (2013-11-20)
-------------------
* ported Windows version to use native Windows API SRWLocks (slim read-write locks)
and condition variables instead of homemade versions
MSDN states the following about the compatibility of SRWLocks and Condition Variables:
Minimum supported client:
Windows Server 2008 [desktop apps | Windows Store apps]
Minimum supported server:
Windows Vista [desktop apps | Windows Store apps]
* fixed issue #662: ArangoDB on Windows hanging
This fixes a deadlock issue that occurred on Windows when documents were written to
a collection at the same time when some other thread tried to drop the collection.
* fixed file-based logging in Windows
the logger complained on startup if the specified log file already existed
* fixed startup of server in daemon mode (`--daemon` startup option)
* fixed a segfault in the AQL optimiser
* issue #671: Method graph.measurement does not exist
* changed Windows condition variable implementation to use Windows native
condition variables
This is an attempt to fix spurious Windows hangs as described in issue #662.
* added documentation for JavaScript traversals
* added --code-page command-line option for Windows version of arangosh
* fixed a problem when creating edges via the web interface.
The problem only occurred if a collection was created with type "document
collection" via the web interface, and afterwards was dropped and re-created
with type "edge collection". If the web interface page was not reloaded,
the old collection type (document) was cached, making the subsequent creation
of edges into the (seeming-to-be-document) collection fail.
The fix is to not cache the collection type in the web interface. Users of
an older version of the web interface can reload the collections page if they
are affected.
* fixed a caching problem in arangosh: if a collection was created using the web
interface, and then removed via arangosh, arangosh did not actually drop the
collection due to caching.
Because the `drop` operation was not carried out, this caused misleading error
messages when trying to re-create the collection (e.g. `cannot create collection:
duplicate name`).
* fixed ALT-introduced characters for arangosh console input on Windows
The Windows readline port was not able to handle characters that are built
using CTRL or ALT keys. Regular characters entered using the CTRL or ALT keys
were silently swallowed and not passed to the terminal input handler.
This did not seem to cause problems for the US keyboard layout, but was a
severe issue for keyboard layouts that require the ALT (or ALT-GR) key to
construct characters. For example, entering the character `{` with a German
keyboard layout requires pressing ALT-GR + 9.
* fixed issue #665: Hash/skiplist combo madness bit my ass
this fixes a problem with missing/non-deterministic rollbacks of inserts in
case of a unique constraint violation into a collection with multiple secondary
indexes (with at least one of them unique)
* fixed issue #664: ArangoDB installer on windows requires drive c:
* partly fixed issue #662: ArangoDB on Windows hanging
This fixes dropping databases on Windows. In previous 1.4 versions on Windows,
one shape collection file was not unloaded and removed when dropping a database,
leaving one directory and one shape collection file in the otherwise-dropped
database directory.
* fixed issue #660: updated documentation on indexes
v1.4.1 (2013-11-08)
-------------------
* performance improvements for skip-list deletes
v1.4.1-rc1 (2013-11-07)
-----------------------
* fixed issue #635: Web-Interface should have a "Databases" Menu for Management
* fixed issue #624: Web-Interface is missing a Database selector
* fixed segfault in bitarray query
* fixed issue #656: Cannot create unique index through web interface
* fixed issue #654: bitarray index makes server down
* fixed issue #653: Slow query
* fixed issue #650: Randonmess of any() should be improved
* made AQL `DOCUMENT()` function polymorphic and work with just one parameter.
This allows using the `DOCUMENT` function like this:
DOCUMENT('users/john')
DOCUMENT([ 'users/john', 'users/amy' ])
in addition to the existing use cases:
DOCUMENT(users, 'users/john')
DOCUMENT(users, 'john')
DOCUMENT(users, [ 'users/john' ])
DOCUMENT(users, [ 'users/john', 'users/amy' ])
DOCUMENT(users, [ 'john', 'amy' ])
* simplified usage of ArangoDB batch API
It is not necessary anymore to send the batch boundary in the HTTP `Content-Type`
header. Previously, the batch API expected the client to send a Content-Type header
of`multipart/form-data; boundary=<some boundary value>`. This is still supported in
ArangoDB 1.5, but clients can now also omit this header. If the header is not
present in a client request, ArangoDB will ignore the request content type and
read the MIME boundary from the beginning of the request body.
This also allows using the batch API with the Swagger "Try it out" feature (which is
not too good at sending a different or even dynamic content-type request header).
* added API method GET `/_api/database/user`
This returns the list of databases a specific user can see without changing the
username/passwd.
* issue #424: Documentation about IDs needs to be upgraded
v1.4.0 (2013-10-29)
-------------------
* fixed issue #648: /batch API is missing from Web Interface API Docummentation (Swagger)
* fixed issue #647: Icon tooltips missing
* fixed issue #646: index creation in web interface
* fixed issue #645: Allow jumping from edge to linked vertices
* merged PR for issue #643: Some minor corrections and a link to "Downloads"
* fixed issue #642: Completion of error handling
* fixed issue #639: compiling v1.4 on maverick produces warnings on -Wstrict-null-sentinel
* fixed issue #634: Web interface bug: Escape does not always propagate
* fixed issue #620: added startup option `--server.default-api-compatibility`
This adds the following changes to the ArangoDB server and clients:
- the server provides a new startup option `--server.default-api-compatibility`.
This option can be used to determine the compatibility of (some) server API
return values. The value for this parameter is a server version number,
calculated as follows: `10000 * major + 100 * minor` (e.g. `10400` for ArangoDB
1.3). The default value is `10400` (1.4), the minimum allowed value is `10300`
(1.3).
When setting this option to a value lower than the current server version,
the server might respond with old-style results to "old" clients, increasing
compatibility with "old" (non-up-to-date) clients.
- the server will on each incoming request check for an HTTP header
`x-arango-version`. Clients can optionally set this header to the API
version number they support. For example, if a client sends the HTTP header
`x-arango-version: 10300`, the server will pick this up and might send ArangoDB
1.3-style responses in some situations.
Setting either the startup parameter or using the HTTP header (or both) allows
running "old" clients with newer versions of ArangoDB, without having to adjust
the clients too much.
- the `location` headers returned by the server for the APIs `/_api/document/...`
and `/_api/collection/...` will have different values depending on the used API
version. If the API compatibility is `10300`, the `location` headers returned
will look like this:
location: /_api/document/....
whereas when an API compatibility of `10400` or higher is used, the `location`
headers will look like this:
location: /_db/<database name>/_api/document/...
Please note that even in the presence of this, old API versions still may not
be supported forever by the server.
* fixed issue #643: Some minor corrections and a link to "Downloads" by @frankmayer
* started issue #642: Completion of error handling
* fixed issue #639: compiling v1.4 on maverick produces warnings on
-Wstrict-null-sentinel
* fixed issue #621: Standard Config needs to be fixed
* added function to manage indexes (web interface)
* improved server shutdown time by signalling shutdown to applicationserver,
logging, cleanup and compactor threads
* added foxx-manager `replace` command
* added foxx-manager `installed` command (a more intuitive alias for `list`)
* fixed issue #617: Swagger API is missing '/_api/version'
* fixed issue #615: Swagger API: Some commands have no parameter entry forms
* fixed issue #614: API : Typo in : Request URL /_api/database/current
* fixed issue #609: Graph viz tool - different background color
* fixed issue #608: arangosh config files - eventually missing in the manual
* fixed issue #607: Admin interface: no core documentation
* fixed issue #603: Aardvark Foxx App Manager
* fixed a bug in type-mapping between AQL user functions and the AQL layer
The bug caused errors like the following when working with collection documents
in an AQL user function:
TypeError: Cannot assign to read only property '_id' of #<ShapedJson>
* create less system collections when creating a new database
This is achieved by deferring collection creation until the collections are actually
needed by ArangoDB. The following collections are affected by the change:
- `_fishbowl`
- `_structures`
v1.4.0-beta2 (2013-10-14)
-------------------------
* fixed compaction on Windows
The compaction on Windows did not ftruncate the cleaned datafiles to a smaller size.
This has been fixed so not only the content of the files is cleaned but also files
are re-created with potentially smaller sizes.
* only the following system collections will be excluded from replication from now on:
- `_replication`
- `_trx`
- `_users`
- `_aal`
- `_fishbowl`
- `_modules`
- `_routing`
Especially the following system collections will now be included in replication:
- `_aqlfunctions`
- `_graphs`
In previous versions of ArangoDB, all system collections were excluded from the
replication.
The change also caused a change in the replication logger and applier:
in previous versions of ArangoDB, only a collection's id was logged for an operation.
This has not caused problems for non-system collections but for system collections
there ids might differ. In addition to a collection id ArangoDB will now also log the
name of a collection for each replication event.
The replication applier will now look for the collection name attribute in logged
events preferrably.
* added database selection to arango-dfdb
* provide foxx-manager, arangodump, and arangorestore in Windows build
* ArangoDB 1.4 will refuse to start if option `--javascript.app-path` is not set.
* added startup option `--server.allow-method-override`
This option can be set to allow overriding the HTTP request method in a request using
one of the following custom headers:
- x-http-method-override
- x-http-method
- x-method-override
This allows bypassing proxies and tools that would otherwise just let certain types of
requests pass. Enabling this option may impose a security risk, so it should only be
used in very controlled environments.
The default value for this option is `false` (no method overriding allowed).
* added "details" URL parameter for bulk import API
Setting the `details` URL parameter to `true` in a call to POST `/_api/import` will make
the import return details about non-imported documents in the `details` attribute. If
`details` is `false` or omitted, no `details` attribute will be present in the response.
This is the same behavior that previous ArangoDB versions exposed.
* added "complete" option for bulk import API
Setting the `complete` URL parameter to `true` in a call to POST `/_api/import` will make
the import completely fail if at least one of documents cannot be imported successfully.
It defaults to `false`, which will make ArangoDB continue importing the other documents
from the import even if some documents cannot be imported. This is the same behaviour that
previous ArangoDB versions exposed.
* added missing swagger documentation for `/_api/log`
* calling `/_api/logs` (or `/_admin/logs`) is only permitted from the `_system` database now.
Calling this API method for/from other database will result in an HTTP 400.
' ported fix from https://github.com/novus/nvd3/commit/0894152def263b8dee60192f75f66700cea532cc
This prevents JavaScript errors from occurring in Chrome when in the admin interface,
section "Dashboard".
* show current database name in web interface (bottom right corner)
* added missing documentation for /_api/import in swagger API docs
* allow specification of database name for replication sync command replication applier
This allows syncing from a master database with a different name than the slave database.
* issue #601: Show DB in prompt
arangosh now displays the database name as part of the prompt by default.
Can change the prompt by using the `--prompt` option, e.g.
> arangosh --prompt "my db is named \"%d\"> "
v1.4.0-beta1 (2013-10-01)
-------------------------
* make the Foxx manager use per-database app directories
Each database now has its own subdirectory for Foxx applications. Each database
can thus use different Foxx applications if required. A Foxx app for a specific
database resides in `<app-path>/databases/<database-name>/<app-name>`.
System apps are shared between all databases. They reside in `<app-path>/system/<app-name>`.
* only trigger an engine reset in development mode for URLs starting with `/dev/`
This prevents ArangoDB from reloading all Foxx applications when it is not
actually necessary.
* changed error code from 10 (bad parameter) to 1232 (invalid key generator) for
errors that are due to an invalid key generator specification when creating a new
collection
* automatic detection of content-type / mime-type for Foxx assets based on filenames,
added possibility to override auto detection
* added endpoint management API at `/_api/endpoint`
* changed HTTP return code of PUT `/_api/cursor` from 400 to 404 in case a
non-existing cursor is referred to
* issue #360: added support for asynchronous requests
Incoming HTTP requests with the headers `x-arango-async: true` or
`x-arango-async: store` will be answered by the server instantly with a generic
HTTP 202 (Accepted) response.
The actual requests will be queued and processed by the server asynchronously,
allowing the client to continue sending other requests without waiting for the
server to process the actually requested operation.
The exact point in time when a queued request is executed is undefined. If an
error occurs during execution of an asynchronous request, the client will not
be notified by the server.
The maximum size of the asynchronous task queue can be controlled using the new
option `--scheduler.maximal-queue-size`. If the queue contains this many number of
tasks and a new asynchronous request comes in, the server will reject it with an
HTTP 500 (internal server error) response.
Results of incoming requests marked with header `x-arango-async: true` will be
discarded by the server immediately. Clients have no way of accessing the result
of such asynchronously executed request. This is just _fire and forget_.
To later retrieve the result of an asynchronously executed request, clients can
mark a request with the header `x-arango-async: keep`. This makes the server
store the result of the request in memory until explicitly fetched by a client
via the `/_api/job` API. The `/_api/job` API also provides methods for basic
inspection of which pending or already finished requests there are on the server,
plus ways for garbage collecting unneeded results.
* Added new option `--scheduler.maximal-queue-size`.
* issue #590: Manifest Lint
* added data dump and restore tools, arangodump and arangorestore.
arangodump can be used to create a logical dump of an ArangoDB database, or
just dedicated collections. It can be used to dump both a collection's structure
(properties and indexes) and data (documents).
arangorestore can be used to restore data from a dump created with arangodump.
arangorestore currently does not re-create any indexes, and doesn't yet handle
referenced documents in edges propertly when doing just partial restores.
This will be fixed until 1.4 stable.
* introduced `--server.database` option for arangosh, arangoimp, and arangob.
The option allows these client tools to use a certain database for their actions.
In arangosh, the current database can be switched at any time using the command
db._useDatabase(<name>);
When no database is specified, all client tools will assume they should use the
default database `_system`. This is done for downwards-compatibility reasons.
* added basic multi database support (alpha)
New databases can be created using the REST API POST `/_api/database` and the
shell command `db._createDatabase(<name>)`.
The default database in ArangoDB is called `_system`. This database is always
present and cannot be deleted by the user. When an older version of ArangoDB is
upgraded to 1.4, the previously only database will automatically become the
`_system` database.
New databases can be created with the above commands, and can be deleted with the
REST API DELETE `/_api/database/<name>` or the shell command `db._dropDatabase(<name>);`.
Deleting databases is still unstable in ArangoDB 1.4 alpha and might crash the
server. This will be fixed until 1.4 stable.
To access a specific database via the HTTP REST API, the `/_db/<name>/` prefix
can be used in all URLs. ArangoDB will check if an incoming request starts with
this prefix, and will automatically pick the database name from it. If the prefix
is not there, ArangoDB will assume the request is made for the default database
(`_system`). This is done for downwards-compatibility reasons.
That means, the following URL pathnames are logically identical:
/_api/document/mycollection/1234
/_db/_system/document/mycollection/1234
To access a different database (e.g. `test`), the URL pathname would look like this:
/_db/test/document/mycollection/1234
New databases can also be created and existing databases can only be dropped from
within the default database (`_system`). It is not possible to drop the `_system`
database itself.
Cross-database operations are unintended and unsupported. The intention of the
multi-database feature is to have the possibility to have a few databases managed
by ArangoDB in parallel, but to only access one database at a time from a connection
or a request.
When accessing the web interface via the URL pathname `/_admin/html/` or `/_admin/aardvark`,
the web interface for the default database (`_system`) will be displayed.
To access the web interface for a different database, the database name can be
put into the URLs as a prefix, e.g. `/_db/test/_admin/html` or
`/_db/test/_admin/aardvark`.
All internal request handlers and also all user-defined request handlers and actions
(including Foxx) will only get to see the unprefixed URL pathnames (i.e. excluding
any database name prefix). This is to ensure downwards-compatibility.
To access the name of the requested database from any action (including Foxx), use
use `req.database`.
For example, when calling the URL `/myapp/myaction`, the content of `req.database`
will be `_system` (the default database because no database got specified) and the
content of `req.url` will be `/myapp/myaction`.
When calling the URL `/_db/test/myapp/myaction`, the content of `req.database` will be
`test`, and the content of `req.url` will still be `/myapp/myaction`.
* Foxx now excludes files starting with . (dot) when bundling assets
This mitigates problems with editor swap files etc.
* made the web interface a Foxx application
This change caused the files for the web interface to be moved from `html/admin` to
`js/apps/aardvark` in the file system.
The base URL for the admin interface changed from `_admin/html/index.html` to
`_admin/aardvark/index.html`.
The "old" redirection to `_admin/html/index.html` will now produce a 404 error.
When starting ArangoDB with the `--upgrade` option, this will automatically be remedied
by putting in a redirection from `/` to `/_admin/aardvark/index.html`, and from
`/_admin/html/index.html` to `/_admin/aardvark/index.html`.
This also obsoletes the following configuration (command-line) options:
- `--server.admin-directory`
- `--server.disable-admin-interface`
when using these now obsolete options when the server is started, no error is produced
for downwards-compatibility.
* changed User-Agent value sent by arangoimp, arangosh, and arangod from "VOC-Agent" to
"ArangoDB"
* changed journal file creation behavior as follows:
Previously, a journal file for a collection was always created when a collection was
created. When a journal filled up and became full, the current journal was made a
datafile, and a new (empty) journal was created automatically. There weren't many
intended situations when a collection did not have at least one journal.
This is changed now as follows:
- when a collection is created, no journal file will be created automatically
- when there is a write into a collection without a journal, the journal will be
created lazily
- when there is a write into a collection with a full journal, a new journal will
be created automatically
From the end user perspective, nothing should have changed, except that there is now
less disk usage for empty collections. Disk usage of infrequently updated collections
might also be reduced significantly by running the `rotate()` method of a collection,
and not writing into a collection subsequently.
* added method `collection.rotate()`
This allows premature rotation of a collection's current journal file into a (read-only)
datafile. The purpose of using `rotate()` is to prematurely allow compaction (which is
performed on datafiles only) on data, even if the journal was not filled up completely.
Using `rotate()` may make sense in the following scenario:
c = db._create("test");
for (i = 0; i < 1000; ++i) {
c.save(...); // insert lots of data here
}
...
c.truncate(); // collection is now empty
// only data in datafiles will be compacted by following compaction runs
// all data in the current journal would not be compacted
// calling rotate will make the current journal a datafile, and thus make it
// eligible for compaction
c.rotate();
Using `rotate()` may also be useful when data in a collection is known to not change
in the immediate future. After having completed all write operations on a collection,
performing a `rotate()` will reduce the size of the current journal to the actually
required size (remember that journals are pre-allocated with a specific size) before
making the journal a datafile. Thus `rotate()` may cause disk space savings, even if
the datafiles does not qualify for compaction after rotation.
Note: rotating the journal is asynchronous, so that the actual rotation may be executed
after `rotate()` returns to the caller.
* changed compaction to merge small datafiles together (up to 3 datafiles are merged in
a compaction run)
In the regular case, this should leave less small datafiles stay around on disk and allow
using less file descriptors in total.
* added AQL MINUS function
* added AQL UNION_DISTINCT function (more efficient than combination of `UNIQUE(UNION())`)
* updated mruby to 2013-08-22
* issue #587: Add db._create() in help for startup arangosh
* issue #586: Share a link on installation instructions in the User Manual
* issue #585: Bison 2.4 missing on Mac for custom build
* issue #584: Web interface images broken in devel
* issue #583: Small documentation update
* issue #581: Parameter binding for attributes
* issue #580: Small improvements (by @guidoreina)
* issue #577: Missing documentation for collection figures in implementor manual
* issue #576: Get disk usage for collections and graphs
This extends the result of the REST API for /_api/collection/figures with
the attributes `compactors.count`, `compactors.fileSize`, `shapefiles.count`,
and `shapefiles.fileSize`.
* issue #575: installing devel version on mac (low prio)
* issue #574: Documentation (POST /_admin/routing/reload)
* issue #558: HTTP cursors, allow count to ignore LIMIT
v1.4.0-alpha1 (2013-08-02)
--------------------------
* added replication. check online manual for details.
* added server startup options `--server.disable-replication-logger` and
`--server.disable-replication-applier`
* removed action deployment tool, this now handled with Foxx and its manager or
by kaerus node utility
* fixed a server crash when using byExample / firstExample inside a transaction
and the collection contained a usable hash/skiplist index for the example
* defineHttp now only expects a single context
* added collection detail dialog (web interface)
Shows collection properties, figures (datafiles, journals, attributes, etc.)
and indexes.
* added documents filter (web interface)
Allows searching for documents based on attribute values. One or many filter
conditions can be defined, using comparison operators such as '==', '<=', etc.
* improved AQL editor (web interface)
Editor supports keyboard shortcuts (Submit, Undo, Redo, Select).
Editor allows saving and reusing of user-defined queries.
Added example queries to AQL editor.
Added comment button.
* added document import (web interface)
Allows upload of JSON-data from files. Files must have an extension of .json.
* added dashboard (web interface)
Shows the status of replication and multiple system charts, e.g.
Virtual Memory Size, Request Time, HTTP Connections etc.
* added API method `/_api/graph` to query all graphs with all properties.
* added example queries in web interface AQL editor
* added arango.reconnect(<host>) method for arangosh to dynamically switch server or
user name
* added AQL range operator `..`
The `..` operator can be used to easily iterate over a sequence of numeric
values. It will produce a list of values in the defined range, with both bounding
values included.
Example:
2010..2013
will produce the following result:
[ 2010, 2011, 2012, 2013 ]
* added AQL RANGE function
* added collection.first(count) and collection.last(count) document access functions
These functions allow accessing the first or last n documents in a collection. The order
is determined by document insertion/update time.
* added AQL INTERSECTION function
* INCOMPATIBLE CHANGE: changed AQL user function namespace resolution operator from `:` to `::`
AQL user-defined functions were introduced in ArangoDB 1.3, and the namespace resolution
operator for them was the single colon (`:`). A function call looked like this:
RETURN mygroup:myfunc()
The single colon caused an ambiguity in the AQL grammar, making it indistinguishable from
named attributes or the ternary operator in some cases, e.g.
{ mygroup:myfunc ? mygroup:myfunc }
The change of the namespace resolution operator from `:` to `::` fixes this ambiguity.
Existing user functions in the database will be automatically fixed when starting ArangoDB
1.4 with the `--upgrade` option. However, queries using user-defined functions need to be
adjusted on the client side to use the new operator.
* allow multiple AQL LET declarations separated by comma, e.g.
LET a = 1, b = 2, c = 3
* more useful AQL error messages
The error position (line/column) is more clearly indicated for parse errors.
Additionally, if a query references a collection that cannot be found, the error
message will give a hint on the collection name
* changed return value for AQL `DOCUMENT` function in case document is not found
Previously, when the AQL `DOCUMENT` function was called with the id of a document and
the document could not be found, it returned `undefined`. This value is not part of the
JSON type system and this has caused some problems.
Starting with ArangoDB 1.4, the `DOCUMENT` function will return `null` if the document
looked for cannot be found.
In case the function is called with a list of documents, it will continue to return all
found documents, and will not return `null` for non-found documents. This has not changed.
* added single line comments for AQL
Single line comments can be started with a double forward slash: `//`.
They end at the end of the line, or the end of the query string, whichever is first.
* fixed documentation issues #567, #568, #571.
* added collection.checksum(<withData>) method to calculate CRC checksums for
collections
This can be used to
- check if data in a collection has changed
- compare the contents of two collections on different ArangoDB instances
* issue #565: add description line to aal.listAvailable()
* fixed several out-of-memory situations when double freeing or invalid memory
accesses could happen
* less msyncing during the creation of collections
This is achieved by not syncing the initial (standard) markers in shapes collections.
After all standard markers are written, the shapes collection will get synced.
* renamed command-line option `--log.filter` to `--log.source-filter` to avoid
misunderstandings
* introduced new command-line option `--log.content-filter` to optionally restrict
logging to just specific log messages (containing the filter string, case-sensitive).
For example, to filter on just log entries which contain `ArangoDB`, use:
--log.content-filter "ArangoDB"
* added optional command-line option `--log.requests-file` to log incoming HTTP
requests to a file.
When used, all HTTP requests will be logged to the specified file, containing the
client IP address, HTTP method, requests URL, HTTP response code, and size of the
response body.
* added a signal handler for SIGUSR1 signal:
when ArangoDB receives this signal, it will respond all further incoming requests
with an HTTP 503 (Service Unavailable) error. This will be the case until another
SIGUSR1 signal is caught. This will make ArangoDB start serving requests regularly
again. Note: this is not implemented on Windows.
* limited maximum request URI length to 16384 bytes:
Incoming requests with longer request URIs will be responded to with an HTTP
414 (Request-URI Too Long) error.
* require version 1.0 or 1.1 in HTTP version signature of requests sent by clients:
Clients sending requests with a non-HTTP 1.0 or non-HTTP 1.1 version number will
be served with an HTTP 505 (HTTP Version Not Supported) error.
* updated manual on indexes:
using system attributes such as `_id`, `_key`, `_from`, `_to`, `_rev` in indexes is
disallowed and will be rejected by the server. This was the case since ArangoDB 1.3,
but was not properly documented.
* issue #563: can aal become a default object?
aal is now a prefab object in arangosh
* prevent certain system collections from being renamed, dropped, or even unloaded.
Which restrictions there are for which system collections may vary from release to
release, but users should in general not try to modify system collections directly
anyway.
Note: there are no such restrictions for user-created collections.
* issue #559: added Foxx documentation to user manual
* added server startup option `--server.authenticate-system-only`. This option can be
used to restrict the need for HTTP authentication to internal functionality and APIs,
such as `/_api/*` and `/_admin/*`.
Setting this option to `true` will thus force authentication for the ArangoDB APIs
and the web interface, but allow unauthenticated requests for other URLs (including
user defined actions and Foxx applications).
The default value of this option is `false`, meaning that if authentication is turned
on, authentication is still required for *all* incoming requests. Only by setting the
option to `true` this restriction is lifted and authentication becomes required for
URLs starting with `/_` only.
Please note that authentication still needs to be enabled regularly by setting the
`--server.disable-authentication` parameter to `false`. Otherwise no authentication
will be required for any URLs as before.
* protect collections against unloading when there are still document barriers around.
* extended cap constraints to optionally limit the active data size in a collection to
a specific number of bytes.
The arguments for creating a cap constraint are now:
`collection.ensureCapConstraint(<count>, <byteSize>);`
It is supported to specify just a count as in ArangoDB 1.3 and before, to specify
just a fileSize, or both. The first met constraint will trigger the automated
document removal.
* added `db._exists(doc)` and `collection.exists(doc)` for easy document existence checks
* added API `/_api/current-database` to retrieve information about the database the
client is currently connected to (note: the API `/_api/current-database` has been
removed in the meantime. The functionality is accessible via `/_api/database/current`
now).
* ensure a proper order of tick values in datafiles/journals/compactors.
any new files written will have the _tick values of their markers in order. for
older files, there are edge cases at the beginning and end of the datafiles when
_tick values are not properly in order.
* prevent caching of static pages in PathHandler.
whenever a static page is requested that is served by the general PathHandler, the
server will respond to HTTP GET requests with a "Cache-Control: max-age=86400" header.
* added "doCompact" attribute when creating collections and to collection.properties().
The attribute controls whether collection datafiles are compacted.
* changed the HTTP return code from 400 to 404 for some cases when there is a referral
to a non-existing collection or document.
* introduced error code 1909 `too many iterations` that is thrown when graph traversals
hit the `maxIterations` threshold.
* optionally limit traversals to a certain number of iterations
the limitation can be achieved via the traversal API by setting the `maxIterations`
attribute, and also via the AQL `TRAVERSAL` and `TRAVERSAL_TREE` functions by setting
the same attribute. If traversals are not limited by the end user, a server-defined
limit for `maxIterations` may be used to prevent server-side traversals from running
endlessly.
* added graph traversal API at `/_api/traversal`
* added "API" link in web interface, pointing to REST API generated with Swagger
* moved "About" link in web interface into "links" menu
* allow incremental access to the documents in a collection from out of AQL
this allows reading documents from a collection chunks when a full collection scan
is required. memory usage might be must lower in this case and queries might finish
earlier if there is an additional LIMIT statement
* changed AQL COLLECT to use a stable sort, so any previous SORT order is preserved
* issue #547: Javascript error in the web interface
* issue #550: Make AQL graph functions support key in addition to id
* issue #526: Unable to escape when an errorneous command is entered into the js shell
* issue #523: Graph and vertex methods for the javascript api
* issue #517: Foxx: Route parameters with captial letters fail
* issue #512: Binded Parameters for LIMIT
v1.3.3 (2013-08-01)
-------------------
* issue #570: updateFishbowl() fails once
* updated and fixed generated examples
* issue #559: added Foxx documentation to user manual
* added missing error reporting for errors that happened during import of edges
v1.3.2 (2013-06-21)
-------------------
* fixed memleak in internal.download()
* made the shape-collection journal size adaptive:
if too big shapes come in, a shape journal will be created with a big-enough size
automatically. the maximum size of a shape journal is still restricted, but to a
very big value that should never be reached in practice.
* fixed a segfault that occurred when inserting documents with a shape size bigger
than the default shape journal size (2MB)
* fixed a locking issue in collection.truncate()
* fixed value overflow in accumulated filesizes reported by collection.figures()
* issue #545: AQL FILTER unnecessary (?) loop
* issue #549: wrong return code with --daemon
v1.3.1 (2013-05-24)
-------------------
* removed currently unused _ids collection
* fixed usage of --temp-path in aranogd and arangosh
* issue #540: suppress return of temporary internal variables in AQL
* issue #530: ReferenceError: ArangoError is not a constructor
* issue #535: Problem with AQL user functions javascript API
* set --javascript.app-path for test execution to prevent startup error
* issue #532: Graph _edgesCache returns invalid data?
* issue #531: Arangod errors
* issue #529: Really weird transaction issue
* fixed usage of --temp-path in aranogd and arangosh
v1.3.0 (2013-05-10)
-------------------
* fixed problem on restart ("datafile-xxx is not sealed") when server was killed
during a compaction run
* fixed leak when using cursors with very small batchSize
* issue #508: `unregistergroup` function not mentioned in http interface docs
* issue #507: GET /_api/aqlfunction returns code inside parentheses
* fixed issue #489: Bug in aal.install
* fixed issue 505: statistics not populated on MacOS
v1.3.0-rc1 (2013-04-24)
-----------------------
* updated documentation for 1.3.0
* added node modules and npm packages
* changed compaction to only compact datafiles with more at least 10% of dead
documents (byte size-wise)
* issue #498: fixed reload of authentication info when using
`require("org/arangodb/users").reload()`
* issue #495: Passing an empty array to create a document results in a
"phantom" document
* added more precision for requests statistics figures
* added "sum" attribute for individual statistics results in statistics API
at /_admin/statistics
* made "limit" an optional parameter in AQL function NEAR().
limit can now be either omitted completely, or set to 0. If so, an internal
default value (currently 100) will be applied for the limit.
* issue #481
* added "attributes.count" to output of `collection.figures()`
this also affects the REST API /_api/collection/<name>/figures
* added IndexedPropertyGetter for ShapedJson objects
* added API for user-defined AQL functions
* issue #475: A better error message for deleting a non-existent graph
* issue #474: Web interface problems with the JS Shell
* added missing documentation for AQL UNION function