Skip to content

[BUG] Invalid javadoc in PaginationStrategy class prevents OpenSearch compiling with javadocs #16374

@dbwiddis

Description

@dbwiddis

Describe the bug

The PaginationStrategy class has javadoc errors using @param inline in three places:

* Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.

* Utility method to get list of indices sorted as per {@param comparator}.

These prevent a Gradle compile task from completing successfully without warning-mode disabled.

Related component

Other

To Reproduce

  1. In a GitHub action, Checkout OpenSearch and assemble.
  2. Observe compile failure
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:48: error: no tag name after @
     * Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
                                                             ^
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:48: error: no tag name after @
     * Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
                                                                                                                  ^
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:60: error: no tag name after @
     * Utility method to get list of indices sorted as per {@param comparator}.
                                                           ^

...

FAILURE: Build completed with 2 failures.
> Task :server:compileJava FAILED

110 actionable tasks: 110 executed
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':server:compileJava'.
> Compilation failed; see the compiler error output for details.

Expected behavior

OpenSearch compiles without javadoc errors.

Additional Details

Additional context

This does not appear on OpenSearch because these javadoc errors are suppressed in gradle.properties:

org.gradle.warning.mode=none

However, this configuration is not used in other project GHA. It can be worked around by using --warning-mode none switch on gradle commands, but it's better to not require projects to ignore these errors to compile.

Bug introduced in #14641

CC: @gargharsh3134 @shwetathareja @rajiv-kv @vikasvb90

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions