[ 
https://issues.apache.org/jira/browse/KNOX-3248?focusedWorklogId=1003789&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1003789
 ]

ASF GitHub Bot logged work on KNOX-3248:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Feb/26 07:12
            Start Date: 06/Feb/26 07:12
    Worklog Time Spent: 10m 
      Work Description: nileshrathi345 commented on code in PR #1143:
URL: https://github.com/apache/knox/pull/1143#discussion_r2772668585


##########
gateway-provider-rewrite/src/test/java/org/apache/knox/gateway/filter/rewrite/impl/UrlRewriteResponseTest.java:
##########
@@ -165,6 +165,33 @@ public void testStreamResponse() throws IOException {
     testStreamResponse(content, rewriteResponse, "deflate");
   }
 
+  @Test
+  public void testStreamEmptyGzipResponse() throws IOException {

Review Comment:
   Thanks for the suggestions, followed the same written test case that fails 
without modification and gives 
   `IOException: Input is not in the .gz format`
   And getting pass after changes





Issue Time Tracking
-------------------

    Worklog Id:     (was: 1003789)
    Time Spent: 1.5h  (was: 1h 20m)

> Knox Gateway + Livy HA mode gzip exception results in duplicated requests and 
> unneeded failovers
> ------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-3248
>                 URL: https://issues.apache.org/jira/browse/KNOX-3248
>             Project: Apache Knox
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Nilesh Rathi
>            Priority: Major
>             Fix For: 2.1.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> While using Apache Knox as a gateway for Livy in a High Availability (HA) 
> environment, a race condition/logic error occurs in the rewrite provider when 
> Knox receives a 307 Temporary Redirect from a standby node.
> throws:{{{}{}}}
> {code:java}
> IOException: Input is not in the .gz format{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to