[
https://issues.apache.org/jira/browse/KNOX-3507?focusedWorklogId=1046615&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1046615
]
ASF GitHub Bot logged work on KNOX-3507:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Oct/26 15:03
Start Date: 09/Oct/26 15:03
Worklog Time Spent: 10m
Work Description: github-actions[bot] commented on PR #1443:
URL: https://github.com/apache/knox/pull/1443#issuecomment-6083541345
## Test Results
4 files 4 suites 45s ⏱️
132 tests 132 ✅ 0 💤 0 ❌
150 runs 150 ✅ 0 💤 0 ❌
Results for commit 5efc09c6.
[test-results]:data:application/gzip;base64,H4sIADUCyWoC/13MSw6DIBSF4a0Yxh1weVjsZhrlkdxUpUEYme69SCqlHX7/Sc5OHM52I7dOXDqyJYwVJoUxol8Pyuy8xGMDzk7dt6T1f3rgMydagxtx/gk2BB8+JaS1fMoT9bIp38fi5rC4/dN+WTBmEGmdpoPurYJJKgo9wKQMcC6M4gO/UkaBMeHI6w1FtSmQBAEAAA==
Issue Time Tracking
-------------------
Worklog Id: (was: 1046615)
Remaining Estimate: 0h
Time Spent: 10m
> Wire LivyHaDispatch for LIVYSERVER, LIVY_FOR_SPARK3, and LIVY_FOR_SPARK4
> ------------------------------------------------------------------------
>
> Key: KNOX-3507
> URL: https://issues.apache.org/jira/browse/KNOX-3507
> Project: Apache Knox
> Issue Type: Task
> Reporter: Arun Kumar M
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> *Summary*
> Wire baseline Livy HA dispatch for LIVYSERVER, LIVY_FOR_SPARK3, and
> LIVY_FOR_SPARK4 in Apache Knox, as a follow-up to KNOX-3472 /
> apache/knox#1411 and KNOX-3473 / apache/knox#1412. Aligns upstream with
> internal Gerrit change 214416 (CDPD-45165).
> *Motivation*
> KNOX-3472 and KNOX-3473 added livy_for_spark3 and livy_for_spark4 service
> definitions using org.apache.knox.gateway.livy.LivyDispatch only. They did
> not include ha-classname="org.apache.knox.gateway.ha.dispatch.LivyHaDispatch"
> or the related baseline HA wiring that downstream already uses from Gerrit
> 214416.
> *Deployments configured for Livy HA need:*
> * LivyHaDispatch for Livy-specific HA failover (including HTTP 307 handling)
> * Shared LivyHttpServletRequest for Livy POST / proxyUser handling on HA
> dispatch
> * ha-classname wired on livy (LIVYSERVER), livy_for_spark3, and
> livy_for_spark4
> *Relationship to KNOX-3472 / KNOX-3473*
> KNOX-3472 / #1411 and KNOX-3473 / #1412 introduced service definitions, CM
> discovery, and homepage assets. They explicitly did not include full
> LivyHaDispatch baseline wiring from Gerrit 214416.
> This ticket adds that missing HA dispatch wiring only. Per-instance homepage
> routing (?host=, sticky cookies, tile JS) is KNOX-3479 and must not be merged
> in the same change.
> Relationship to KNOX-3479
> This ticket blocks KNOX-3479. Merge upstream PR for KNOX-3507 before the
> per-instance HA PR (KNOX-3479 / #1420).
> *Scope*
> gateway-provider-ha
> * LivyHaDispatch.java — baseline Livy HA (HTTP 307 / failover; Livy POST via
> LivyHttpServletRequest)
> * pom.xml — dependency on gateway-service-livy
> gateway-service-livy
> * LivyHttpServletRequest.java — new public class (extracted from
> LivyDispatch)
> * LivyDispatch.java — uses shared LivyHttpServletRequest
> *gateway-service-definitions*
> * livy/0.4.0/service.xml — ha-classname:
> org.apache.knox.gateway.ha.dispatch.LivyHaDispatch (LIVYSERVER)
> * livy_for_spark3/0.6.0/service.xml — same ha-classname (LIVY_FOR_SPARK3)
> * livy_for_spark4/1.0.0/service.xml — same ha-classname (LIVY_FOR_SPARK4)
> *Out of scope*
> * Per-instance HA routing (?host=, Referer, KNOX_LIVY_BACKEND cookie)
> * Knox Homepage tile JavaScript / hostname label patching
> * Homepage metadata context /livy_for_spark3/ui?host=\{{BACKEND_HOST}} (and
> Spark 4 equivalent)
> * LivyHaDispatchTest for per-instance routing
> * CM discovery or new service definitions (KNOX-3472 / KNOX-3473)
> *Acceptance criteria*
> * LivyHaDispatch exists with baseline Livy HA behavior (307 handling,
> failover, Livy POST wrapper)
> * LivyHttpServletRequest is shared by LivyDispatch and LivyHaDispatch
> * ha-classname is set on livy, livy_for_spark3, and livy_for_spark4 service
> descriptors
> * mvn -pl
> gateway-service-livy,gateway-provider-ha,gateway-service-definitions -am test
> -DskipITs succeeds
> * No vendor-specific hostnames or internal-only references in ASF-licensed
> sources
> * KNOX-3479 can build on this change without duplicating baseline
> LivyHaDispatch wiring
> *Implementation / PR*
> GitHub: [#1443|https://github.com/apache/knox/pull/1443] Branch:
> samuhasavak5:KNOX-livy-ha-dispatch-wiring JIRA: KNOX-3507
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)