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)
751
750
assertNotNull(documentsBehind)
@@ -757,23 +756,21 @@ class TransformRunnerIT : TransformRestTestCase() {
757
756
758
757
Thread.sleep(5000)
759
758
760
-
val secondIterationMetadata =waitFor {
759
+
waitFor {
761
760
val job = getTransform(transformId = transform.id)
762
761
assertNotNull("Transform job doesn't have metadata set", job.metadataId)
763
762
val transformMetadata = getTransformMetadata(job.metadataId!!)
764
763
assertEquals("Transform did not complete iteration or had incorrect number of documents processed", 15000, transformMetadata.stats.documentsProcessed)
765
764
assertEquals("Transform did not have null afterKey after iteration", null, transformMetadata.afterKey)
766
765
assertTrue("Timestamp was not updated", transformMetadata.continuousStats!!.lastTimestamp!!.isAfter(firstIterationMetadata.continuousStats!!.lastTimestamp))
767
-
transformMetadata
766
+
assertEquals("Not the expected transform status", TransformMetadata.Status.STARTED, transformMetadata.status)
767
+
assertEquals("More than expected pages processed", 6, transformMetadata.stats.pagesProcessed)
768
+
assertEquals("More than expected documents indexed", 2L, transformMetadata.stats.documentsIndexed)
769
+
assertEquals("Not the expected documents processed", 15000L, transformMetadata.stats.documentsProcessed)
770
+
assertEquals("Not the expected indexed time", transformMetadata.stats.indexTimeInMillis, firstIterationMetadata.stats.indexTimeInMillis)
771
+
assertEquals("Not the expected search time", transformMetadata.stats.searchTimeInMillis, firstIterationMetadata.stats.searchTimeInMillis)
768
772
}
769
773
770
-
assertEquals("Not the expected transform status", TransformMetadata.Status.STARTED, secondIterationMetadata.status)
771
-
assertEquals("More than expected pages processed", 6, secondIterationMetadata.stats.pagesProcessed)
772
-
assertEquals("More than expected documents indexed", 2L, secondIterationMetadata.stats.documentsIndexed)
773
-
assertEquals("Not the expected documents processed", 15000L, secondIterationMetadata.stats.documentsProcessed)
774
-
assertEquals("Not the expected indexed time", secondIterationMetadata.stats.indexTimeInMillis, firstIterationMetadata.stats.indexTimeInMillis)
775
-
assertEquals("Not the expected search time", secondIterationMetadata.stats.searchTimeInMillis, firstIterationMetadata.stats.searchTimeInMillis)
0 commit comments