summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Draebing <thomas.draebing@sap.com>2020-07-23 15:28:19 +0200
committerThomas Draebing <thomas.draebing@sap.com>2020-07-23 15:28:19 +0200
commit0c945cbd77d47574cd2d27c2c2af2db83e32d351 (patch)
treefa251c67c730fd4f7d4c73227b49f8876b08d040
parentf0e79b647fc77f7e7401cf48f7edd53dee468b2f (diff)
parent10b158bddaccde0b846c59b5ff624113222a5bed (diff)
Merge branch 'stable-3.0' into stable-3.1
* stable-3.0: Include request latency in httpd_log.json Set version to 2.16.23-SNAPSHOT dev-release: Fix typo in verification step of release artifact dev-release: Install release artifact to local Maven repository Set version to 2.16.22 Bump Jetty version to 9.4.30.v20200611 Change-Id: Ie7c592aba821d4c3badb6f66b2025f264cfa16a5
-rw-r--r--Documentation/dev-release.txt3
-rw-r--r--WORKSPACE18
-rw-r--r--java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java3
3 files changed, 14 insertions, 10 deletions
diff --git a/Documentation/dev-release.txt b/Documentation/dev-release.txt
index 9e1744c97d..f79918f8ec 100644
--- a/Documentation/dev-release.txt
+++ b/Documentation/dev-release.txt
@@ -108,13 +108,14 @@ Tag the plugins:
+
----
bazel build release Documentation:searchfree
+ ./tools/maven/api.sh war_install
./tools/maven/api.sh install
----
* Verify the WAR version:
+
----
- java -jar ~/dl/gerrit-$version.war --version
+ java -jar bazel-bin/release.war --version
----
* Try upgrading a test site and launching the daemon
diff --git a/WORKSPACE b/WORKSPACE
index 6c2e5cd8b8..3c6823228e 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -869,54 +869,54 @@ maven_jar(
sha1 = "7e060dd5b19431e6d198e91ff670644372f60fbd",
)
-JETTY_VERS = "9.4.27.v20200227"
+JETTY_VERS = "9.4.30.v20200611"
maven_jar(
name = "jetty-servlet",
artifact = "org.eclipse.jetty:jetty-servlet:" + JETTY_VERS,
- sha1 = "c6354d1e53c41f839ae56f4d8622c866a1ad8487",
+ sha1 = "ca3dea2cd34ee88cec017001603af0c9e74781d6",
)
maven_jar(
name = "jetty-security",
artifact = "org.eclipse.jetty:jetty-security:" + JETTY_VERS,
- sha1 = "aead56f2a1ac49d720a192cb7c1568e61e34ddae",
+ sha1 = "1a5261f6ad4081ad9e9bb01416d639931d391273",
)
maven_jar(
name = "jetty-server",
artifact = "org.eclipse.jetty:jetty-server:" + JETTY_VERS,
- sha1 = "4ef690ce1277e3767d457f87621f2c436a001881",
+ sha1 = "e5ede3724d062717d0c04e4c77f74fe8115c2a6f",
)
maven_jar(
name = "jetty-jmx",
artifact = "org.eclipse.jetty:jetty-jmx:" + JETTY_VERS,
- sha1 = "df66265ec011d8b33a7fa541774257deb957ecb4",
+ sha1 = "653559eaec0f9a335a0d12e90bc764b28f341241",
)
maven_jar(
name = "jetty-continuation",
artifact = "org.eclipse.jetty:jetty-continuation:" + JETTY_VERS,
- sha1 = "ac504b371dea5316850362a835d14317dfabd5d0",
+ sha1 = "2a9cd8c4cf392a7697a57665e7b0caf5bce4cd48",
)
maven_jar(
name = "jetty-http",
artifact = "org.eclipse.jetty:jetty-http:" + JETTY_VERS,
- sha1 = "722ba6ef20eb58c55868f1ce85411e6af13be98e",
+ sha1 = "cd6223382e4f82b9ea807d8cdb04a23e5d629f1c",
)
maven_jar(
name = "jetty-io",
artifact = "org.eclipse.jetty:jetty-io:" + JETTY_VERS,
- sha1 = "e85e7c4f298efb36b80cc53d635f2da776aa54c2",
+ sha1 = "9c360d08e903b2dbd5d1f8e889a32046948628ce",
)
maven_jar(
name = "jetty-util",
artifact = "org.eclipse.jetty:jetty-util:" + JETTY_VERS,
- sha1 = "44087a126227af5196e3e327a5e11aad1b28852c",
+ sha1 = "39ec6aa4745952077f5407cb1394d8ba2db88b13",
)
maven_jar(
diff --git a/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java b/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java
index 73d9ee45c7..77726609a1 100644
--- a/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java
+++ b/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java
@@ -16,6 +16,7 @@ package com.google.gerrit.pgm.http.jetty;
import static com.google.gerrit.pgm.http.jetty.HttpLog.P_CONTENT_LENGTH;
import static com.google.gerrit.pgm.http.jetty.HttpLog.P_HOST;
+import static com.google.gerrit.pgm.http.jetty.HttpLog.P_LATENCY;
import static com.google.gerrit.pgm.http.jetty.HttpLog.P_METHOD;
import static com.google.gerrit.pgm.http.jetty.HttpLog.P_PROTOCOL;
import static com.google.gerrit.pgm.http.jetty.HttpLog.P_REFERER;
@@ -52,6 +53,7 @@ public class HttpLogJsonLayout extends JsonLayout {
public String protocol;
public String status;
public String contentLength;
+ public String latency;
public String referer;
public String userAgent;
@@ -65,6 +67,7 @@ public class HttpLogJsonLayout extends JsonLayout {
this.protocol = getMdcString(event, P_PROTOCOL);
this.status = getMdcString(event, P_STATUS);
this.contentLength = getMdcString(event, P_CONTENT_LENGTH);
+ this.latency = getMdcString(event, P_LATENCY);
this.referer = getMdcString(event, P_REFERER);
this.userAgent = getMdcString(event, P_USER_AGENT);
}