Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
6b9fda1
Removed license from windows installer
AlvinMooreSr Apr 23, 2018
c20be65
add missing curly bracket
martinjunker Apr 24, 2018
a6e3c75
add more missing curly brackets
martinjunker Apr 24, 2018
731a8dc
Simplify Go code following the linter recommendations
matiasinsaurralde Apr 22, 2018
b651156
Merge pull request #247 from alecgrieser/cherrypick-docs-and-formatti…
brownleej Apr 24, 2018
4ad22a8
Added code to skip license file within Windows installer
AlvinMooreSr Apr 24, 2018
d3b802f
Fixed the Windows Wix installer
AlvinMooreSr Apr 24, 2018
0817ef3
Removed extraneous element from Windows installer
AlvinMooreSr Apr 24, 2018
e7e4bee
Merge pull request #251 from AlvinMooreSr/release-5.1-buildwin
brownleej Apr 25, 2018
2e97129
[go] Fix ${fdbdir} path definition in fdb-go-install.sh
seshness Apr 25, 2018
a762590
Make docs Python 3 compatible
tirkarthi Apr 25, 2018
2adc66f
Removed set_durability_dev_null_is_web_scale
etschannen Apr 26, 2018
e837811
removed dev_null_is_web_scale
etschannen Apr 26, 2018
cce5204
Merge pull request #260 from etschannen/release-5.1
brownleej Apr 26, 2018
d67b0e7
removed binding tester references to dev_null_is_web_scale
etschannen Apr 26, 2018
11bd7d7
Add a disgusting and terrible hack to avoid "undefined std::istream::…
alexmiller-apple Apr 26, 2018
117c282
Merge pull request #263 from alexmiller-apple/bindings-build-fixes-5.1
alecgrieser Apr 26, 2018
816ccea
Merge pull request #257 from alecgrieser/cherrypick-docs-and-go-insta…
brownleej Apr 27, 2018
d2a6843
remove more dev null is web scale options in the binding testers
etschannen Apr 27, 2018
caee57b
Updates documentation config / theme footer to reflect project copyri…
davelester Apr 12, 2018
61666fc
Merge pull request #269 from brownleej/docs-footer-update
alecgrieser Apr 27, 2018
b1440e5
Remove redundant drop function doc section
stevemns Apr 27, 2018
6a8f1ae
Fixups for python tutorial documentation
stevemns Apr 23, 2018
b2c7290
Merge pull request #270 from alecgrieser/cherrypick-docs-and-formatti…
brownleej Apr 27, 2018
f023db1
Added target for building TLS plugin
AlvinMooreSr Apr 27, 2018
9060e6d
merged in 5.1
etschannen Apr 27, 2018
434d896
removed dev null is web scale from flow tester
etschannen Apr 27, 2018
9fb31b3
updated generated.go
etschannen Apr 27, 2018
5fbfd1e
Merge pull request #261 from etschannen/release-5.1
alecgrieser Apr 27, 2018
6008fbb
Merge pull request #271 from AlvinMooreSr/release-5.1-buildtls
alexmiller-apple Apr 28, 2018
d52f8eb
java binding: remove unnecessary collection wrapper
isitinschi Apr 29, 2018
8c8e6f8
Merge pull request #283 from ajbeamon/release-5.1
alecgrieser Apr 30, 2018
5ff2d73
Fix `undefined: e` in a code snippet
hiroshi May 1, 2018
90069f2
Merge pull request #289 from ajbeamon/release-5.1
alecgrieser May 1, 2018
1739c82
Fixes the links to download the client libraries in our documentation…
brownleej May 1, 2018
0cb5791
Merge pull request #293 from brownleej/fdb-c-download-fix
alecgrieser May 2, 2018
6502d79
Remove extra call to create transaction. Cleanup created transactions.
ajbeamon May 4, 2018
2c9f49d
Merge pull request #299 from ajbeamon/release-5.1
alecgrieser May 4, 2018
752deb0
fix fdbmonitor help message output ; fix spelling error Ratekeeper.ac…
alecgrieser May 7, 2018
05c1a88
Changed the name of the TLS artifact to fdb-libressl-plugin.so
AlvinMooreSr May 7, 2018
9aa94e8
Renamed the default TLS search plugin
AlvinMooreSr May 8, 2018
1b112fc
Merge pull request #326 from AlvinMooreSr/release-5.1-tlsplugin
alexmiller-apple May 8, 2018
24a8c10
re-added dev_null option as deprecated to prevent breaking client cod…
etschannen May 8, 2018
011a2c3
Merge pull request #336 from etschannen/release-5.1
ajbeamon May 8, 2018
56f7056
Merge pull request #325 from alecgrieser/fix-typos-and-formattign
ajbeamon May 8, 2018
a9f54e1
Compile on macOS 10.13.4: Use ASSERT_ABORT in destructors. Import fst…
Apr 23, 2018
dcc2c92
Use ASSERT_ABORT in destructor
Apr 23, 2018
d4d24ea
Merge pull request #389 from apkar/release-5.1
alexmiller-apple May 15, 2018
29be22b
Removed Windows carriage returns
AlvinMooreSr May 16, 2018
efc7548
Merge pull request #391 from AlvinMooreSr/release-5.1-remove-lineends
ajbeamon May 17, 2018
83c1754
Modified the groupId to org.foundationdb
AlvinMooreSr May 17, 2018
611c40f
TLS Plugin Changes.
bnamasivayam May 8, 2018
23335eb
Add FDBLibTLSVerify files to build system.
bnamasivayam May 8, 2018
488da10
Make changes to 5.1 to compile with new TLS Plugin.
bnamasivayam May 18, 2018
36a6f56
Merge pull request #393 from bnamasivayam/release-5.1
alexmiller-apple May 18, 2018
cca8a93
Fix the docs build to follow redirect for python dependencies
May 23, 2018
ebdc2d7
Revert "Merge pull request #393 from bnamasivayam/release-5.1"
bnamasivayam May 29, 2018
6f34524
Merge pull request #415 from bnamasivayam/release-5.1
bnamasivayam May 29, 2018
90c5a63
Merge pull request #411 from AlvinMooreSr/release-5.1-jar-rename
alecgrieser May 30, 2018
c954379
Fix case of newSeverity detail in StderrSeverity trace event
ajbeamon Jun 8, 2018
12c45cc
Merge pull request #451 from ajbeamon/release-5.1
etschannen Jun 8, 2018
553bfec
Merge pull request #403 from richardalow/fix-docs-build
AlvinMooreSr Jun 11, 2018
54c240c
Add release notes for 5.0.8 to old release notes
ajbeamon Oct 3, 2018
a91f592
Merge pull request #799 from ajbeamon/release-5.1
etschannen Oct 3, 2018
abaefbe
Fix typo
ajbeamon Oct 4, 2018
e771872
Merge pull request #808 from ajbeamon/release-5.1
ajbeamon Oct 4, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FDBLibTLS/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FDBLibTLS_LDFLAGS += -Wl,-soname,FDBLibTLS.so -Wl,--version-script=FDBLibTLS/FDB

# The plugin isn't a typical library, so it feels more sensible to have a copy
# of it in bin/.
bin/FDBLibTLS.$(DLEXT): lib/libFDBLibTLS.$(DLEXT)
bin/fdb-libressl-plugin.$(DLEXT): lib/libFDBLibTLS.$(DLEXT)
@cp $< $@

TARGETS += bin/FDBLibTLS.$(DLEXT)
TARGETS += bin/fdb-libressl-plugin.$(DLEXT)
3 changes: 2 additions & 1 deletion bindings/c/test/performance_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ fdb_error_t waitError(FDBFuture *f) {

struct RunResult run(struct ResultSet *rs, FDBDatabase *db, struct RunResult (*func)(struct ResultSet*, FDBTransaction*)) {
FDBTransaction *tr = NULL;
checkError(fdb_database_create_transaction(db, &tr), "create transaction", rs);
fdb_error_t e = fdb_database_create_transaction(db, &tr);
checkError(e, "create transaction", rs);

Expand All @@ -62,9 +61,11 @@ struct RunResult run(struct ResultSet *rs, FDBDatabase *db, struct RunResult (*f
fdb_error_t retryE = waitError(f);
fdb_future_destroy(f);
if (retryE) {
fdb_transaction_destroy(tr);
return (struct RunResult) {0, retryE};
}
} else {
fdb_transaction_destroy(tr);
return r;
}
}
Expand Down
1 change: 1 addition & 0 deletions bindings/c/test/ryw_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ void runTests(struct ResultSet *rs) {
runTest(&clearRangeGetRange, tr, rs, "C: get range cached values with clear ranges throughput");
runTest(&interleavedSetsGets, tr, rs, "C: interleaved sets and gets on a single key throughput");

fdb_transaction_destroy(tr);
fdb_database_destroy(db);
fdb_stop_network();
}
Expand Down
1 change: 0 additions & 1 deletion bindings/flow/tester/Tester.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,6 @@ struct UnitTestsFunc : InstructionFunc {
tr->setOption(FDBTransactionOption::FDB_TR_OPTION_READ_AHEAD_DISABLE);
tr->setOption(FDBTransactionOption::FDB_TR_OPTION_READ_SYSTEM_KEYS);
tr->setOption(FDBTransactionOption::FDB_TR_OPTION_ACCESS_SYSTEM_KEYS);
tr->setOption(FDBTransactionOption::FDB_TR_OPTION_DURABILITY_DEV_NULL_IS_WEB_SCALE);
const uint64_t timeout = 60*1000;
tr->setOption(FDBTransactionOption::FDB_TR_OPTION_TIMEOUT, Optional<StringRef>(StringRef((const uint8_t*)&timeout, 8)));
const uint64_t retryLimit = 50;
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/fdb-go-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ else

if [[ "${status}" -eq 0 ]] ; then
destdir=$( cd "${destdir}" && pwd ) # Get absolute path of destination dir.
fdbdir="${destdir}/foundation"
fdbdir="${destdir}/foundationdb"

if [[ ! -d "${destdir}" ]] ; then
cmd=("mkdir" "-p" "${destdir}")
Expand Down
1 change: 0 additions & 1 deletion bindings/go/src/_stacktester/stacktester.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ func (sm *StackMachine) processInst(idx int, inst tuple.Tuple) {
tr.Options().SetReadAheadDisable()
tr.Options().SetReadSystemKeys()
tr.Options().SetAccessSystemKeys()
tr.Options().SetDurabilityDevNullIsWebScale()
tr.Options().SetTimeout(60 * 1000)
tr.Options().SetRetryLimit(50)
tr.Options().SetMaxRetryDelay(100)
Expand Down
7 changes: 3 additions & 4 deletions bindings/go/src/fdb/directory/directoryLayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"encoding/binary"
"errors"
"fmt"

"github.com/apple/foundationdb/bindings/go/src/fdb"
"github.com/apple/foundationdb/bindings/go/src/fdb/subspace"
"github.com/apple/foundationdb/bindings/go/src/fdb/tuple"
Expand Down Expand Up @@ -78,9 +79,8 @@ func (dl directoryLayer) createOrOpen(rtr fdb.ReadTransaction, tr *fdb.Transacti
if prefix != nil && !dl.allowManualPrefixes {
if len(dl.path) == 0 {
return nil, errors.New("cannot specify a prefix unless manual prefixes are enabled")
} else {
return nil, errors.New("cannot specify a prefix in a partition")
}
return nil, errors.New("cannot specify a prefix in a partition")
}

if len(path) == 0 {
Expand Down Expand Up @@ -562,9 +562,8 @@ func (dl directoryLayer) contentsOfNode(node subspace.Subspace, path []string, l
ndl := NewDirectoryLayer(subspace.FromBytes(nssb), ss, false).(directoryLayer)
ndl.path = newPath
return directoryPartition{ndl, dl}, nil
} else {
return directorySubspace{ss, dl, newPath, layer}, nil
}
return directorySubspace{ss, dl, newPath, layer}, nil
}

func (dl directoryLayer) nodeWithPrefix(prefix []byte) subspace.Subspace {
Expand Down
3 changes: 1 addition & 2 deletions bindings/go/src/fdb/directory/directoryPartition.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ func (dp directoryPartition) GetLayer() []byte {
func (dp directoryPartition) getLayerForPath(path []string) directoryLayer {
if len(path) == 0 {
return dp.parentDirectoryLayer
} else {
return dp.directoryLayer
}
return dp.directoryLayer
}

func (dp directoryPartition) MoveTo(t fdb.Transactor, newAbsolutePath []string) (DirectorySubspace, error) {
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/src/fdb/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Package fdb provides an interface to FoundationDB databases (version 2.0 or high

To build and run programs using this package, you must have an installed copy of
the FoundationDB client libraries (version 2.0.0 or later), available for Linux,
Windows and OS X at https://www.foundationdb.org/downloads/fdb-c/.
Windows and OS X at https://www.foundationdb.org/download/.

This documentation specifically applies to the FoundationDB Go binding. For more
extensive guidance to programming with FoundationDB, as well as API
Expand Down
6 changes: 2 additions & 4 deletions bindings/go/src/fdb/fdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ func APIVersion(version int) error {
maxSupportedVersion := C.fdb_get_max_api_version()
if headerVersion > int(maxSupportedVersion) {
return fmt.Errorf("This version of the FoundationDB Go binding is not supported by the installed FoundationDB C library. The binding requires a library that supports API version %d, but the installed library supports a maximum version of %d.", version, maxSupportedVersion)
} else {
return fmt.Errorf("API version %d is not supported by the installed FoundationDB C library.", version)
}
return fmt.Errorf("API version %d is not supported by the installed FoundationDB C library.", version)
}
return Error{int(e)}
}
Expand Down Expand Up @@ -326,9 +325,8 @@ func CreateCluster(clusterFile string) (Cluster, error) {
func byteSliceToPtr(b []byte) *C.uint8_t {
if len(b) > 0 {
return (*C.uint8_t)(unsafe.Pointer(&b[0]))
} else {
return nil
}
return nil
}

// A KeyConvertible can be converted to a FoundationDB Key. All functions in the
Expand Down
5 changes: 0 additions & 5 deletions bindings/go/src/fdb/generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,6 @@ func (o TransactionOptions) SetDurabilityRisky() error {
return o.setOpt(120, nil)
}

// Not yet implemented.
func (o TransactionOptions) SetDurabilityDevNullIsWebScale() error {
return o.setOpt(130, nil)
}

// Specifies that this transaction should be treated as highest priority and that lower priority transactions should block behind this one. Use is discouraged outside of low-level tools
func (o TransactionOptions) SetPrioritySystemImmediate() error {
return o.setOpt(200, nil)
Expand Down
6 changes: 3 additions & 3 deletions bindings/go/src/fdb/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (ri *RangeIterator) fetchNextBatch() {
ri.sr.Begin = FirstGreaterThan(ri.kvs[ri.index-1].Key)
}

ri.iteration += 1
ri.iteration++

f := ri.t.doGetRange(ri.sr, ri.options, ri.snapshot, ri.iteration)
ri.f = &f
Expand All @@ -265,7 +265,7 @@ func (ri *RangeIterator) Get() (kv KeyValue, e error) {

kv = ri.kvs[ri.index]

ri.index += 1
ri.index++

if ri.index == len(ri.kvs) {
ri.fetchNextBatch()
Expand All @@ -291,7 +291,7 @@ func Strinc(prefix []byte) ([]byte, error) {
if prefix[i] != 0xFF {
ret := make([]byte, i+1)
copy(ret, prefix[:i+1])
ret[i] += 1
ret[i]++
return ret, nil
}
}
Expand Down
3 changes: 1 addition & 2 deletions bindings/go/src/fdb/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,8 @@ func (t Transaction) Reset() {
func boolToInt(b bool) int {
if b {
return 1
} else {
return 0
}
return 0
}

func (t *transaction) getKey(sel KeySelector, snapshot int) FutureKey {
Expand Down
5 changes: 3 additions & 2 deletions bindings/go/src/fdb/tuple/tuple.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"bytes"
"encoding/binary"
"fmt"

"github.com/apple/foundationdb/bindings/go/src/fdb"
)

Expand Down Expand Up @@ -114,7 +115,7 @@ func encodeBytes(buf *bytes.Buffer, code byte, b []byte) {
func bisectLeft(u uint64) int {
var n int
for sizeLimits[n] < u {
n += 1
n++
}
return n
}
Expand Down Expand Up @@ -356,7 +357,7 @@ func decodeTuple(b []byte, nested bool) (Tuple, int, error) {
if err != nil {
return nil, i, err
}
off += 1
off++
default:
return nil, i, fmt.Errorf("unable to decode tuple element with unknown typecode %02x", b[i])
}
Expand Down
8 changes: 4 additions & 4 deletions bindings/java/pom.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.apple.cie.foundationdb</groupId>
<groupId>org.foundationdb</groupId>
<artifactId>NAME</artifactId>
<version>VERSION</version>
<packaging>jar</packaging>

<name>foundationdb-java</name>
<description>Java bindings for the FoundationDB database. These bindings require the FoundationDB client, which is under a different license. The client can be obtained from https://www.foundationdb.org/downloads/fdb-c/.</description>
<description>Java bindings for the FoundationDB database. These bindings require the FoundationDB client, which is under a different license. The client can be obtained from https://www.foundationdb.org/download/.</description>
<inceptionYear>2010</inceptionYear>
<url>https://www.foundationdb.org</url>

<organization>
<name>FoundationDB</name>
<url>https://www.foundationdb.org</url>
</organization>

<developers>
<developer>
<name>FoundationDB</name>
</developer>
</developers>

<scm>
<url>http://0.0.0.0</url>
</scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public class Tuple implements Comparable<Tuple>, Iterable<Object> {
private List<Object> elements;

private Tuple(List<? extends Object> elements, Object newItem) {
this(new LinkedList<Object>(elements));
this(elements);
this.elements.add(newItem);
}

private Tuple(List<? extends Object> elements) {
this.elements = new ArrayList<Object>(elements);
this.elements = new ArrayList<>(elements);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ else if(op == StackOperation.UNIT_TESTS) {
tr.options().setReadAheadDisable();
tr.options().setReadSystemKeys();
tr.options().setAccessSystemKeys();
tr.options().setDurabilityDevNullIsWebScale();
tr.options().setTimeout(60*1000);
tr.options().setRetryLimit(50);
tr.options().setMaxRetryDelay(100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ else if(op == StackOperation.UNIT_TESTS) {
tr.options().setReadAheadDisable();
tr.options().setReadSystemKeys();
tr.options().setAccessSystemKeys();
tr.options().setDurabilityDevNullIsWebScale();
tr.options().setTimeout(60*1000);
tr.options().setRetryLimit(50);
tr.options().setMaxRetryDelay(100);
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Complete documentation of the FoundationDB Python API can be found at https://apple.github.io/foundationdb/api-python.html.

These bindings require the FoundationDB client. The client can be obtained from https://www.foundationdb.org/downloads/fdb-c/.
These bindings require the FoundationDB client. The client can be obtained from https://www.foundationdb.org/download/.
1 change: 0 additions & 1 deletion bindings/python/tests/tester.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def test_options(tr):
tr.options.set_read_ahead_disable()
tr.options.set_read_system_keys()
tr.options.set_access_system_keys()
tr.options.set_durability_dev_null_is_web_scale()
tr.options.set_timeout(60 * 1000)
tr.options.set_retry_limit(50)
tr.options.set_max_retry_delay(100)
Expand Down
2 changes: 1 addition & 1 deletion bindings/ruby/fdb.gemspec.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ EOF
s.license = 'Apache v2'
s.add_dependency('ffi', '>= 1.1.5')
s.required_ruby_version = '>= 1.9.3'
s.requirements << 'These bindings require the FoundationDB client. The client can be obtained from https://www.foundationdb.org/downloads/fdb-c/.'
s.requirements << 'These bindings require the FoundationDB client. The client can be obtained from https://www.foundationdb.org/download/.'
end
1 change: 0 additions & 1 deletion bindings/ruby/tests/tester.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ def run
tr.options.set_read_ahead_disable
tr.options.set_read_system_keys
tr.options.set_access_system_keys
tr.options.set_durability_dev_null_is_web_scale
tr.options.set_timeout(60*1000)
tr.options.set_retry_limit(50)
tr.options.set_max_retry_delay(100)
Expand Down
4 changes: 3 additions & 1 deletion build/packages.mk
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ ifeq ($(PLATFORM),linux)
@rm -f packages/foundationdb-server-*.rpm packages/foundationdb-clients-*.rpm
@packaging/rpm/buildrpms.sh $(VERSION) $(PKGRELEASE)

packages: DEB RPM JAVA_RELEASE FDBTESTS FDBHEADERS
FDBTLS: bin/fdb-libressl-plugin.$(DLEXT)

packages: DEB RPM JAVA_RELEASE FDBTESTS FDBHEADERS FDBTLS

packages_clean: DEB_clean RPM_clean JAVA_RELEASE_clean FDBHEADERS_clean

Expand Down
Loading