fdb 7.3.65 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06c28cb1c4808ff63ce6be6dbd5280bbc47f1279e3b45e0999c22782fef39841
4
- data.tar.gz: b4483fc00e51264643853c7db7c848b51209667672d71bc7f9a6f51d0e5cbd64
3
+ metadata.gz: fa8ae89940bd571ada8abaa38f02b4195e415ecc68e0f55143546c211a3eaa7f
4
+ data.tar.gz: 4216bdffb1816a3624b127361809f4a19b9806cf3b8f44ee0a3dedb71e2b4f4d
5
5
  SHA512:
6
- metadata.gz: 7c9b4ec337835074e126e74a28bbc8eabd1127e2569dd7a769e4e9c0b2240f86f283073362a2ef96ae3e5d8c5a4a31a6fb7cbf5ea117ad389d68dab306ee1c23
7
- data.tar.gz: 96b5024ff0b9ace8bf84c6cd99105dc3c21c416e929b1eccd499d8b81d1d016d35c703aca79732b9318921c82342cb5bdbf7f424a93030f5067069829ec723d0
6
+ metadata.gz: fb0fdd26f1e57cef7129a3d3c8d1b3793b2ff0db28fb20927ff2e57478c46a56c58e4c1e7556c0e2bf9f56d587f30a1ee7556ef555ca1770f7e6989c84058f62
7
+ data.tar.gz: 43f0e0b3539f11ebe57ddcd213259eac0fd5678b22df110cc842c181852b7b4e9362dbc1cda6f1b5824575b087d0e77cab01744b26e801ac64d0c4bbda9b9c32
data/lib/fdb.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # This source file is part of the FoundationDB open source project
5
5
  #
6
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
6
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
9
9
  # you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ module FDB
36
36
  end
37
37
  end
38
38
  def self.api_version(version)
39
- header_version = 730
39
+ header_version = 740
40
40
  if self.is_api_version_selected?()
41
41
  if @@chosen_version != version
42
42
  raise "FDB API already loaded at version #{@@chosen_version}."
data/lib/fdbdirectory.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
@@ -197,7 +197,7 @@ module FDB
197
197
 
198
198
  if old_path == new_path[0...old_path.length]
199
199
  raise ArgumentError,
200
- 'The desination directory cannot be a subdirectory of the source directory.'
200
+ 'The destination directory cannot be a subdirectory of the source directory.'
201
201
  end
202
202
 
203
203
  old_node = find(tr, old_path).prefetch_metadata(tr)
data/lib/fdbimpl.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
data/lib/fdbimpl_v609.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
data/lib/fdblocality.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
data/lib/fdboptions.rb CHANGED
@@ -50,6 +50,7 @@ module FDB
50
50
  "TLS_CA_BYTES" => [52, "Set the ca bundle", '', "ca bundle"],
51
51
  "TLS_CA_PATH" => [53, "Set the file from which to load the certificate authority bundle", '', "file path"],
52
52
  "TLS_PASSWORD" => [54, "Set the passphrase for encrypted private key. Password should be set before setting the key for the password to be used.", '', "key passphrase"],
53
+ "TLS_DISABLE_PLAINTEXT_CONNECTION" => [55, "Prevent client from connecting to a non-TLS endpoint by throwing network connection failed error.", nil, nil],
53
54
  "DISABLE_MULTI_VERSION_CLIENT_API" => [60, "Disables the multi-version client API and instead uses the local client directly. Must be set before setting up the network.", nil, nil],
54
55
  "CALLBACKS_ON_EXTERNAL_THREADS" => [61, "If set, callbacks from external client libraries can be called from threads created by the FoundationDB client library. Otherwise, callbacks will be called from either the thread used to add the callback or the network thread. Setting this option can improve performance when connected using an external client, but may not be safe to use in all environments. Must be set before setting up the network. WARNING: This feature is considered experimental at this time.", nil, nil],
55
56
  "EXTERNAL_CLIENT_LIBRARY" => [62, "Adds an external client library for use by the multi-version client API. Must be set before setting up the network.", '', "path to client library"],
@@ -76,7 +77,7 @@ module FDB
76
77
  "LOCATION_CACHE_SIZE" => [10, "Set the size of the client location cache. Raising this value can boost performance in very large databases where clients access data in a near-random pattern. Defaults to 100000.", 0, "Max location cache entries"],
77
78
  "MAX_WATCHES" => [20, "Set the maximum number of watches allowed to be outstanding on a database connection. Increasing this number could result in increased resource usage. Reducing this number will not cancel any outstanding watches. Defaults to 10000 and cannot be larger than 1000000.", 0, "Max outstanding watches"],
78
79
  "MACHINE_ID" => [21, "Specify the machine ID that was passed to fdbserver processes running on the same machine as this client, for better location-aware load balancing.", '', "Hexadecimal ID"],
79
- "DATACENTER_ID" => [22, "Specify the datacenter ID that was passed to fdbserver processes running in the same datacenter as this client, for better location-aware load balancing.", '', "Hexadecimal ID"],
80
+ "DATACENTER_ID" => [22, "Specify the datacenter ID that was passed to fdbserver processes running in the same datacenter as this client, for better location-aware load balancing.", '', "A string identifier for the datacenter"],
80
81
  "SNAPSHOT_RYW_ENABLE" => [26, "Snapshot read operations will see the results of writes done in the same transaction. This is the default behavior.", nil, nil],
81
82
  "SNAPSHOT_RYW_DISABLE" => [27, "Snapshot read operations will not see the results of writes done in the same transaction. This was the default behavior prior to API version 300.", nil, nil],
82
83
  "TRANSACTION_LOGGING_MAX_FIELD_LENGTH" => [405, "Sets the maximum escaped length of key and value fields to be logged to the trace file via the LOG_TRANSACTION option. This sets the ``transaction_logging_max_field_length`` option of each transaction created by this database. See the transaction option description for more information.", 0, "Maximum length of escaped key and value fields."],
@@ -100,7 +101,7 @@ module FDB
100
101
  "CAUSAL_READ_DISABLE" => [21, "", nil, nil],
101
102
  "INCLUDE_PORT_IN_ADDRESS" => [23, "Addresses returned by get_addresses_for_key include the port when enabled. As of api version 630, this option is enabled by default and setting this has no effect.", nil, nil],
102
103
  "NEXT_WRITE_NO_WRITE_CONFLICT_RANGE" => [30, "The next write performed on this transaction will not generate a write conflict range. As a result, other transactions which read the key(s) being modified by the next write will not conflict with this transaction. Care needs to be taken when using this option on a transaction that is shared between multiple threads. When setting this option, write conflict ranges will be disabled on the next write operation, regardless of what thread it is on.", nil, nil],
103
- "READ_YOUR_WRITES_DISABLE" => [51, "Reads performed by a transaction will not see any prior mutations that occured in that transaction, instead seeing the value which was in the database at the transaction's read version. This option may provide a small performance benefit for the client, but also disables a number of client-side optimizations which are beneficial for transactions which tend to read and write the same keys within a single transaction. It is an error to set this option after performing any reads or writes on the transaction.", nil, nil],
104
+ "READ_YOUR_WRITES_DISABLE" => [51, "Reads performed by a transaction will not see any prior mutations that occurred in that transaction, instead seeing the value which was in the database at the transaction's read version. This option may provide a small performance benefit for the client, but also disables a number of client-side optimizations which are beneficial for transactions which tend to read and write the same keys within a single transaction. It is an error to set this option after performing any reads or writes on the transaction.", nil, nil],
104
105
  "READ_AHEAD_DISABLE" => [52, "Deprecated", nil, nil],
105
106
  "READ_SERVER_SIDE_CACHE_ENABLE" => [507, "Storage server should cache disk blocks needed for subsequent read requests in this transaction. This is the default behavior.", nil, nil],
106
107
  "READ_SERVER_SIDE_CACHE_DISABLE" => [508, "Storage server should not cache disk blocks needed for subsequent read requests in this transaction. This can be used to avoid cache pollution for reads not expected to be repeated.", nil, nil],
@@ -139,11 +140,13 @@ module FDB
139
140
  "SPECIAL_KEY_SPACE_ENABLE_WRITES" => [714, "By default, users are not allowed to write to special keys. Enable this option will implicitly enable all options required to achieve the configuration change.", nil, nil],
140
141
  "TAG" => [800, "Adds a tag to the transaction that can be used to apply manual targeted throttling. At most 5 tags can be set on a transaction.", '', "String identifier used to associated this transaction with a throttling group. Must not exceed 16 characters."],
141
142
  "AUTO_THROTTLE_TAG" => [801, "Adds a tag to the transaction that can be used to apply manual or automatic targeted throttling. At most 5 tags can be set on a transaction.", '', "String identifier used to associated this transaction with a throttling group. Must not exceed 16 characters."],
142
- "SPAN_PARENT" => [900, "Adds a parent to the Span of this transaction. Used for transaction tracing. A span can be identified with any 16 bytes", '', "A byte string of length 16 used to associate the span of this transaction with a parent"],
143
+ "SPAN_PARENT" => [900, "Adds a parent to the Span of this transaction. Used for transaction tracing. A span can be identified with a 33 bytes serialized binary format which consists of: 8 bytes protocol version, e.g. ``0x0FDB00B073000000LL`` in little-endian format, 16 bytes trace id, 8 bytes span id, 1 byte set to 1 if sampling is enabled", '', "A serialized binary byte string of length 33 used to associate the span of this transaction with a parent"],
143
144
  "EXPENSIVE_CLEAR_COST_ESTIMATION_ENABLE" => [1000, "Asks storage servers for how many bytes a clear key range contains. Otherwise uses the location cache to roughly estimate this.", nil, nil],
144
145
  "BYPASS_UNREADABLE" => [1100, "Allows ``get`` operations to read from sections of keyspace that have become unreadable because of versionstamp operations. These reads will view versionstamp operations as if they were set operations that did not fill in the versionstamp.", nil, nil],
145
146
  "USE_GRV_CACHE" => [1101, "Allows this transaction to use cached GRV from the database context. Defaults to off. Upon first usage, starts a background updater to periodically update the cache to avoid stale read versions. The disable_client_bypass option must also be set.", nil, nil],
146
147
  "AUTHORIZATION_TOKEN" => [2000, "Attach given authorization token to the transaction such that subsequent tenant-aware requests are authorized", '', "A JSON Web Token authorized to access data belonging to one or more tenants, indicated by 'tenants' claim of the token's payload."],
148
+ "ENABLE_REPLICA_CONSISTENCY_CHECK" => [4000, "Enables replica consistency check, which compares the results returned by storage server replicas (as many as specified by consistency_check_required_replicas option) for a given read request, in client-side load balancer.", nil, nil],
149
+ "CONSISTENCY_CHECK_REQUIRED_REPLICAS" => [4001, "Specifies the number of storage server replica results that the load balancer needs to compare when enable_replica_consistency_check option is set.", 0, "Number of storage replicas over which the load balancer consistency check is done."],
147
150
  }
148
151
 
149
152
  @@StreamingMode = {
data/lib/fdbsubspace.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
data/lib/fdbtuple.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # This source file is part of the FoundationDB open source project
7
7
  #
8
- # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
8
+ # Copyright 2013-2024 Apple Inc. and the FoundationDB project authors
9
9
  #
10
10
  # Licensed under the Apache License, Version 2.0 (the "License");
11
11
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.65
4
+ version: 7.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FoundationDB
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-06 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -53,7 +53,7 @@ homepage: https://www.foundationdb.org
53
53
  licenses:
54
54
  - Apache-2.0
55
55
  metadata: {}
56
- post_install_message:
56
+ post_install_message:
57
57
  rdoc_options: []
58
58
  require_paths:
59
59
  - lib
@@ -70,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - These bindings require the FoundationDB client. The client can be obtained from
72
72
  https://github.com/apple/foundationdb/releases
73
- rubygems_version: 3.1.6
74
- signing_key:
73
+ rubygems_version: 3.2.33
74
+ signing_key:
75
75
  specification_version: 4
76
76
  summary: Ruby bindings for the FoundationDB database
77
77
  test_files: []