Commit b630ba0
fix: include transactionId in gRPC CRUD requests to support external transactions (#3524)
saveRecord() and deleteRecord() in RemoteGrpcDatabase did not include the
active transactionId in gRPC requests, and the server-side handlers did not
look up external transactions from the activeTransactions map. This caused
"Transaction not active" errors when using begin()/commit() with vertex
save or delete operations. Refactored server handlers to follow the same
pattern as executeCommand() — dispatching to the transaction's dedicated
executor thread when an external transaction is active.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent dd6d413 commit b630ba0
3 files changed
Lines changed: 307 additions & 170 deletions
File tree
- grpc-client/src
- main/java/com/arcadedb/remote/grpc
- test/java/com/arcadedb/remote/grpc
- grpcw/src/main/java/com/arcadedb/server/grpc
Lines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
| |||
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
405 | | - | |
406 | | - | |
407 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
408 | 417 | | |
409 | 418 | | |
410 | 419 | | |
| |||
654 | 663 | | |
655 | 664 | | |
656 | 665 | | |
657 | | - | |
658 | | - | |
659 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
660 | 671 | | |
661 | 672 | | |
662 | 673 | | |
663 | 674 | | |
664 | 675 | | |
665 | | - | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
| |||
679 | 690 | | |
680 | 691 | | |
681 | 692 | | |
682 | | - | |
| 693 | + | |
683 | 694 | | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
688 | 701 | | |
689 | 702 | | |
690 | 703 | | |
| |||
Lines changed: 91 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
308 | 399 | | |
309 | 400 | | |
310 | 401 | | |
| |||
0 commit comments