From feac6a94246a3d29ecb3f3aa08156bc837314611 Mon Sep 17 00:00:00 2001 From: Jeremy Hanna Date: Fri, 12 Mar 2021 08:31:05 +1100 Subject: [PATCH 1/2] Fixed a couple of issues with http-tabular. --- .../activities/baselines/http-tabular.yaml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml index 1e3c08d30..d2ecd8184 100644 --- a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml +++ b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml @@ -98,13 +98,13 @@ blocks: params: ratio: 5 statements: - - main-select: GET /v2/keyspaces/<>/<>?where=E[[{"part":{"$eq":"{part_layout}"}},"page-size":{"$eq":"{limit}"}}]] - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - tags: - name: main-select + - main-select: GET http://<>:<>/v2/keyspaces/<>/<>?where=E[[{"part":{"$eq":"{part_layout}"}}]]&page-size={limit} + Accept: "application/json" + X-Cassandra-Request-Id: "{request_id}" + X-Cassandra-Token: "<>" + Content-Type: "application/json" + tags: + name: main-select - name: main-write tags: phase: main @@ -112,16 +112,16 @@ blocks: params: ratio: 5 statements: - - main-write: POST http://<>:<>/v2/keyspaces/<>/<> - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - body: | - { - "part": "{part_write}" - "clust": "{clust_write}", - "data": "{data_write}" - } - tags: - name: main-write + - main-write: POST http://<>:<>/v2/keyspaces/<>/<> + Accept: "application/json" + X-Cassandra-Request-Id: "{request_id}" + X-Cassandra-Token: "<>" + Content-Type: "application/json" + body: | + { + "part": "{part_write}", + "clust": "{clust_write}", + "data": "{data_write}" + } + tags: + name: main-write From fd8744de0cc298d1b0895f367b4b8fea5822c3de Mon Sep 17 00:00:00 2001 From: Jeremy Hanna Date: Fri, 12 Mar 2021 08:40:18 +1100 Subject: [PATCH 2/2] Update the http tabular test to use the partition lookup instead of the where clause. --- .../src/main/resources/activities/baselines/http-tabular.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml index d2ecd8184..a87da9382 100644 --- a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml +++ b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml @@ -98,7 +98,7 @@ blocks: params: ratio: 5 statements: - - main-select: GET http://<>:<>/v2/keyspaces/<>/<>?where=E[[{"part":{"$eq":"{part_layout}"}}]]&page-size={limit} + - main-select: GET http://<>:<>/v2/keyspaces/<>/<>/{part_read}&page-size={limit} Accept: "application/json" X-Cassandra-Request-Id: "{request_id}" X-Cassandra-Token: "<>"