Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins Randomized Gradle Check Failed on bdc071dee1d2bb76d2b7902fdb36e709462e0307 #2838

Closed
opensearch-ci-bot opened this issue Apr 11, 2022 · 1 comment
Labels
bug Something isn't working cicd

Comments

@opensearch-ci-bot
Copy link
Collaborator

@opensearch-project/opensearch-core team, please take a look at Build 4346 in gradle_check log for more information.

@opensearch-ci-bot opensearch-ci-bot added bug Something isn't working cicd labels Apr 11, 2022
@VachaShah
Copy link
Collaborator

This is coming from #2804

> The following files had format violations:
      src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationIT.java
          @@ -230,7 +230,7 @@
           ········});
           ····}
           
          -····public·void·testDeleteOperations()throws·Exception{
          +····public·void·testDeleteOperations()·throws·Exception·{
           ········final·String·nodeA·=·internalCluster().startNode();
           ········final·String·nodeB·=·internalCluster().startNode();
           
          @@ -243,11 +243,7 @@
           ················.build()
           ········);
           ········ensureGreen(INDEX_NAME);
          -········client().prepareIndex(INDEX_NAME)
          -············.setId("1")
          -············.setSource("foo",·"bar")
          -············.setRefreshPolicy(WriteRequest.RefreshPolicy.WAIT_UNTIL)
          -············.get();
          +········client().prepareIndex(INDEX_NAME).setId("1").setSource("foo",·"bar").setRefreshPolicy(WriteRequest.RefreshPolicy.WAIT_UNTIL).get();
           
           ········assertHitCount(client(nodeA).prepareSearch(INDEX_NAME).setSize(0).setPreference("_only_local").get(),·1);
           ········assertHitCount(client(nodeB).prepareSearch(INDEX_NAME).setSize(0).setPreference("_only_local").get(),·1);
      src/main/java/org/opensearch/index/engine/InternalEngine.java
          @@ -703,7 +703,8 @@
           
           ····private·DirectoryReader·getDirectoryReader()·throws·IOException·{
           ········//·for·segment·replication:·replicas·should·create·the·reader·from·store·and,·we·don't·want·an·open·IW·on·replicas.
          -········//·We·should·always·wrap·replicas·with·a·SoftDeletesDirectoryReaderWrapper·as·we·use·soft·deletes·when·segment·replication·is·on·for·deletions
          +········//·We·should·always·wrap·replicas·with·a·SoftDeletesDirectoryReaderWrapper·as·we·use·soft·deletes·when·segment·replication·is·on·for
          +········//·deletions
           ········if·(engineConfig.isReadOnly())·{
           ············return·new·SoftDeletesDirectoryReaderWrapper(DirectoryReader.open(store.directory()),·Lucene.SOFT_DELETES_FIELD);
           ········}
          @@ -1536,7 +1537,7 @@
           ····}
           
           ····@Override
          -····public·Engine.DeleteResult·addDeleteOperationToTranslog(Delete·delete)·throws·IOException{
          +····public·Engine.DeleteResult·addDeleteOperationToTranslog(Delete·delete)·throws·IOException·{
           ········try·(Releasable·ignored·=·versionMap.acquireLock(delete.uid().bytes()))·{
           ············DeletionStrategy·plan·=·deletionStrategyForOperation(delete);
           ············DeleteResult·deleteResult·=·new·DeleteResult(
          @@ -1552,8 +1553,8 @@
           ········}
           ····}
           
          -····private·void·addDeleteOperationToTranslog(Delete·delete,·DeleteResult·deleteResult)·throws·IOException{
          -········if(deleteResult.getResultType()·==·Result.Type.SUCCESS){
          +····private·void·addDeleteOperationToTranslog(Delete·delete,·DeleteResult·deleteResult)·throws·IOException·{
      ... (18 more lines that didn't fit)
  Violations also present in:
      src/main/java/org/opensearch/index/engine/OpenSearchReaderManager.java
      src/main/java/org/opensearch/index/engine/ReadOnlyEngine.java
      src/main/java/org/opensearch/index/shard/IndexShard.java
  Run './gradlew :server:spotlessApply' to fix these violations.

The PR is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cicd
Projects
None yet
Development

No branches or pull requests

2 participants