1
0
Fork 0
arangodb/lib/Basics
Jan 8e65fbb539 Bug fix/issues 1708 (#3060)
* we must now ignore that datafiles are not sealed

this is because an unsealed datafile may have been produced by
renaming multiple journals to datafiles at server start

* acquire collection count after we have acquired the lock

* count the null byte as well

* fix count value acquisition

* send query fragments to the correct servers, even after failover or when a follower drops

the problem with using the previous shard-based approach is that responsibilities for shards may change at runtime
however, an AQL query must send all requests for the query to the initially used servers.
if there is a failover while the query is executing, we must still send all following requests to the same servers, and not the newly responsible servers
otherwise we potentially would try to get data from a query from server B while the query was only
instanciated on server A.
2017-08-17 21:48:27 +02:00
..
ArangoGlobalContext.cpp comment out the windows unhandled exception handler 2017-04-24 15:13:40 +02:00
ArangoGlobalContext.h
AssocHelpers.h
AssocMulti.h fix crashes 2017-04-25 15:47:11 +02:00
AssocMultiHelpers.h fix crashes 2017-04-25 15:47:11 +02:00
AssocUnique.h fix crashes 2017-04-25 15:47:11 +02:00
AssocUniqueHelpers.h fix crashes 2017-04-25 15:47:11 +02:00
AttributeNameParser.cpp improve error messages when trying to create indices 2017-03-06 19:10:46 +01:00
AttributeNameParser.h simplified some ostream kirmes 2017-03-06 14:44:56 +01:00
Common.h prevent macro redefinition 2017-05-29 17:35:20 +02:00
ConditionLocker.cpp added isLocked() flag for ConditionLocker 2017-04-27 13:01:30 +02:00
ConditionLocker.h added isLocked() flag for ConditionLocker 2017-04-27 13:01:30 +02:00
ConditionVariable.cpp
ConditionVariable.h
ConditionalDeleter.h
DataProtector.cpp ASAN runtime errors 2017-04-28 11:57:20 +02:00
DataProtector.h fix compile warnings with newer compilers (#2604) 2017-06-22 12:28:19 +02:00
DeadlockDetector.h
Endian.h check endianess when storing ints 2017-05-31 10:52:32 +02:00
EnumIterator.h show collection load time in slow queries 2017-03-17 09:28:53 +01:00
Exceptions.cpp remove unused error code 2017-05-22 13:53:10 +02:00
Exceptions.h remove unused error code 2017-05-22 13:53:10 +02:00
FileResult.h simplification: FileResult does only support ok, no additional result 2017-03-08 13:01:20 +01:00
FileResultString.h simplification: FileResult does only support ok, no additional result 2017-03-08 13:01:20 +01:00
FileUtils.cpp sync ENGINE file 2017-05-30 16:39:30 +02:00
FileUtils.h sync ENGINE file 2017-05-30 16:39:30 +02:00
FixedSizeAllocator.h
HybridLogicalClock.cpp
HybridLogicalClock.h
IndexBucket.h warn before we run out of file descriptors 2017-03-29 02:35:46 +02:00
LdapUrlParser.cpp fix parsing for URLs starting with ldap:// 2017-04-03 13:06:31 +02:00
LdapUrlParser.h added LDAP url parser 2017-03-29 15:34:49 +02:00
LocalTaskQueue.cpp avoid double-copying of shared ptrs 2017-05-22 11:28:18 +02:00
LocalTaskQueue.h avoid double-copying of shared ptrs 2017-05-22 11:28:18 +02:00
Locking.h clean up write lockers a bit 2017-02-16 15:44:45 +01:00
LruCache.h
Mutex.cpp to be but not to bee (#2708) 2017-07-02 12:54:21 +02:00
Mutex.h fixed windows unsupported assert (#2707) 2017-07-02 09:17:21 +02:00
MutexLocker.h fix small issues found by cov-build (#2746) 2017-07-07 12:36:11 +02:00
MutexUnlocker.h re-introduce one lock for read/write (#2686) 2017-06-28 15:11:56 +02:00
Nonce.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
Nonce.h
OpenFilesTracker.cpp warn before we run out of file descriptors 2017-03-29 02:35:46 +02:00
OpenFilesTracker.h warn before we run out of file descriptors 2017-03-29 02:35:46 +02:00
PerformanceLogScope.h simplified performance logging 2017-02-27 22:22:41 +01:00
ReadLocker.h Feature/hugepages (#2497) 2017-05-25 16:04:23 +02:00
ReadUnlocker.h Feature/auth context (#2704) 2017-07-02 23:15:57 +02:00
ReadWriteLock.cpp use ReadWriteLockCPP11 instead of ReadWriteLock 2017-03-29 11:13:50 +02:00
ReadWriteLock.h use ReadWriteLockCPP11 instead of ReadWriteLock 2017-03-29 11:13:50 +02:00
ReadWriteLockCPP11.cpp delete useless DEV_TIMERS, fix rwlockcpp11 2017-03-28 22:38:27 +02:00
ReadWriteLockCPP11.h delete useless DEV_TIMERS, fix rwlockcpp11 2017-03-28 22:38:27 +02:00
Result.h properly compact ranges so data actually gets deleted after drop etc. (#2771) 2017-07-11 21:47:16 +02:00
RocksDBLogger.cpp Bug fix/issues 1708 (#3060) 2017-08-17 21:48:27 +02:00
RocksDBLogger.h enable rocksdb logger 2017-05-12 12:03:54 +02:00
RocksDBUtils.cpp adjust error code from lock timeout to conflict 2017-05-18 10:34:41 +02:00
RocksDBUtils.h optimizations 2017-05-17 23:41:16 +02:00
RollingVector.h
SameThreadAsserter.h ensure that JobGuards are started and ended in the same thread 2017-02-27 22:41:58 +01:00
ScopeGuard.h
SmallVector.h
StaticStrings.cpp Feature/move shard fix (#2626) 2017-06-26 16:55:01 +02:00
StaticStrings.h Feature/move shard fix (#2626) 2017-06-26 16:55:01 +02:00
StringBuffer.cpp Bug fix/pre release woes (#2988) 2017-08-10 09:39:28 +02:00
StringBuffer.h Bug fix/pre release woes (#2988) 2017-08-10 09:39:28 +02:00
StringHeap.cpp
StringHeap.h
StringRef.cpp simplifications 2017-03-02 22:20:51 +01:00
StringRef.h
StringUtils.cpp RocksDB WAL entries for transactions 2017-04-26 18:54:55 +02:00
StringUtils.h
Thread.cpp suppress non-error warnings on shutdown 2017-05-09 12:40:45 +02:00
Thread.h
TimedAction.h give up waiting for V8 context after some time 2017-02-27 23:08:49 +01:00
Utf8Helper.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
Utf8Helper.h Geo index update, renaming 2017-05-11 13:19:51 +02:00
VERSION.in
VPackStringBufferAdapter.h
VelocyPackDumper.cpp
VelocyPackDumper.h
VelocyPackHelper.cpp cleanup error codes a bit 2017-06-09 14:50:05 +02:00
VelocyPackHelper.h Feature/auth context (#2704) 2017-07-02 23:15:57 +02:00
WorkDescription.h
WorkMonitor.cpp this time fix the leak properly 2017-03-17 14:45:55 +01:00
WorkMonitor.h fix shutdown races 2017-05-09 10:24:40 +02:00
WorkMonitorDummy.cpp fix shutdown races 2017-05-09 10:24:40 +02:00
WriteLocker.h Feature/hugepages (#2497) 2017-05-25 16:04:23 +02:00
WriteUnlocker.h Feature/auth context (#2704) 2017-07-02 23:15:57 +02:00
application-exit.cpp
application-exit.h
asio-helper.h
build-date.h.in
build-repository.h.in
build.h.in
conversions.cpp Geo index update, renaming 2017-05-11 13:19:51 +02:00
conversions.h
crc1.S
crc4.S
csv.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
csv.h
debugging.cpp Bug fix/prevent multiple journals (#3027) 2017-08-15 23:02:08 +02:00
debugging.h simplified some ostream kirmes 2017-03-06 14:44:56 +01:00
directories.h.in
encoding.h comments 2017-03-29 01:06:47 +02:00
error.cpp
error.h
errors.dat Fixed distributeShardsLike bug in creating collections. numberOfShard… (#2895) 2017-08-03 19:38:16 +02:00
fasthash.cpp
fasthash.h
files.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
files.h
fpconv.cpp
fpconv.h
gcd.h
hashes.cpp fixed issue #2490 2017-05-22 09:40:08 +02:00
hashes.h honor unaligned memory access issues 2017-05-03 11:05:51 +02:00
json.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
json.h
levenshtein.cpp
levenshtein.h
local-configuration-win.h
locks-posix.cpp delete useless DEV_TIMERS, fix rwlockcpp11 2017-03-28 22:38:27 +02:00
locks-posix.h delete useless DEV_TIMERS, fix rwlockcpp11 2017-03-28 22:38:27 +02:00
locks-win32.cpp
locks-win32.h
locks.h
make_unique.h
memory-map-posix.cpp
memory-map-posix.h try to make it work on older Linux kernels (pre 3.4) (#2642) 2017-06-22 14:23:04 +02:00
memory-map-win32.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
memory-map-win32.h do not include our datafiles in core files (#2630) 2017-06-22 12:34:27 +02:00
memory-map.h
memory.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
memory.h remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
messages.h Add bye bye messages 2017-05-12 17:59:36 +02:00
mimetypes.cpp
mimetypes.dat
mimetypes.h
operating-system.h added wrapper for fdopen (#2645) 2017-06-22 19:38:08 +02:00
powers.h
prime-numbers.cpp
prime-numbers.h
process-utils.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
process-utils.h
short_alloc.h
socket-utils.cpp remove obsolete comment 2017-05-08 15:57:20 +02:00
socket-utils.h fix warning 2017-04-27 15:51:19 +02:00
system-compiler.h make @dothebart happier 2017-03-29 15:04:54 +02:00
system-functions.cpp Fixed typedefs 2017-04-26 19:27:11 +02:00
system-functions.h merge in cpp & js from 3.1.18 yet to do tests 2017-04-21 15:41:05 +02:00
terminal-utils-posix.cpp
terminal-utils-win32.cpp
terminal-utils.cpp
terminal-utils.h
threads-posix.cpp fix shutdown issue, modernize thread creation a bit 2017-04-19 16:57:53 +02:00
threads-posix.h
threads-win32.cpp debugging 2017-05-02 17:19:38 +02:00
threads-win32.h
threads.h
tri-strings.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
tri-strings.h
tri-zip.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
tri-zip.h fix adler32 function 2017-05-18 15:40:35 +02:00
vector.cpp remove memset parameter from TRI_Allocate signature (#2993) 2017-08-08 16:07:32 +02:00
vector.h
voc-errors.cpp Fixed distributeShardsLike bug in creating collections. numberOfShard… (#2895) 2017-08-03 19:38:16 +02:00
voc-errors.h Fixed distributeShardsLike bug in creating collections. numberOfShard… (#2895) 2017-08-03 19:38:16 +02:00
voc-mimetypes.cpp
voc-mimetypes.h
win-utils.cpp GetVersion() is deprecated 2017-05-24 10:58:15 +02:00
win-utils.h enable colors on recent enough windows versions 2017-05-23 18:18:07 +02:00
xxhash.cpp
xxhash.h