03-while-clusterd-down.td 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 before `clusterd` crashed is still present but
  10. # that newly ingested data does not appear.
  11. # Increased from the default because of CI flakiness.
  12. $ set-sql-timeout duration=180s
  13. # With clusterd down, the upper of remote1 and remote2 will not advance. However, the global timestamp will advance.
  14. # In strict serializable mode we may select a timestamp that is ahead of on of the sources uppers and hang forever.
  15. > SET transaction_isolation = serializable
  16. > SELECT * from remote1
  17. one
  18. two
  19. three
  20. > SELECT * from remote2
  21. one
  22. two
  23. three
  24. $ kafka-ingest format=bytes topic=remote1
  25. four
  26. $ kafka-ingest format=bytes topic=remote2
  27. four
  28. > SELECT * from remote1
  29. one
  30. two
  31. three
  32. > SELECT * from remote2
  33. one
  34. two
  35. three
  36. > SET transaction_isolation = 'strict serializable'