aws / amazon-finspace-examples

This repo contains sample code and sample notebooks to illustrate how to work with Amazon FinSpace
MIT No Attribution
20 stars 25 forks source link

'zx error thrown in `.z.ts` and `.z.pc` if FH is not connected to TP #12

Open eohara-ie opened 1 year ago

eohara-ie commented 1 year ago

Hi,

Spotted some issues with these lines:

https://github.com/aws/amazon-finspace-examples/blob/caed5a2adc06938775878c0441a5c4fffec02163/ManagedkdbInsights/basic_tick/basictick/feedmkdb.q#L26C10-L26C10

https://github.com/aws/amazon-finspace-examples/blob/caed5a2adc06938775878c0441a5c4fffec02163/ManagedkdbInsights/basic_tick/basictick/feedmkdb.q#L41C21-L41C21

Can reproduce the issue if the FH fails to connect to the TP first time around, or the handle is closed.

Can fix by defining zx within .z.ts and .z.pc

Thanks, Eoghan

eohara-ie commented 1 year ago

Seems like the same error affects the RDB as well, as it uses similar code to retry a connection to the TP

image