Skip to content

Error/Throttle callback function additions closing #33#40

Merged
cmccarthy1 merged 5 commits into
KxSystems:masterfrom
cmccarthy1:error/throttlecb
Jun 10, 2020
Merged

Error/Throttle callback function additions closing #33#40
cmccarthy1 merged 5 commits into
KxSystems:masterfrom
cmccarthy1:error/throttlecb

Conversation

@cmccarthy1

Copy link
Copy Markdown
Contributor
  • Addition of error and throttle callbacks in the creation of clients allowing these to be handled by q
  • This addition closes Expose .kfk.throttlecb and .kfk.errorcb to the interface #33
  • Example invocation would be to change .kfk.errcb function in the kfk.q file to
    errcb:{[cid;err_int;reason]show (cid;err_int;reason);}
    
    • Run the following command from a new q session started with q kfk.q
    q).kfk.Consumer[`metadata.broker.list`group.id!`foobar`0]
    
    • This will return the following as expected
    q)0i
    -193i
    "foobar:9092/bootstrap: Failed to resolve 'foobar:9092': nodename nor servnam..
    0i
    -187i
    "1/1 brokers are down"
    

@cmccarthy1 cmccarthy1 requested a review from sshanks-kx June 10, 2020 10:02
@cmccarthy1 cmccarthy1 merged commit 20c761c into KxSystems:master Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose .kfk.throttlecb and .kfk.errorcb to the interface

2 participants