apache / apache/gravitino

[Improvement] Support event dispatching for catalog connection tests

Open
#12,566 4 comments 0 reactions 0 assignees View on GitHub
good first issue improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 17h
Merged PRs (30d)
339

Description

### What would you like to be improved?

`CatalogEventDispatcher` currently delegates both pre-create and existing-catalog connection tests without emitting pre, success, or failure events. This prevents listeners and auditing integrations from observing these operations.

### How should we improve?

Add event dispatching for both `testConnection` methods and cover their success and failure paths with unit tests. Event payloads must not expose connection properties or credentials.

Contributor guide

Open the contributing guide

Research direction

Start by locating CatalogEventDispatcher and its two testConnection methods, then inspect the surrounding event-dispatching patterns and existing unit tests. Add coverage for pre, success, and failure paths for both connection-test variants, verifying that event payloads omit connection properties and credentials.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.