|
26 | 26 | import com.google.cloud.bigtable.beam.validation.SyncTableJob; |
27 | 27 | import com.google.cloud.bigtable.beam.validation.SyncTableJob.SyncTableOptions; |
28 | 28 | import com.google.cloud.bigtable.hbase.BigtableConfiguration; |
| 29 | +import com.google.cloud.bigtable.hbase.BigtableOptionsFactory; |
29 | 30 | import com.google.common.base.Preconditions; |
30 | 31 | import com.google.common.io.ByteStreams; |
31 | 32 | import java.io.BufferedReader; |
|
54 | 55 | import org.apache.beam.sdk.metrics.MetricQueryResults; |
55 | 56 | import org.apache.beam.sdk.options.PipelineOptionsFactory; |
56 | 57 | import org.apache.beam.sdk.options.ValueProvider.StaticValueProvider; |
| 58 | +import org.apache.hadoop.conf.Configuration; |
57 | 59 | import org.apache.hadoop.hbase.Cell; |
58 | 60 | import org.apache.hadoop.hbase.HColumnDescriptor; |
59 | 61 | import org.apache.hadoop.hbase.HConstants; |
@@ -122,9 +124,13 @@ public void setup() throws Exception { |
122 | 124 |
|
123 | 125 | uploadFixture(gcsUtil, SNAPSHOT_FIXTURE_NAME, fixtureDir); |
124 | 126 |
|
| 127 | + // Disable CSM to reduce noise in the test output |
| 128 | + Configuration config = |
| 129 | + BigtableConfiguration.configure(properties.getProjectId(), properties.getInstanceId()); |
| 130 | + config.set(BigtableOptionsFactory.BIGTABLE_ENABLE_CLIENT_SIDE_METRICS, "false"); |
| 131 | + |
125 | 132 | // Bigtable config |
126 | | - connection = |
127 | | - BigtableConfiguration.connect(properties.getProjectId(), properties.getInstanceId()); |
| 133 | + connection = BigtableConfiguration.connect(config); |
128 | 134 | // TODO: use timebased names to allow for gc |
129 | 135 | tableId = "test_" + UUID.randomUUID(); |
130 | 136 |
|
|
0 commit comments