04-after-clusterd-restart.td 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. # Verify that the data ingested while `clusterd` was down eventually appears,
  10. # then try ingesting new data.
  11. # Increased from the default because of CI flakiness.
  12. $ set-sql-timeout duration=180s
  13. > SELECT * from remote1
  14. one
  15. two
  16. three
  17. four
  18. > SELECT * from remote2
  19. one
  20. two
  21. three
  22. four
  23. $ kafka-ingest format=bytes topic=remote1
  24. five
  25. $ kafka-ingest format=bytes topic=remote2
  26. five
  27. > SELECT * from remote1
  28. one
  29. two
  30. three
  31. four
  32. five
  33. > SELECT * from remote2
  34. one
  35. two
  36. three
  37. four
  38. five
  39. > SELECT s.name,
  40. SUM(u.offset_known),
  41. SUM(u.offset_committed)
  42. FROM mz_sources s
  43. JOIN mz_internal.mz_source_statistics_raw u ON s.id = u.id
  44. WHERE s.name IN ('remote1', 'remote2')
  45. GROUP BY s.id, s.name
  46. remote1 5 5
  47. remote2 5 5