[ 
https://issues.apache.org/jira/browse/RANGER-4808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

woosuk.ro updated RANGER-4808:
------------------------------
    Attachment: 0001-RANGER-4808-Fix-KafkaAuditProvider-initialization-an.patch

> KafkaAuditProvider fails to initialize when used with MultiDestAuditProvider
> ----------------------------------------------------------------------------
>
>                 Key: RANGER-4808
>                 URL: https://issues.apache.org/jira/browse/RANGER-4808
>             Project: Ranger
>          Issue Type: Improvement
>          Components: audit
>            Reporter: woosuk.ro
>            Priority: Major
>             Fix For: 2.7.0
>
>         Attachments: 
> 0001-RANGER-4808-Fix-KafkaAuditProvider-initialization-an.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When using MultiDestAuditProvider (audit provider v3) with KafkaAuditProvider,
> the Kafka producer is not initialized.
> Root Cause:
> AuditProviderFactory calls init(props, basePropertyName), but 
> KafkaAuditProvider
> only overrides init(props). The Kafka-specific initialization is never 
> executed.
> Additionally, simply overriding init(props, basePropertyName) to call 
> init(props)
> causes infinite recursion because BaseAuditHandler.init(props) internally 
> calls
> init(props, null), which triggers the override.
> Solution:
> - Call super.init(props, null) directly to break recursion
> - Override init(props, basePropertyName) to delegate to init(props)



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

Reply via email to