Skip to content

ER_NO_TRANSACTION on tarantool-2.2+ #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Totktonada opened this issue Apr 28, 2020 · 3 comments · Fixed by #54
Closed

ER_NO_TRANSACTION on tarantool-2.2+ #53

Totktonada opened this issue Apr 28, 2020 · 3 comments · Fixed by #54
Assignees
Labels
bug Something isn't working

Comments

@Totktonada
Copy link
Member

When trying to do get:

2020-04-28 16:20:15.736 [54892] main/119/server/127.0.0.1:42002 D> ClientError at /build/usr/src/debug/tarantool-2.2.3.1/src/box/txn.c:788

It is ER_NO_TRANSACTION.

Before splitting transaction and fiber memory regions, box_txn_alloc() may be called w/o active transaction.

Reported by Andrey Yanda.

@Totktonada Totktonada added the bug Something isn't working label Apr 28, 2020
@GhOsTMZ
Copy link

GhOsTMZ commented Apr 29, 2020

Hello,
The expiration mechanism is broken too.

2020-04-29 14:58:19.506 [54892] main/132/server/127.0.0.1:48222 D> client 127.0.0.1:48222 connected                                                                                                                                          
2020-04-29 15:20:00.472 [54892] main/115/feedback_daemon D> TimedOut at /build/usr/src/debug/tarantool-2.2.3.1/src/lib/core/fiber_channel.c:185                                                                                              
2020-04-29 15:20:00.472 [54892] main/115/feedback_daemon D> curl 0x414de2e8: wait timeout=0ms                                                                                                                                                
2020-04-29 15:20:00.473 [54892] main D> curl 0x414de2e8: event timer                                                                                                                                                                         
2020-04-29 15:20:00.473 [54892] main D> curl 0x414de2e8: add fd=22                                                                                                                                                                           
2020-04-29 15:20:00.473 [54892] main D> curl 0x414de2e8: poll fd=22 IN                                                                                                                                                                       
2020-04-29 15:20:00.473 [54892] main D> curl 0x414de2e8: wait timeout=5000ms                                                                                                                                                                 
2020-04-29 15:20:00.549 [54892] main D> curl 0x414de2e8: event fd=22 IN                                                                                                                                                                      
2020-04-29 15:20:00.549 [54892] main D> curl 0x414de2e8: wait timeout=4924ms                                                                                                                                                                 
2020-04-29 15:20:00.555 [54892] main D> curl 0x414de2e8: event fd=22 IN                                                                                                                                                                      
2020-04-29 15:20:00.555 [54892] main D> curl 0x414de2e8: remove fd=22                                                                                                                                                                        
2020-04-29 15:20:00.555 [54892] main D> curl 0x414de2e8: add fd=22                                                                                                                                                                           
2020-04-29 15:20:00.555 [54892] main D> curl 0x414de2e8: poll fd=22 OUT                                                                                                                                                                      
2020-04-29 15:20:00.555 [54892] main D> curl 0x414de2e8: wait timeout=199ms                                                                                                                                                                  
2020-04-29 15:20:00.567 [54892] main D> curl 0x414de2e8: event fd=22 OUT                                                                                                                                                                     
2020-04-29 15:20:00.573 [54892] main D> curl 0x414de2e8: poll fd=22 IN                                                                                                                                                                       
2020-04-29 15:20:00.588 [54892] main D> curl 0x414de2e8: event fd=22 IN                                                                                                                                                                      
2020-04-29 15:20:00.600 [54892] main D> curl 0x414de2e8: event fd=22 IN                                                                                                                                                                      
2020-04-29 15:20:00.614 [54892] main D> curl 0x414de2e8: event fd=22 IN                                                                                                                                                                      
2020-04-29 15:20:00.614 [54892] main D> curl 0x414de2e8: remove fd=22                                                                                                                                                                        
2020-04-29 15:20:00.614 [54892] main D> curl 0x414de2e8: wait timeout=-1ms

@Totktonada
Copy link
Member Author

It is maybe related to #52 (I didn't investigate).

LeonidVas added a commit that referenced this issue May 13, 2020
Before introducing a txn memory region box_txn_alloc()
allocates memory using the fiber.gc region and can be
used without box_txn_begin(). Now the similar trick
doesn't work (a transaction must be started).
To allocate memory on region without start a transaction,
the region was added to struct memcached_connection.

Fixes #53
@LeonidVas LeonidVas linked a pull request May 13, 2020 that will close this issue
@LeonidVas
Copy link
Collaborator

The fixes for Travis failed jobs(not related with this fix):
tarantool/small#23
#55

LeonidVas added a commit that referenced this issue May 14, 2020
Before introducing a txn memory region box_txn_alloc()
allocates memory using the fiber.gc region and can be
used without box_txn_begin(). Now the similar trick
doesn't work (a transaction must be started).
To allocate memory on region without start a transaction,
the region was added to struct memcached_connection.

Fixes #53
Totktonada pushed a commit that referenced this issue Jun 1, 2020
Before introducing a txn memory region box_txn_alloc()
allocates memory using the fiber.gc region and can be
used without box_txn_begin(). Now the similar trick
doesn't work (a transaction must be started).
To allocate memory on region without start a transaction,
the region was added to struct memcached_connection.

Fixes #53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants