cancel
Showing results for 
Search instead for 
Did you mean: 

Couldn't do assignment on a tickerplant?

xinyu_gai
New Contributor
Hi,


I opened a new q instance which worked as a client to a tickerplant process (the server).

I entered :    h: hopen `: server_name:port_number  in the client side q console to open an IPC handle to the tickerplant.

Then I entered in      h "1+1"     and got a result of 2, which means the connection was successfully built up. 

However, when I tried to do assignment with     h "a: 1+1"     ,  an error message came out saying "'noupdate: `. `aaaa"  

Then I opened a new handle which connected to a hdb port instead of a tickerplant port,   assignment could be done perfectly.  

I am confused about this. By going through this page http://code.kx.com/wiki/Errors, I find the "Noupdate" error is somewhat caused by threads-related problem. However I was just doing assignment, could anyone please help me with this? 

Any help and suggestions are sincerely appreciated!


Best

Xinyu    
4 REPLIES 4

Matthew_McAuley
New Contributor

Hi Xinyu,

Can I ask what command line arguments you started the tickerplant with? From the error code and what you have described, it sounds as though it was started with the -b option. This blocks write access, which could explain why you can do a 1+1 evaluation, but not assign a:1+1

The reference page for command line -b : http://code.kx.com/wiki/Reference/Cmdlineb

Thanks,
Matthew
AquaQ Analytics

To: Matthew McAuley , Kdb+ Personal Developers
If it's a tickerplant, it's also possible there is something in the .z.pg handler that prevents updates (perhaps those from an unknown host)

‎So if there aren't any clues in the command line as Matthew suggested, you can check there (using h".z.pg")

From: Matthew McAuley
Sent: Wednesday, March 2, 2016 11:56
To: Kdb+ Personal Developers
Reply To: personal-kdbplus@googlegroups.com
Subject: [personal kdb+] Re: Couldn't do assignment on a tickerplant?


Hi Xinyu,

Can I ask what command line arguments you started the tickerplant with? From the error code and what you have described, it sounds as though it was started with the -b option. This blocks write access, which could explain why you can do a 1+1 evaluation, but not assign a:1+1

The reference page for command line -b : http://code.kx.com/wiki/Reference/Cmdlineb

Thanks,
Matthew
AquaQ Analytics

On Wednesday, 2 March 2016 17:44:12 UTC, Xinyu Gai wrote:
Hi,


I opened a new q instance which worked as a client to a tickerplant process (the server).

I entered :    h: hopen `: server_name:port_number  in the client side q console to open an IPC handle to the tickerplant.

Then I entered in      h "1+1"     and got a result of 2, which means the connection was successfully built up. 

However, when I tried to do assignment with     h "a: 1+1"     ,  an error message came out saying "'noupdate: `. `aaaa"  

Then I opened a new handle which connected to a hdb port instead of a tickerplant port,   assignment could be done perfectly.  

I am confused about this. By going through this page http://code.kx.com/wiki/Errors, I find the "Noupdate" error is somewhat caused by threads-related problem. However I was just doing assignment, could anyone please help me with this? 

Any help and suggestions are sincerely appreciated!


Best

Xinyu    

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.

Hi David,

Thanks a lot for your reply. I tried "\\_" and it returned 1b. So I guess the client write access was blocked at start. Also I tried your suggestion, it returned  

{id:nextid[];logBefore[id;x;z;.proc.cp[]];logAfter[id;x;.proc.cp[];@[y;z;logE..

which I don't really understand. Is there any further information in the above result? Thanks!

Best,

Xinyu


Hi Matthew,

As the tickerplant was not started by me, I don't know the option it started with. But I tried h"\\_" and it returned 1b, probably that's the reason. Thank you so much for the help!

Best,

Xinyu