NodeJS thin client: full API

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Pavel Petroshenko
Hi Ivan,

I've got through some build issues, but it's still crashing on master [1]
for me:

Thread 1. Client is started
Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]

It would be nice if you could provide some sufficient instructions on how
to "install" and run the scripts. And also please specify, which AI
codebase you used for testing.

Thanks,
p.

[1] https://github.com/nobitlost/ignite/tree/master/modules/platforms/nodejs

On Thu, Jun 7, 2018 at 5:05 PM, Pavel Petroshenko <[hidden email]>
wrote:

> Hi Ivan,
>
> Thanks for taking care of this. I will give the scripts a try and get back
> to you if any questions.
>
> Could you please update the JIRA ticket [1] so that we keep it up-to-date.
>
> Thanks!
> p.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-8733
>
>
> On Thu, Jun 7, 2018 at 4:47 AM, Иван Артюхов <[hidden email]> wrote:
>
>> Hi Igniters!
>>
>> I've prepared two scripts to benchmark the throughput of Node.JS thin
>> client using 'atomic-put' operations [1]. They work in the following way:
>> - Main script 'bench-starter.js' starts the given number of thin clients
>> as
>> sub-processes. AFAIK, Node.JS is one-threaded so we should fork clients
>> from some parent process to make the benchmark fully utilize all CPU
>> cores.
>> - The Node.JS thin client script 'CachePut.js' uses the 'sandra' benchmark
>> package [2] which is simple and suites the asynchronous logic of the
>> Node.JS thin client package itself. Every second 'CachePut.js' calculates
>> and prints on screen the average throughput for current iteration.
>>
>> I tried to make the logic of 'CachePut.js' to be close to Java thin client
>> benchmarks for Yardstick framework available in a pull request [3].
>> Because
>> I'm not a Node.JS expert, it would be great if someone could review these
>> two scripts and compare them with Java thin client benchmarks.
>> Specifically
>> the 'IgniteThinPutBenchmark.java' benchmark which also does atomic puts.
>> Any
>> feedback is greatly appreciated!
>>
>> [1] https://gist.github.com/iartiukhov/c02385d265330e2c9192931759616f95
>> [2] https://www.npmjs.com/package/sandra
>> [3] https://github.com/apache/ignite/pull/3942
>>
>> Thanks,
>> Ivan
>>
>>
>> вт, 29 мая 2018 г. в 20:05, Denis Magda <[hidden email]>:
>>
>> > Hi Pavel,
>> >
>> > Thanks for prompt improvements. I'll check them this week.
>> >
>> > --
>> > Denis
>> >
>> > On Sun, May 27, 2018 at 5:04 PM, Pavel Petroshenko <
>> [hidden email]>
>> > wrote:
>> >
>> > > Hi Denis,
>> > >
>> > > Thanks for your feedback on the documentation! I addressed all your
>> > > comments from https://issues.apache.org/jira/browse/IGNITE-8589.
>> > >
>> > > Please let me know if you have any questions.
>> > >
>> > > Thanks,
>> > > p.
>> > >
>> > >
>> > > On Thu, May 24, 2018 at 12:42 PM, Pavel Petroshenko <
>> > [hidden email]
>> > > >
>> > > wrote:
>> > >
>> > > > Hi Denis,
>> > > >
>> > > > That's a good point, thanks. This should be a part of the "Usage"
>> > > section.
>> > > > I'll follow up in JIRA.
>> > > >
>> > > > p.
>> > > >
>> > > > On Thu, May 24, 2018 at 10:49 AM, Denis Magda <[hidden email]>
>> > wrote:
>> > > >
>> > > >> Pavel,
>> > > >>
>> > > >> Recalled that we've not described how to authenticate and set up
>> SSL
>> > > from
>> > > >> the client side. Please consider this for the doc. Left some notes
>> in
>> > > the
>> > > >> JIRA.
>> > > >>
>> > > >> --
>> > > >> Denis
>> > > >>
>> > > >> On Wed, May 23, 2018 at 12:25 PM, Denis Magda <[hidden email]>
>> > > wrote:
>> > > >>
>> > > >> > Alexey, Pavel,
>> > > >> >
>> > > >> > I've done a preliminary review of the doc and moved it to the
>> > > readme.io
>> > > >> > page:
>> > > >> > https://apacheignite.readme.io/v2.4/docs/nodejs-thin-client
>> > > >> >
>> > > >> > The page is hidden. I'll grant you access to readme so that you
>> can
>> > > >> update
>> > > >> > the doc taking my suggestions into account:
>> > > >> > https://issues.apache.org/jira/browse/IGNITE-8589
>> > > >> >
>> > > >> > --
>> > > >> > Denis
>> > > >> >
>> > > >> >
>> > > >> > On Mon, May 21, 2018 at 6:39 PM, Alexey Kuznetsov <
>> > > >> [hidden email]>
>> > > >> > wrote:
>> > > >> >
>> > > >> >> Hi,
>> > > >> >>
>> > > >> >> FYI, HZ also has NodeJs client: https://github.com/
>> > > >> >> hazelcast/hazelcast-nodejs-client
>> > > >> >> May be it is worth to take a look?
>> > > >> >>
>> > > >> >> --
>> > > >> >> Alexey Kuznetsov
>> > > >> >>
>> > > >> >
>> > > >> >
>> > > >>
>> > > >
>> > > >
>> > >
>> >
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Ivan Artiukhov
Hi Pavel,

Thanks for trying to run the benchmark. The error arises because an Apache
Ignite node started with the default config does not have the cache with
name '*atomic*'. To run the benchmark you should do the following:

   1. Checkout latest '*master*' branch from Apache Ignite repo [1].
   2. Compile, install and assembly the Apache Ignite build as described in
   DEVNOTES.txt, section "Ignite Fabric Maven Build Instructions", clauses 2
   and 4.
   3. Unzip the assembly file '*target/bin/apache-ignite-fabric-*-bin.zip*'.
   4. Cd to target folder, open '*examples/config/example-cache.xml*' with
   an editor, find the '*org.apache.ignite.configuration.CacheConfiguration*'
   section and rename '*default*' cache to '*atomic*'.
   5. Start local Apache Ignite node with this config: '*./bin/ignite.sh
   examples/config/example-cache.xml*'. Either start one more local node
   the same way or set one endpoint in *CachePut.js* (via *ENDPOINT*
   constant).
   6. Start the benchmark: '*node bench-starter.js*'.

Please let me know if you experience any other problems.

Thanks,
Ivan

[1] https://github.com/apache/ignite/

вс, 10 июн. 2018 г. в 23:17, Pavel Petroshenko <[hidden email]>:

> Hi Ivan,
>
> I've got through some build issues, but it's still crashing on master [1]
> for me:
>
> Thread 1. Client is started
> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
>
> It would be nice if you could provide some sufficient instructions on how
> to "install" and run the scripts. And also please specify, which AI
> codebase you used for testing.
>
> Thanks,
> p.
>
> [1]
> https://github.com/nobitlost/ignite/tree/master/modules/platforms/nodejs
>
> On Thu, Jun 7, 2018 at 5:05 PM, Pavel Petroshenko <[hidden email]>
> wrote:
>
>> Hi Ivan,
>>
>> Thanks for taking care of this. I will give the scripts a try and get
>> back to you if any questions.
>>
>> Could you please update the JIRA ticket [1] so that we keep it up-to-date.
>>
>> Thanks!
>> p.
>>
>> [1] https://issues.apache.org/jira/browse/IGNITE-8733
>>
>>
>> On Thu, Jun 7, 2018 at 4:47 AM, Иван Артюхов <[hidden email]> wrote:
>>
>>> Hi Igniters!
>>>
>>> I've prepared two scripts to benchmark the throughput of Node.JS thin
>>> client using 'atomic-put' operations [1]. They work in the following way:
>>> - Main script 'bench-starter.js' starts the given number of thin clients
>>> as
>>> sub-processes. AFAIK, Node.JS is one-threaded so we should fork clients
>>> from some parent process to make the benchmark fully utilize all CPU
>>> cores.
>>> - The Node.JS thin client script 'CachePut.js' uses the 'sandra'
>>> benchmark
>>> package [2] which is simple and suites the asynchronous logic of the
>>> Node.JS thin client package itself. Every second 'CachePut.js' calculates
>>> and prints on screen the average throughput for current iteration.
>>>
>>> I tried to make the logic of 'CachePut.js' to be close to Java thin
>>> client
>>> benchmarks for Yardstick framework available in a pull request [3].
>>> Because
>>> I'm not a Node.JS expert, it would be great if someone could review these
>>> two scripts and compare them with Java thin client benchmarks.
>>> Specifically
>>> the 'IgniteThinPutBenchmark.java' benchmark which also does atomic puts.
>>> Any
>>> feedback is greatly appreciated!
>>>
>>> [1] https://gist.github.com/iartiukhov/c02385d265330e2c9192931759616f95
>>> [2] https://www.npmjs.com/package/sandra
>>> [3] https://github.com/apache/ignite/pull/3942
>>>
>>> Thanks,
>>> Ivan
>>>
>>>
>>> вт, 29 мая 2018 г. в 20:05, Denis Magda <[hidden email]>:
>>>
>>> > Hi Pavel,
>>> >
>>> > Thanks for prompt improvements. I'll check them this week.
>>> >
>>> > --
>>> > Denis
>>> >
>>> > On Sun, May 27, 2018 at 5:04 PM, Pavel Petroshenko <
>>> [hidden email]>
>>> > wrote:
>>> >
>>> > > Hi Denis,
>>> > >
>>> > > Thanks for your feedback on the documentation! I addressed all your
>>> > > comments from https://issues.apache.org/jira/browse/IGNITE-8589.
>>> > >
>>> > > Please let me know if you have any questions.
>>> > >
>>> > > Thanks,
>>> > > p.
>>> > >
>>> > >
>>> > > On Thu, May 24, 2018 at 12:42 PM, Pavel Petroshenko <
>>> > [hidden email]
>>> > > >
>>> > > wrote:
>>> > >
>>> > > > Hi Denis,
>>> > > >
>>> > > > That's a good point, thanks. This should be a part of the "Usage"
>>> > > section.
>>> > > > I'll follow up in JIRA.
>>> > > >
>>> > > > p.
>>> > > >
>>> > > > On Thu, May 24, 2018 at 10:49 AM, Denis Magda <[hidden email]>
>>> > wrote:
>>> > > >
>>> > > >> Pavel,
>>> > > >>
>>> > > >> Recalled that we've not described how to authenticate and set up
>>> SSL
>>> > > from
>>> > > >> the client side. Please consider this for the doc. Left some
>>> notes in
>>> > > the
>>> > > >> JIRA.
>>> > > >>
>>> > > >> --
>>> > > >> Denis
>>> > > >>
>>> > > >> On Wed, May 23, 2018 at 12:25 PM, Denis Magda <[hidden email]>
>>> > > wrote:
>>> > > >>
>>> > > >> > Alexey, Pavel,
>>> > > >> >
>>> > > >> > I've done a preliminary review of the doc and moved it to the
>>> > > readme.io
>>> > > >> > page:
>>> > > >> > https://apacheignite.readme.io/v2.4/docs/nodejs-thin-client
>>> > > >> >
>>> > > >> > The page is hidden. I'll grant you access to readme so that you
>>> can
>>> > > >> update
>>> > > >> > the doc taking my suggestions into account:
>>> > > >> > https://issues.apache.org/jira/browse/IGNITE-8589
>>> > > >> >
>>> > > >> > --
>>> > > >> > Denis
>>> > > >> >
>>> > > >> >
>>> > > >> > On Mon, May 21, 2018 at 6:39 PM, Alexey Kuznetsov <
>>> > > >> [hidden email]>
>>> > > >> > wrote:
>>> > > >> >
>>> > > >> >> Hi,
>>> > > >> >>
>>> > > >> >> FYI, HZ also has NodeJs client: https://github.com/
>>> > > >> >> hazelcast/hazelcast-nodejs-client
>>> > > >> >> May be it is worth to take a look?
>>> > > >> >>
>>> > > >> >> --
>>> > > >> >> Alexey Kuznetsov
>>> > > >> >>
>>> > > >> >
>>> > > >> >
>>> > > >>
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Ivan Artiukhov
Also it would be better to set the 'atomic' cache to PARTITIONED mode to
equally split the data across all available nodes. This can be done by
setting the 'cacheMode' property to 'PARTITIONED'. Please see [1].

Ivan

[1]
https://gist.github.com/iartiukhov/c02385d265330e2c9192931759616f95#file-example-cache-xml

чт, 14 июн. 2018 г. в 9:26, Иван Артюхов <[hidden email]>:

> Hi Pavel,
>
> Thanks for trying to run the benchmark. The error arises because an Apache
> Ignite node started with the default config does not have the cache with
> name '*atomic*'. To run the benchmark you should do the following:
>
>    1. Checkout latest '*master*' branch from Apache Ignite repo [1].
>    2. Compile, install and assembly the Apache Ignite build as described
>    in DEVNOTES.txt, section "Ignite Fabric Maven Build Instructions", clauses
>    2 and 4.
>    3. Unzip the assembly file '*target/bin/apache-ignite-fabric-*-bin.zip*
>    '.
>    4. Cd to target folder, open '*examples/config/example-cache.xml*'
>    with an editor, find the '
>    *org.apache.ignite.configuration.CacheConfiguration*' section and
>    rename '*default*' cache to '*atomic*'.
>    5. Start local Apache Ignite node with this config: '*./bin/ignite.sh
>    examples/config/example-cache.xml*'. Either start one more local node
>    the same way or set one endpoint in *CachePut.js* (via *ENDPOINT*
>    constant).
>    6. Start the benchmark: '*node bench-starter.js*'.
>
> Please let me know if you experience any other problems.
>
> Thanks,
> Ivan
>
> [1] https://github.com/apache/ignite/
>
> вс, 10 июн. 2018 г. в 23:17, Pavel Petroshenko <[hidden email]>:
>
>> Hi Ivan,
>>
>> I've got through some build issues, but it's still crashing on master [1]
>> for me:
>>
>> Thread 1. Client is started
>> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
>> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
>> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
>> Thread 1. ERROR: Cache does not exist [cacheId= -1407396309]
>>
>> It would be nice if you could provide some sufficient instructions on how
>> to "install" and run the scripts. And also please specify, which AI
>> codebase you used for testing.
>>
>> Thanks,
>> p.
>>
>> [1]
>> https://github.com/nobitlost/ignite/tree/master/modules/platforms/nodejs
>>
>> On Thu, Jun 7, 2018 at 5:05 PM, Pavel Petroshenko <[hidden email]>
>> wrote:
>>
>>> Hi Ivan,
>>>
>>> Thanks for taking care of this. I will give the scripts a try and get
>>> back to you if any questions.
>>>
>>> Could you please update the JIRA ticket [1] so that we keep it
>>> up-to-date.
>>>
>>> Thanks!
>>> p.
>>>
>>> [1] https://issues.apache.org/jira/browse/IGNITE-8733
>>>
>>>
>>> On Thu, Jun 7, 2018 at 4:47 AM, Иван Артюхов <[hidden email]> wrote:
>>>
>>>> Hi Igniters!
>>>>
>>>> I've prepared two scripts to benchmark the throughput of Node.JS thin
>>>> client using 'atomic-put' operations [1]. They work in the following
>>>> way:
>>>> - Main script 'bench-starter.js' starts the given number of thin
>>>> clients as
>>>> sub-processes. AFAIK, Node.JS is one-threaded so we should fork clients
>>>> from some parent process to make the benchmark fully utilize all CPU
>>>> cores.
>>>> - The Node.JS thin client script 'CachePut.js' uses the 'sandra'
>>>> benchmark
>>>> package [2] which is simple and suites the asynchronous logic of the
>>>> Node.JS thin client package itself. Every second 'CachePut.js'
>>>> calculates
>>>> and prints on screen the average throughput for current iteration.
>>>>
>>>> I tried to make the logic of 'CachePut.js' to be close to Java thin
>>>> client
>>>> benchmarks for Yardstick framework available in a pull request [3].
>>>> Because
>>>> I'm not a Node.JS expert, it would be great if someone could review
>>>> these
>>>> two scripts and compare them with Java thin client benchmarks.
>>>> Specifically
>>>> the 'IgniteThinPutBenchmark.java' benchmark which also does atomic
>>>> puts. Any
>>>> feedback is greatly appreciated!
>>>>
>>>> [1] https://gist.github.com/iartiukhov/c02385d265330e2c9192931759616f95
>>>> [2] https://www.npmjs.com/package/sandra
>>>> [3] https://github.com/apache/ignite/pull/3942
>>>>
>>>> Thanks,
>>>> Ivan
>>>>
>>>>
>>>> вт, 29 мая 2018 г. в 20:05, Denis Magda <[hidden email]>:
>>>>
>>>> > Hi Pavel,
>>>> >
>>>> > Thanks for prompt improvements. I'll check them this week.
>>>> >
>>>> > --
>>>> > Denis
>>>> >
>>>> > On Sun, May 27, 2018 at 5:04 PM, Pavel Petroshenko <
>>>> [hidden email]>
>>>> > wrote:
>>>> >
>>>> > > Hi Denis,
>>>> > >
>>>> > > Thanks for your feedback on the documentation! I addressed all your
>>>> > > comments from https://issues.apache.org/jira/browse/IGNITE-8589.
>>>> > >
>>>> > > Please let me know if you have any questions.
>>>> > >
>>>> > > Thanks,
>>>> > > p.
>>>> > >
>>>> > >
>>>> > > On Thu, May 24, 2018 at 12:42 PM, Pavel Petroshenko <
>>>> > [hidden email]
>>>> > > >
>>>> > > wrote:
>>>> > >
>>>> > > > Hi Denis,
>>>> > > >
>>>> > > > That's a good point, thanks. This should be a part of the "Usage"
>>>> > > section.
>>>> > > > I'll follow up in JIRA.
>>>> > > >
>>>> > > > p.
>>>> > > >
>>>> > > > On Thu, May 24, 2018 at 10:49 AM, Denis Magda <[hidden email]>
>>>> > wrote:
>>>> > > >
>>>> > > >> Pavel,
>>>> > > >>
>>>> > > >> Recalled that we've not described how to authenticate and set up
>>>> SSL
>>>> > > from
>>>> > > >> the client side. Please consider this for the doc. Left some
>>>> notes in
>>>> > > the
>>>> > > >> JIRA.
>>>> > > >>
>>>> > > >> --
>>>> > > >> Denis
>>>> > > >>
>>>> > > >> On Wed, May 23, 2018 at 12:25 PM, Denis Magda <[hidden email]
>>>> >
>>>> > > wrote:
>>>> > > >>
>>>> > > >> > Alexey, Pavel,
>>>> > > >> >
>>>> > > >> > I've done a preliminary review of the doc and moved it to the
>>>> > > readme.io
>>>> > > >> > page:
>>>> > > >> > https://apacheignite.readme.io/v2.4/docs/nodejs-thin-client
>>>> > > >> >
>>>> > > >> > The page is hidden. I'll grant you access to readme so that
>>>> you can
>>>> > > >> update
>>>> > > >> > the doc taking my suggestions into account:
>>>> > > >> > https://issues.apache.org/jira/browse/IGNITE-8589
>>>> > > >> >
>>>> > > >> > --
>>>> > > >> > Denis
>>>> > > >> >
>>>> > > >> >
>>>> > > >> > On Mon, May 21, 2018 at 6:39 PM, Alexey Kuznetsov <
>>>> > > >> [hidden email]>
>>>> > > >> > wrote:
>>>> > > >> >
>>>> > > >> >> Hi,
>>>> > > >> >>
>>>> > > >> >> FYI, HZ also has NodeJs client: https://github.com/
>>>> > > >> >> hazelcast/hazelcast-nodejs-client
>>>> > > >> >> May be it is worth to take a look?
>>>> > > >> >>
>>>> > > >> >> --
>>>> > > >> >> Alexey Kuznetsov
>>>> > > >> >>
>>>> > > >> >
>>>> > > >> >
>>>> > > >>
>>>> > > >
>>>> > > >
>>>> > >
>>>> >
>>>>
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Stepan Pilshchikov
In reply to this post by Alexey Kosenchuk
Alexey,

I'm trying to get Enum from cache which placed by different thin client and
find that i can't get it, only exception

And more when im trying to get Enum which is placed by nodejs client i also
can't do it, have same exception

code and output -
https://gist.github.com/pilshchikov/ca9fda160e310f62dd4d1d6dbb2f904c

Can you please help me to investigate it, maybe something im doing wrong,
because its look like a bug



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Pavel Petroshenko
Hi Stepan,

Nodejs and PHP clients do not support enum type registration (and hence no
tests). So enum type must be registered from somewhere else in order to be
put or get from the Thin clients.

If you register the type say from Java, then put/get for Enum values should
work from the Thin clients. Can you please try this and let me know how it
works.

Thanks,
p.

On Tue, Oct 23, 2018 at 6:30 AM Stepan Pilshchikov <
[hidden email]> wrote:

> Alexey,
>
> I'm trying to get Enum from cache which placed by different thin client and
> find that i can't get it, only exception
>
> And more when im trying to get Enum which is placed by nodejs client i also
> can't do it, have same exception
>
> code and output -
> https://gist.github.com/pilshchikov/ca9fda160e310f62dd4d1d6dbb2f904c
>
> Can you please help me to investigate it, maybe something im doing wrong,
> because its look like a bug
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Igor Sapego-2
Pavel,

Can we add a proper check and throw proper exception
when trying to deserialize enum value? NPE does not say
anything to a user.

Best Regards,
Igor


On Wed, Oct 24, 2018 at 5:34 PM Pavel Petroshenko <[hidden email]>
wrote:

> Hi Stepan,
>
> Nodejs and PHP clients do not support enum type registration (and hence no
> tests). So enum type must be registered from somewhere else in order to be
> put or get from the Thin clients.
>
> If you register the type say from Java, then put/get for Enum values should
> work from the Thin clients. Can you please try this and let me know how it
> works.
>
> Thanks,
> p.
>
> On Tue, Oct 23, 2018 at 6:30 AM Stepan Pilshchikov <
> [hidden email]> wrote:
>
> > Alexey,
> >
> > I'm trying to get Enum from cache which placed by different thin client
> and
> > find that i can't get it, only exception
> >
> > And more when im trying to get Enum which is placed by nodejs client i
> also
> > can't do it, have same exception
> >
> > code and output -
> > https://gist.github.com/pilshchikov/ca9fda160e310f62dd4d1d6dbb2f904c
> >
> > Can you please help me to investigate it, maybe something im doing wrong,
> > because its look like a bug
> >
> >
> >
> > --
> > Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Pavel Petroshenko
Hi Igor,

Yes, it sounds reasonable, agree.

P.

On Wed, Oct 24, 2018 at 7:42 AM Igor Sapego <[hidden email]> wrote:

> Pavel,
>
> Can we add a proper check and throw proper exception
> when trying to deserialize enum value? NPE does not say
> anything to a user.
>
> Best Regards,
> Igor
>
>
> On Wed, Oct 24, 2018 at 5:34 PM Pavel Petroshenko <[hidden email]>
> wrote:
>
> > Hi Stepan,
> >
> > Nodejs and PHP clients do not support enum type registration (and hence
> no
> > tests). So enum type must be registered from somewhere else in order to
> be
> > put or get from the Thin clients.
> >
> > If you register the type say from Java, then put/get for Enum values
> should
> > work from the Thin clients. Can you please try this and let me know how
> it
> > works.
> >
> > Thanks,
> > p.
> >
> > On Tue, Oct 23, 2018 at 6:30 AM Stepan Pilshchikov <
> > [hidden email]> wrote:
> >
> > > Alexey,
> > >
> > > I'm trying to get Enum from cache which placed by different thin client
> > and
> > > find that i can't get it, only exception
> > >
> > > And more when im trying to get Enum which is placed by nodejs client i
> > also
> > > can't do it, have same exception
> > >
> > > code and output -
> > > https://gist.github.com/pilshchikov/ca9fda160e310f62dd4d1d6dbb2f904c
> > >
> > > Can you please help me to investigate it, maybe something im doing
> wrong,
> > > because its look like a bug
> > >
> > >
> > >
> > > --
> > > Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Alexey Kosenchuk
In reply to this post by Igor Sapego-2
Done for NodeJs and PHP.
Tests added as well.
https://issues.apache.org/jira/browse/IGNITE-10022
https://github.com/apache/ignite/pull/5187

-Alexey

24.10.2018 17:41, Igor Sapego пишет:

> Pavel,
>
> Can we add a proper check and throw proper exception
> when trying to deserialize enum value? NPE does not say
> anything to a user.
>
> Best Regards,
> Igor
>
>
> On Wed, Oct 24, 2018 at 5:34 PM Pavel Petroshenko <[hidden email]>
> wrote:
>
>> Hi Stepan,
>>
>> Nodejs and PHP clients do not support enum type registration (and hence no
>> tests). So enum type must be registered from somewhere else in order to be
>> put or get from the Thin clients.
>>
>> If you register the type say from Java, then put/get for Enum values should
>> work from the Thin clients. Can you please try this and let me know how it
>> works.
>>
>> Thanks,
>> p.
>>
>> On Tue, Oct 23, 2018 at 6:30 AM Stepan Pilshchikov <
>> [hidden email]> wrote:
>>
>>> Alexey,
>>>
>>> I'm trying to get Enum from cache which placed by different thin client
>> and
>>> find that i can't get it, only exception
>>>
>>> And more when im trying to get Enum which is placed by nodejs client i
>> also
>>> can't do it, have same exception
>>>
>>> code and output -
>>> https://gist.github.com/pilshchikov/ca9fda160e310f62dd4d1d6dbb2f904c
>>>
>>> Can you please help me to investigate it, maybe something im doing wrong,
>>> because its look like a bug
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

teligenz.dheeraj
In reply to this post by dsetrakyan
Team,

I have used nodejs thin client to connect ignite. With single query at time
on socket works fine. But when hit multiple request simultaneously, getting
frequent error message "Invalid response id: XXXXXXX".

when we try to get 5-10 query per sec we getting below error random times.

debug - Error: Invalid response id: 4122254909997320969    at
/webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:344:28  
at Map.forEach (<anonymous>)    at ClientSocket._disconnect
(/webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:343:24)  
at Socket.<anonymous>
(/webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:170:22)  
at runMicrotasks (<anonymous>)    at processTicksAndRejections

I have mark complete issue detail in on https://issues.apache.org/ with
issue id IGNITE-14550

https://issues.apache.org/jira/browse/IGNITE-14550



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS thin client: full API

Igor Sapego-2
Thanks for issuing a ticket. I'll take a look at it.

Best Regards,
Igor


On Fri, Apr 23, 2021 at 1:40 PM teligenz.dheeraj <[hidden email]>
wrote:

> Team,
>
> I have used nodejs thin client to connect ignite. With single query at time
> on socket works fine. But when hit multiple request simultaneously, getting
> frequent error message "Invalid response id: XXXXXXX".
>
> when we try to get 5-10 query per sec we getting below error random times.
>
> debug - Error: Invalid response id: 4122254909997320969    at
> /webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:344:28
>
> at Map.forEach (<anonymous>)    at ClientSocket._disconnect
> (/webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:343:24)
>
> at Socket.<anonymous>
> (/webapp/node_modules/apache-ignite-client/lib/internal/ClientSocket.js:170:22)
>
> at runMicrotasks (<anonymous>)    at processTicksAndRejections
>
> I have mark complete issue detail in on https://issues.apache.org/ with
> issue id IGNITE-14550
>
> https://issues.apache.org/jira/browse/IGNITE-14550
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>
12