Skip to content

[META] Java Annotations for BWC and API enforcement  #8127

@nknize

Description

@nknize

Is your feature request related to a problem? Please describe.
We provide @opensearch.internal @opensearch.experimental and @opensearch.api to define code that provides a certain set of BWC guarantees. The problem is, this isn't enforceable without maintainers reviewing and manually rejecting PRs.

Describe the solution you'd like
Similar to Apache Spark's annotations, OpenSearch should introduce a new o.o.core.annotation package that (at minimum) defines enforceable java annotations as follows:

@Internal
@Api
@Experimental

And provides a mechanism to define new annotations.

Describe alternatives you've considered
We're currently using javadoc annotations. Let's make these more enforceable through java public @interface Api {}.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions