You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* flaky transform test fix attempt
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
* accidental paste fix
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Co-authored-by: Petar Dzepina <petar.dzepina@vroom.com>
(cherry picked from commit 5217af0)
Co-authored-by: Petar Dzepina <petar.dzepina@gmail.com>
val documentsBehind = getTransformDocumentsBehind(transform.id)
753
752
assertNotNull(documentsBehind)
@@ -759,23 +758,21 @@ class TransformRunnerIT : TransformRestTestCase() {
759
758
760
759
Thread.sleep(5000)
761
760
762
-
val secondIterationMetadata =waitFor {
761
+
waitFor {
763
762
val job = getTransform(transformId = transform.id)
764
763
assertNotNull("Transform job doesn't have metadata set", job.metadataId)
765
764
val transformMetadata = getTransformMetadata(job.metadataId!!)
766
765
assertEquals("Transform did not complete iteration or had incorrect number of documents processed", 15000, transformMetadata.stats.documentsProcessed)
767
766
assertEquals("Transform did not have null afterKey after iteration", null, transformMetadata.afterKey)
768
767
assertTrue("Timestamp was not updated", transformMetadata.continuousStats!!.lastTimestamp!!.isAfter(firstIterationMetadata.continuousStats!!.lastTimestamp))
769
-
transformMetadata
768
+
assertEquals("Not the expected transform status", TransformMetadata.Status.STARTED, transformMetadata.status)
769
+
assertEquals("More than expected pages processed", 6, transformMetadata.stats.pagesProcessed)
770
+
assertEquals("More than expected documents indexed", 2L, transformMetadata.stats.documentsIndexed)
771
+
assertEquals("Not the expected documents processed", 15000L, transformMetadata.stats.documentsProcessed)
772
+
assertEquals("Not the expected indexed time", transformMetadata.stats.indexTimeInMillis, firstIterationMetadata.stats.indexTimeInMillis)
773
+
assertEquals("Not the expected search time", transformMetadata.stats.searchTimeInMillis, firstIterationMetadata.stats.searchTimeInMillis)
770
774
}
771
775
772
-
assertEquals("Not the expected transform status", TransformMetadata.Status.STARTED, secondIterationMetadata.status)
773
-
assertEquals("More than expected pages processed", 6, secondIterationMetadata.stats.pagesProcessed)
774
-
assertEquals("More than expected documents indexed", 2L, secondIterationMetadata.stats.documentsIndexed)
775
-
assertEquals("Not the expected documents processed", 15000L, secondIterationMetadata.stats.documentsProcessed)
776
-
assertEquals("Not the expected indexed time", secondIterationMetadata.stats.indexTimeInMillis, firstIterationMetadata.stats.indexTimeInMillis)
777
-
assertEquals("Not the expected search time", secondIterationMetadata.stats.searchTimeInMillis, firstIterationMetadata.stats.searchTimeInMillis)
0 commit comments