Skip to content

Commit 4077372

Browse files
authored
Merge branch 'release/3.4' into DOC-10989
2 parents 9c68589 + 3ffa4a5 commit 4077372

File tree

5 files changed

+36
-13
lines changed

5 files changed

+36
-13
lines changed

modules/howtos/examples/Analytics.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/*
1818
* You need the following datasets created:
1919
*
20-
* CREATE DATASET `airports` ON `travel-sample` where `type` = "airport";
20+
* CREATE DATASET `airport` ON `travel-sample` where `type` = "airport";
2121
* CREATE DATASET `huge-dataset` ON `travel-sample`;
2222
* ALTER COLLECTION `travel-sample`.`inventory`.`airport` ENABLE ANALYTICS;
2323
* CONNECT LINK Local;
@@ -86,7 +86,7 @@ public static void main(String... args) {
8686
{
8787
// tag::named[]
8888
AnalyticsResult result = cluster.analyticsQuery(
89-
"select count(*) from airports where country = $country",
89+
"select count(*) from airport where country = $country",
9090
analyticsOptions().parameters(JsonObject.create().put("country", "France")));
9191
// end::named[]
9292
show("named", result);
@@ -95,7 +95,7 @@ public static void main(String... args) {
9595
{
9696
// tag::positional[]
9797
AnalyticsResult result = cluster.analyticsQuery(
98-
"select count(*) from airports where country = ?",
98+
"select count(*) from airport where country = ?",
9999
analyticsOptions().parameters(JsonArray.from("France"))
100100
);
101101
// end::positional[]
@@ -105,7 +105,7 @@ public static void main(String... args) {
105105
{
106106
// tag::scanconsistency[]
107107
AnalyticsResult result = cluster.analyticsQuery(
108-
"select count(*) from airports where country = 'France'",
108+
"select count(*) from airport where country = 'France'",
109109
analyticsOptions().scanConsistency(AnalyticsScanConsistency.REQUEST_PLUS)
110110
);
111111
// end::scanconsistency[]
@@ -115,7 +115,7 @@ public static void main(String... args) {
115115
{
116116
// tag::clientcontextid[]
117117
AnalyticsResult result = cluster.analyticsQuery(
118-
"select count(*) from airports where country = 'France'",
118+
"select count(*) from airport where country = 'France'",
119119
analyticsOptions().clientContextId("user-44" + UUID.randomUUID())
120120
);
121121
// end::clientcontextid[]
@@ -125,7 +125,7 @@ public static void main(String... args) {
125125
{
126126
// tag::priority[]
127127
AnalyticsResult result = cluster.analyticsQuery(
128-
"select count(*) from airports where country = 'France'",
128+
"select count(*) from airport where country = 'France'",
129129
analyticsOptions().priority(true)
130130
);
131131
// end::priority[]
@@ -135,7 +135,7 @@ public static void main(String... args) {
135135
{
136136
// tag::readonly[]
137137
AnalyticsResult result = cluster.analyticsQuery(
138-
"select count(*) from airports where country = 'France'",
138+
"select count(*) from airport where country = 'France'",
139139
analyticsOptions().readonly(true)
140140
);
141141
// end::readonly[]
@@ -154,7 +154,7 @@ public static void main(String... args) {
154154
{
155155
// tag::rowsasobject[]
156156
AnalyticsResult result = cluster.analyticsQuery(
157-
"select * from airports limit 3"
157+
"select * from airport limit 3"
158158
);
159159
for (JsonObject row : result.rowsAsObject()) {
160160
System.out.println("Found row: " + row);

modules/project-docs/pages/sdk-full-installation.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,17 @@ You can use your favorite dependency management tool to install the SDK.
4343
Maven::
4444
+
4545
--
46-
The following snippet shows how to do it with https://maven.apache.org/[Maven].
46+
For https://maven.apache.org[Maven], you can insert the following into the dependencies section of your project's `pom.xml` file:
4747
4848
[source,xml]
4949
----
50-
<dependencies>
5150
<dependency>
5251
<groupId>com.couchbase.client</groupId>
5352
<artifactId>java-client</artifactId>
5453
<version>3.4.4</version>
5554
</dependency>
56-
</dependencies>
5755
----
56+
Refer to the https://maven.apache.org/guides/introduction/introduction-to-the-pom.html/[Maven Documentation] for more information regarding the structure of the `pom.xml` file.
5857
--
5958
Gradle::
6059
+

modules/project-docs/pages/sdk-release-notes.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ The SDK no longer rejects a `PersistTo` requirement in a bucket using the Magma
219219
If you call `CancellationErrorContext.getWaitUntilReadyContext()` on an error context that didn't come from a "wait until ready" request, the method is now guaranteed to return null instead of sometimes throwing a `ClassCastException`.
220220
* https://issues.couchbase.com/browse/JCBC-2024[JCBC-2024]:
221221
Fixed a memory leak in ManagerMessageHandler.
222+
* https://issues.couchbase.com/browse/JVMCBC-1247[JVMCBC-1247]:
223+
The SDK now throws `InvalidArgumentException: Failed to parse connection string` if the connection string has a syntax error.
224+
For example, the following connection string is malformed, because the `couchbase://` part is repeated:
225+
`couchbase://foo.example.com,couchbase://bar.example.com`.
226+
The correct way to include multiple addresses in a connection string is to specify the scheme only once, and to join addresses with commas, like:
227+
`couchbase://foo.example.com,bar.example.com`
222228

223229
== Version 3.4.0 (24 October 2022)
224230

modules/test/scripts/init-couchbase/init-buckets.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# ===============================================
4+
# NOTE: Any changes made to this file will not be
5+
# automatically reflected in `make cb-start` as
6+
# the Makefile does not use the mounted version
7+
# of this file in the Docker image. You will need
8+
# to rebuild the image via `make cb-build` before
9+
# running `make cb-start`.
10+
# ===============================================
11+
312
# exit immediately if a command fails or if there are unset vars
413
set -euo pipefail
514

@@ -32,9 +41,9 @@ echo "cbimport travel-sample..."
3241
-b travel-sample \
3342
-d file:///opt/couchbase/samples/travel-sample.zip
3443

35-
echo "create airports dataset"
44+
echo "create airport dataset"
3645
curl --fail -v -u ${CB_USER}:${CB_PSWD} -H "Content-Type: application/json" -d '{
37-
"statement": "CREATE DATASET airports ON `travel-sample` WHERE `type`=\"airport\";",
46+
"statement": "CREATE DATASET airport ON `travel-sample` WHERE `type`=\"airport\";",
3847
"pretty":true,
3948
"client_context_id":"test"
4049
}' http://${CB_HOST}:8095/analytics/service

modules/test/scripts/init-couchbase/init.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# ===============================================
4+
# NOTE: Any changes made to this file will not be
5+
# automatically reflected in `make cb-start` as
6+
# the Makefile does not use the mounted version
7+
# of this file in the Docker image. You will need
8+
# to rebuild the image via `make cb-build` before
9+
# running `make cb-start`.
10+
# ===============================================
11+
312
CB_USER="${CB_USER:-Administrator}"
413
CB_PSWD="${CB_PSWD:-password}"
514
CB_HOST="${CB_HOST:-127.0.0.1}"

0 commit comments

Comments
 (0)