Public bug reported:

localhost> lua box.fiber.self():id()
---
 - 103
...
localhost> lua box.fiber.yield(10) <!-- should start sleeping here and wait 
somebody to wake it up
---
 - 10
...

2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> resume
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 fiber.m:108 W> my 
caller is :1 sched
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 init.m:1463 W> LUA: 
box.fiber.yield(10)
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 init.m:1014 W> 
lbox_fiber_yield 1
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 fiber.m:271 W> 
fiber_wakeup append: 103
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> pause

2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:448 W> test_cancel
2013-01-17 21:24:44.642 [6979] 1/sched D> resume

2013-01-17 21:24:44.642 [6979] 1/sched D> pause
2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:108 W> my caller is :1 sched
2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:121 W> transfer: 103 
admin/127.0.0.1:46299
2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> resume


Please also note, that box/lua.test is incorrect. 
---
exec admin "lua function r() return box.fiber.yield(box.fiber.create(r)) end"
exec admin "lua f = r()" <!-- yield admin fiber 
exec admin "lua f1 = box.fiber.resume(f)" 
---

** Affects: tarantool
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1100875

Title:
  box.fiber.yield with non-lua fibers wake up caller on next event loop

Status in Tarantool - an efficient in-memory data store:
  New

Bug description:
  localhost> lua box.fiber.self():id()
  ---
   - 103
  ...
  localhost> lua box.fiber.yield(10) <!-- should start sleeping here and wait 
somebody to wake it up
  ---
   - 10
  ...

  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> resume
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 fiber.m:108 W> my 
caller is :1 sched
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 init.m:1463 W> LUA: 
box.fiber.yield(10)
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 init.m:1014 W> 
lbox_fiber_yield 1
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 fiber.m:271 W> 
fiber_wakeup append: 103
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> pause

  2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:448 W> test_cancel
  2013-01-17 21:24:44.642 [6979] 1/sched D> resume

  2013-01-17 21:24:44.642 [6979] 1/sched D> pause
  2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:108 W> my caller is :1 sched
  2013-01-17 21:24:44.642 [6979] 1/sched fiber.m:121 W> transfer: 103 
admin/127.0.0.1:46299
  2013-01-17 21:24:44.642 [6979] 103/admin/127.0.0.1:46299 D> resume


  Please also note, that box/lua.test is incorrect. 
  ---
  exec admin "lua function r() return box.fiber.yield(box.fiber.create(r)) end"
  exec admin "lua f = r()" <!-- yield admin fiber 
  exec admin "lua f1 = box.fiber.resume(f)" 
  ---

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1100875/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to