Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ protected void after() {
.get(TIMEOUT_MINUTES, TimeUnit.MINUTES);
}
} catch (Exception e) {
LOG.error("Failed to drop table {}. Skipping...", table, e);
if (isPlacementTableBasedChangeStream) {
// Drop placement table requires all rows deleted and garbage collected.
LOG.info("Failed to drop table {}. Skipping...", table, e);
} else {
LOG.error("Failed to drop table {}. Skipping...", table, e);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
Expand All @@ -66,12 +65,14 @@

/** End-to-end test of Cloud Spanner placement table. */
@RunWith(JUnit4.class)
@Ignore(
"TODO: enable this test class when placement table is supported by change stream in prod."
+ "For now this test can only be exercised mannually.")
public class SpannerChangeStreamPlacementTableIT {

@ClassRule public static final IntegrationTestEnv ENV = new IntegrationTestEnv();
@ClassRule
public static final IntegrationTestEnv ENV =
new IntegrationTestEnv(
/*isPostgres=*/ false,
/*isPlacementTableBasedChangeStream=*/ true,
/*host=*/ Optional.empty());

@Rule public final transient TestPipeline pipeline = TestPipeline.create();

Expand Down
Loading