Hi Ramesh,

I am not sure if I fully understand your problem. Are you restarting the 
gRPC server within your process? If so, I think you need to call 
RegisterAuditLoggerFactory again, if you didn't.

Best,
Luwei
On Sunday, July 6, 2025 at 5:24:32 PM UTC-7 Rameshreddy Mudhireddy wrote:

> Hi grpc-team,
>
> we support hitless restart of the grpc service for any configuration 
> changes and policy audit logging interface has the following comment.
>
> // Registers an audit logger factory. This 
> *should only be called during // initialization*.
>  void RegisterAuditLoggerFactory(std::unique_ptr<AuditLoggerFactory> 
> factory);
>
> Hitless restart of the service for any changes in the policy audit logging 
> name is running into an assert and requires a process restart.
>
> Init sequence:
> RegisterAuditLoggerFactory(...)
> server_data = new ::pi::server::ServerData();
>
> server_data->builder.experimental().SetAuthorizationPolicyProvider(provider);
> server_data->builder.BuildAndStart();
>
> shutdown sequence:
> server_data->server->Shutdown(<5 sec deadline>);
> delete server_data;
>
> Issue:
> E0706 17:12:26.951911933  385451 audit_logging.cc:57]                 
>  ASSERTION FAILED: registry->logger_factories_map_.emplace(name, 
> std::move(factory)).second
>
> Is there any way to avoid process restart for any of the  policy audit 
> logging config changes? Appreciate your input.
>
> Thank you,
> Ramesh
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/585458f5-02ec-4571-a782-f25f8c51f336n%40googlegroups.com.

Reply via email to