-
Notifications
You must be signed in to change notification settings - Fork 24
TarantoolException: request sync is not equal response sync #104
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
Comments
Are you sure, that this bug is still in |
Any update on this? |
PHP 7.0.8-0ubuntu0.16.04.3 still reproduce tt.php code <?php
$tnt = new Tarantool('127.0.0.1:3302');
$tnt->connect();
$space = "attr";
$rows = [
1 => [
'traffic' =>
[
581 => 1,
633 => 1,
820 => 1,
],
],
666 => [
'traffic' => [
405 => 36,
563 => 34,
565 => 28,
581 => 23,
631 => 25,
633 => 35,
669 => 19,
671 => 18,
674 => 26,
676 => 28,
718 => 14,
752 => 1,
754 => 1,
756 => 1,
796 => 22,
800 => 22,
808 => 19,
810 => 17,
814 => 14,
820 => 7,
830 => 13,
838 => 15,
842 => 15,
846 => 9,
848 => 9,
850 => 7,
858 => 11,
876 => 1,
878 => 2,
880 => 1,
],
],
];
foreach ($rows as $key => $data) {
echo 'upsert key: ' . $key . PHP_EOL;
$tnt->upsert($space, [$key, $data], [["field" => 1, "op" => "=", "arg" => $data]]);
} seven@shelby:~$ php tt.php
upsert key: 1
upsert key: 666
PHP Fatal error: Uncaught TarantoolException: request sync is not equal response sync. closing connection in /home/seven/tt.php:52
Stack trace:
#0 /home/seven/tt.php(52): Tarantool->upsert('attr', Array, Array)
#1 {main}
thrown in /home/seven/tt.php on line 52 box.space.attr
|
Hello, Dmitriy. Well, that (usually) means that previous request has been timedout. You With best regards, Eugene. 2016-11-23 15:06 GMT+03:00 Dmitriy Protasov [email protected]:
|
I need full test-case, if you can provide it (with Tarantool configuration With best regards, Eugene. 2016-11-23 15:39 GMT+03:00 Eugine Blikh [email protected]:
|
Found case how to reproduce exception:
When using authentication there is no exception @@ -18,6 +18,7 @@ box.cfg{
}
box.once('initialization', function()
+ box.schema.user.grant('guest', 'read,write,execute', 'universe')
box.schema.user.create('test', { password = 'test' })
box.schema.user.create('test_empty', { password = '' })
box.schema.user.create('test_big', { test/AuthMsgPackTest.php <?php
class AuthMsgPackTest extends PHPUnit_Framework_TestCase
{
protected static $tarantool;
protected static $data = [
'small' => [
1 => 2,
2 => 3,
],
'big' => [
405 => 36,
563 => 34,
565 => 28,
581 => 23,
631 => 25,
633 => 35,
669 => 19,
671 => 18,
674 => 26,
676 => 28,
718 => 14,
752 => 1,
754 => 1,
756 => 1,
796 => 22,
800 => 22,
808 => 19,
810 => 17,
814 => 14,
820 => 7,
830 => 13,
838 => 15,
842 => 15,
846 => 9,
848 => 9,
850 => 7,
858 => 11,
876 => 1,
878 => 2,
880 => 1,
],
];
public function test_01_guest_user_msgpack()
{
self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT'));
self::$tarantool->ping();
self::$tarantool->upsert("msgpack", [7, "insert big array with sub arrays", self::$data], [[
'field' => 2,
'op' => '=',
'arg' => self::$data,
]]);
$resp = self::$tarantool->select("msgpack", [7]);
$this->assertEquals(count($resp[0][2]['big']), 30);
$this->assertTrue(True);
}
public function test_02_authorized_user_msgpack()
{
self::$tarantool = new Tarantool('localhost', getenv('PRIMARY_PORT'));
self::$tarantool->authenticate('test', 'test');
self::$tarantool->upsert("msgpack", [7, "insert big array with sub arrays", self::$data], [[
'field' => 2,
'op' => '=',
'arg' => self::$data,
]]);
$resp = self::$tarantool->select("msgpack", [7]);
$this->assertEquals(count($resp[0][2]['big']), 30);
$this->assertTrue(True);
}
} |
Thank you, Dmitry! I'll try it tomorrow. With best regards, Eugene. 2016-11-23 17:27 GMT+03:00 Dmitriy Protasov [email protected]:
|
up |
2018-02-20 18:34:24.456 [36943] iproto xrow.c:59 E> ER_INVALID_MSGPACK: Invalid MsgPack - packet header |
When I try execute upsert method with big array, I have error:
OS: centos 6.8 x86_64
PHP: 7.0.8
Tarantool: 1.7.1.123-1.el6.x86_64
PHP script:
testing.lua
box:The text was updated successfully, but these errors were encountered: