Jingyu Zhou
7fd772803e
Better handle API version in mako.c
...
Only use fdb_future_get_int64 for API version >= 620.
2019-07-18 13:47:43 -07:00
Jingyu Zhou
7c0aca5b0c
Fix review comments: release notes and formatting
2019-07-18 10:26:39 -07:00
Jingyu Zhou
4b36099097
Update fdbclient/ReadYourWrites.actor.cpp
...
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-18 10:10:36 -07:00
Jingyu Zhou
e8e48e0dbd
Fix size calculation
...
Mutations in writeRangeToNativeTransaction() is already counted, so there is no
need to count them again.
2019-07-16 15:21:13 -07:00
Jingyu Zhou
80b1a9c0ed
Add release notes for approximate transaction size
2019-07-16 13:36:56 -07:00
Jingyu Zhou
14cb21285f
Remove futureGetVersion in C binding and FutureVersion in Python binding
2019-07-16 10:46:07 -07:00
Jingyu Zhou
d5cc2beb5f
Update fdbclient/ReadYourWrites.actor.cpp
...
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-16 10:33:25 -07:00
Jingyu Zhou
94563464cb
Update bindings/c/foundationdb/fdb_c.h
...
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-16 10:15:47 -07:00
Jingyu Zhou
562bf6511a
Fix approximate size calculation
2019-07-12 16:53:37 -07:00
Jingyu Zhou
990c205f70
Push a string to stack for getApproximateSize in binding testers
...
Because different bindings may issue different limit for get_range calls, it is
impossible to return the same size value for getApproximateSize API. So we just
push a string to make sure binding test results are the same. Use another unit
test to make sure the sizes got back are monotonically increasing.
2019-07-12 14:15:20 -07:00
Jingyu Zhou
2dcc3cfd0a
Deprecate fdb_future_get_version for version 620
...
Use fdb_future_get_int64 in all bindings.
2019-07-11 21:17:31 -07:00
Jingyu Zhou
b2a89c8b77
Address review comments for PR #1756
...
Use fdb_future_get_int64 for language bindings and get rid of using Version
with getApproximateSize API.
2019-07-11 16:41:29 -07:00
Jingyu Zhou
a82662a3bc
Update bindings/c/foundationdb/fdb_c.h
...
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-11 14:00:47 -07:00
Jingyu Zhou
a8cd25bc46
Fix python3 test failure
...
Both key and value has to be of type bytes.
2019-07-10 21:55:24 -07:00
Jingyu Zhou
55d1d62ee3
Fix python tests and use 620 version for C test
2019-07-10 15:19:49 -07:00
Jingyu Zhou
20ed0bf802
Add get_approximate_size python unit test
2019-07-10 15:03:24 -07:00
Jingyu Zhou
c70a426f04
Update approximate size calculation
2019-07-10 15:00:50 -07:00
Jingyu Zhou
2c2836c6c7
Require API version to 620 for approximate size
2019-07-10 15:00:50 -07:00
Jingyu Zhou
a665de724a
Fix documentation
2019-07-10 15:00:50 -07:00
Jingyu Zhou
5d1437c8e0
Push int directly to stack for getApproximateSize
2019-07-10 15:00:50 -07:00
Jingyu Zhou
0802df2c8f
Convert size from int to string before pushing onto stack
...
Using int is troublesome because the size of int can be different from the
desired 64 bits. So, using a string representation seems to be more consistent.
2019-07-10 14:58:35 -07:00
Jingyu Zhou
9d12843a26
Push size as tuple to stack
2019-07-10 14:58:35 -07:00
Jingyu Zhou
78a5838312
Address reivew comments for PR #1756
2019-07-10 14:58:07 -07:00
Jingyu Zhou
14f7082428
Update binding API test documentation for GET_APPROXIMATE_SIZE
2019-07-10 14:58:07 -07:00
Jingyu Zhou
d5aaba3b15
Minor code fix
2019-07-10 14:58:07 -07:00
Jingyu Zhou
7d6a317f2c
Fix a type error
2019-07-10 14:58:07 -07:00
Jingyu Zhou
0ad2d2d16e
Add binding test for getApproximateSize API
2019-07-10 14:58:07 -07:00
Jingyu Zhou
cc47641bd3
Fix flow binding to use int64_t for get_approximate_size
2019-07-10 14:58:07 -07:00
Jingyu Zhou
c17b314c3b
Add a C binding unit test for fdb_transaction_get_approximate_size
2019-07-10 14:58:07 -07:00
Jingyu Zhou
8ef8b59fcc
Use ThreadFuture for getApproximateSize
...
Change return type to int64_t and fix C and Python binding to use the correct
type.
2019-07-10 14:58:07 -07:00
Jingyu Zhou
c91e712576
Add Python txn get_approximate_size API and test
2019-07-10 14:57:39 -07:00
Jingyu Zhou
4c0e824456
Include unactorcompiler.h at the end of *.actor.h
2019-07-10 14:51:52 -07:00
Jingyu Zhou
4a15be3643
Code format for fdbJNI.cpp
2019-07-10 14:51:52 -07:00
Jingyu Zhou
c50a675bf0
Add transaction getApproximateSize() API
...
The size is the summation of expected size of mutations, read conflict ranges,
and write conflict ranges.
2019-07-10 14:51:52 -07:00
Evan Tschannen
7e919e361c
Merge pull request #1817 from etschannen/feature-proxy-forward
...
Proxies will forward clients to the next generation
2019-07-10 13:53:12 -07:00
Alec Grieser
a72d5b526a
Merge pull request #1767 from ajbeamon/fix-mvc-default-options
...
Make default and persistent options specifyable via annotations to fdb.options...
2019-07-10 13:19:45 -07:00
Evan Tschannen
e02dae5e0b
Merge pull request #1760 from ajbeamon/track-run-loop-busyness
...
Track run loop busyness and report it in status.
2019-07-10 10:47:14 -07:00
A.J. Beamon
38ae352fc5
Fix a merge issue
2019-07-10 09:46:23 -07:00
A.J. Beamon
69d7c4f79c
Merge branch 'master' into track-run-loop-busyness
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
# flow/Net2.actor.cpp
# flow/network.h
2019-07-09 18:39:23 -07:00
A.J. Beamon
a174178be1
Merge branch 'master' into fix-mvc-default-options
...
# Conflicts:
# fdbclient/NativeAPI.actor.cpp
2019-07-09 18:33:14 -07:00
Evan Tschannen
49121172ea
Merge pull request #1795 from alexmiller-apple/peek-from-satellites
...
Log Routers will prefer to peek from satellite logs.
2019-07-09 17:38:57 -07:00
Evan Tschannen
c8d86516f0
Merge pull request #1800 from ajbeamon/rename-datacenter-version-difference
...
Rename datacenter_version_difference to datacenter_lag and include bo…
2019-07-09 17:29:27 -07:00
Evan Tschannen
7ad0d1a12b
Merge branch 'master' into feature-proxy-forward
...
# Conflicts:
# fdbclient/NativeAPI.actor.cpp
2019-07-09 17:26:15 -07:00
Evan Tschannen
a53bf9289a
remove SnapTestAttrition because it is causing correctness errors
2019-07-09 17:13:24 -07:00
Evan Tschannen
001abec29d
fixed a compiler error, buggified a new knob
2019-07-09 16:50:59 -07:00
Evan Tschannen
64aee73c4f
we only need to hold the ReplyPromise for messages that we are going to forward to new proxies
2019-07-09 16:47:56 -07:00
Meng Xu
cce00bb413
Merge pull request #1808 from ajbeamon/improved-transaction-metrics
...
Improve TransactionMetrics
2019-07-09 16:46:17 -07:00
Evan Tschannen
b27a909f3a
fix: onDisconnectOrFailure can spuriously trigger
2019-07-09 16:38:59 -07:00
Evan Tschannen
d032d7fcf9
fix: if we get a broken_promise from the actor, wait to get the real error from the store
2019-07-09 16:37:54 -07:00
A.J. Beamon
15ecba59db
Merge branch 'master' into fix-mvc-default-options
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
2019-07-09 15:28:12 -07:00