taklwu commented on code in PR #7568:
URL: https://github.com/apache/hbase/pull/7568#discussion_r2640833301
##########
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/http/TestRSStatusPage.java:
##########
@@ -123,7 +121,8 @@ public void testStatusPage() throws Exception {
String hostname = firstServerName.getHostname();
int port = firstServerName.getPort();
- String page = getRegionServerStatusPageContent(hostname, infoPort);
+ URL url = new URL("http://" + hostname + ":" + infoPort +
"/regionserver.jsp");
+ String page = TestServerHttpUtils.getPageContent(url,
"text/html;charset=utf-8");
Review Comment:
the test failed
```
[ERROR]
org.apache.hadoop.hbase.regionserver.http.TestRSStatusPage.testStatusPage --
Time elapsed: 1.225 s <<< FAILURE!
org.junit.ComparisonFailure: expected:<text/html[;charset=utf-8]> but
was:<text/html[]>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at
org.apache.hadoop.hbase.util.TestServerHttpUtils.getPageContent(TestServerHttpUtils.java:44)
at
org.apache.hadoop.hbase.regionserver.http.TestRSStatusPage.testStatusPage(TestRSStatusPage.java:125)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:829)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]