github-4315.td 830 B

1234567891011121314151617181920212223
  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. # Regression test for https://github.com/MaterializeInc/database-issues/issues/4315
  10. > CREATE CLUSTER c REPLICAS (r (SIZE '2-2'))
  11. $ set-from-sql var=now
  12. SELECT mz_now()::text
  13. # Note: We rely on testdrive's retry behavior here, as it takes some time for
  14. # the first frontiers message to arrive.
  15. > SELECT bool_and(f.write_frontier > ${now})
  16. FROM mz_cluster_replicas r, mz_cluster_replica_frontiers f
  17. WHERE r.id = f.replica_id AND r.name = 'r'
  18. true