|
34 | 34 | import com.google.cloud.bigtable.data.v2.internal.api.Client; |
35 | 35 | import com.google.cloud.bigtable.data.v2.internal.api.Client.Resource; |
36 | 36 | import com.google.cloud.bigtable.data.v2.internal.channels.ChannelPool; |
37 | | -import com.google.cloud.bigtable.data.v2.internal.compat.ops.CheckAndMutateRowShim; |
38 | 37 | import com.google.cloud.bigtable.data.v2.internal.compat.ops.DivertingUnaryCallable; |
39 | 38 | import com.google.cloud.bigtable.data.v2.internal.compat.ops.MutateRowShim; |
40 | | -import com.google.cloud.bigtable.data.v2.internal.compat.ops.ReadModifyWriteRowShim; |
41 | | -import com.google.cloud.bigtable.data.v2.internal.compat.ops.ReadModifyWriteRowShimInner; |
42 | 39 | import com.google.cloud.bigtable.data.v2.internal.compat.ops.ReadRowShim; |
43 | 40 | import com.google.cloud.bigtable.data.v2.internal.compat.ops.ReadRowShimInner; |
44 | 41 | import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; |
@@ -91,8 +88,6 @@ public class ShimImpl implements Shim { |
91 | 88 |
|
92 | 89 | private final ReadRowShimInner readRowShimInner; |
93 | 90 | private final MutateRowShim mutateRowShim; |
94 | | - private final CheckAndMutateRowShim checkAndMutateRowShim; |
95 | | - private final ReadModifyWriteRowShimInner readModifyWriteRowShimInner; |
96 | 91 |
|
97 | 92 | public static Shim create( |
98 | 93 | ClientInfo clientInfo, |
@@ -208,8 +203,6 @@ public ShimImpl( |
208 | 203 |
|
209 | 204 | this.readRowShimInner = new ReadRowShimInner(client); |
210 | 205 | this.mutateRowShim = new MutateRowShim(client); |
211 | | - this.checkAndMutateRowShim = new CheckAndMutateRowShim(client); |
212 | | - this.readModifyWriteRowShimInner = new ReadModifyWriteRowShimInner(client); |
213 | 206 | } |
214 | 207 |
|
215 | 208 | /** |
@@ -388,24 +381,16 @@ public UnaryCallable<RowMutation, Void> decorateMutateRow( |
388 | 381 | @Override |
389 | 382 | public UnaryCallable<ConditionalRowMutation, Boolean> decorateCheckAndMutateRow( |
390 | 383 | UnaryCallable<ConditionalRowMutation, Boolean> classic, UnaryCallSettings<?, ?> settings) { |
391 | | - return new DivertingUnaryCallable<>( |
392 | | - configManager, |
393 | | - classic, |
394 | | - checkAndMutateRowShim, |
395 | | - Util.extractTimeout(settings), |
396 | | - debugTagTracer); |
| 384 | + // TODO: enable session routing once diversion by method is added |
| 385 | + return classic; |
397 | 386 | } |
398 | 387 |
|
399 | 388 | @Override |
400 | 389 | public <RowT> UnaryCallable<ReadModifyWriteRow, RowT> decorateReadModifyWriteRow( |
401 | 390 | UnaryCallable<ReadModifyWriteRow, RowT> classic, |
402 | 391 | RowAdapter<RowT> rowAdapter, |
403 | 392 | UnaryCallSettings<?, ?> settings) { |
404 | | - return new DivertingUnaryCallable<>( |
405 | | - configManager, |
406 | | - classic, |
407 | | - new ReadModifyWriteRowShim<>(readModifyWriteRowShimInner, rowAdapter), |
408 | | - Util.extractTimeout(settings), |
409 | | - debugTagTracer); |
| 393 | + // TODO: enable session routing once server-side changes are rolled out |
| 394 | + return classic; |
410 | 395 | } |
411 | 396 | } |
0 commit comments