@@ -210,8 +210,7 @@ public QueryStream createQuery(String query, TxMode tx, Params prms, ExecuteQuer
210210 YdbQuery .TransactionControl tc = TxControl .txModeCtrl (tx , true );
211211 return new StreamImpl (createGrpcStream (query , tc , prms , settings )) {
212212 @ Override
213- void handleTxMeta (YdbQuery .TransactionMeta meta ) {
214- String txID = meta == null ? null : meta .getId ();
213+ void handleTxMeta (String txID ) {
215214 if (txID != null && !txID .isEmpty ()) {
216215 logger .warn ("{} got unexpected transaction id {}" , SessionImpl .this , txID );
217216 }
@@ -253,7 +252,7 @@ abstract class StreamImpl implements QueryStream {
253252 this .grpcStream = grpcStream ;
254253 }
255254
256- abstract void handleTxMeta (YdbQuery . TransactionMeta meta );
255+ abstract void handleTxMeta (String txId );
257256 void handleCompletion (Status status , Throwable th ) { }
258257
259258 @ Override
@@ -276,7 +275,7 @@ public CompletableFuture<Result<QueryInfo>> execute(PartsHandler handler) {
276275 }
277276
278277 if (msg .hasTxMeta ()) {
279- handleTxMeta (msg .getTxMeta ());
278+ handleTxMeta (msg .getTxMeta (). getId () );
280279 }
281280 if (issues .length > 0 ) {
282281 if (handler != null ) {
@@ -352,8 +351,8 @@ public QueryStream createQuery(String query, boolean commitAtEnd, Params prms, E
352351
353352 return new StreamImpl (createGrpcStream (query , tc , prms , settings )) {
354353 @ Override
355- void handleTxMeta (YdbQuery . TransactionMeta meta ) {
356- String newId = meta == null || meta . getId () == null || meta . getId (). isEmpty () ? null : meta . getId () ;
354+ void handleTxMeta (String txID ) {
355+ String newId = txID == null || txID . isEmpty () ? null : txID ;
357356 if (!txId .compareAndSet (currentId , newId )) {
358357 logger .warn ("{} lost transaction meta id {}" , SessionImpl .this , newId );
359358 }
0 commit comments