Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Preserving indices causes seqNo to increase for jobs that aren't full…
Browse files Browse the repository at this point in the history
…y cleaned up (#397)
  • Loading branch information
dbbaughe authored Feb 1, 2021
1 parent cf7881f commit f8ecd25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class IndexStateManagementRestApiIT : IndexStateManagementRestTestCase() {
val updatedSeqNo = (responseBody[_SEQ_NO] as Int).toLong()
assertNotEquals("response is missing Id", Policy.NO_ID, updatedId)
assertEquals("not same id", policy.id, updatedId)
assertEquals("incorrect seqNo", policy.seqNo + 1, updatedSeqNo)
assertTrue("incorrect seqNo", policy.seqNo < updatedSeqNo)
}

@Throws(Exception::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class RestIndexRollupActionIT : RollupRestTestCase() {
val updatedSeqNo = (responseBody[_SEQ_NO] as Int).toLong()
assertNotEquals("response is missing Id", Rollup.NO_ID, updatedId)
assertEquals("not same id", rollup.id, updatedId)
assertEquals("incorrect seqNo", rollup.seqNo + 1, updatedSeqNo)
assertTrue("incorrect seqNo", rollup.seqNo < updatedSeqNo)
}

@Throws(Exception::class)
Expand Down

0 comments on commit f8ecd25

Please sign in to comment.