Skip to content
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

OffsetOutOfRange #33

Closed
tompeel opened this issue Jan 14, 2021 · 4 comments
Closed

OffsetOutOfRange #33

tompeel opened this issue Jan 14, 2021 · 4 comments

Comments

@tompeel
Copy link

tompeel commented Jan 14, 2021

Using the kafka consumer node I'm getting the error OffsetOutOfRrang (PAUSED).

I can see the offset is 331104153 using another kafka tool out side of node red.

If I inject msg.action:fetch into the kafka offset node it crashes the web ui of node red and i have to refresh my browser after a few seconds.

In the kafka admin node when i request the topic i get
[{"0":{"nodeId":0,"host":"####","port":###},"4":{"nodeId":4,"host":"####","port":####},"12":{"nodeId":12,"host":"####","port":###}},{"metadata":{"Mdss-Binary":{"0":{"topic":"Mdss-Binary","partition":0,"leader":4,"replicas":[],"isr":[]}},"Mdss-Json":{"0":{"topic":"Mdss-Json","partition":0,"leader":12,"replicas":[],"isr":[]}}},"clusterMetadata":{"controllerId":0}}]

So i assume i have a good connection and the auth and credentials are correct.

How can i debug this problem further?

@peterprib
Copy link
Owner

If you send log I can workout what may be causing crash of web ui. This sounds odd as not sure what would induce.

Actually problem see to be related to SOHU-Co/kafka-node#170

@tompeel
Copy link
Author

tompeel commented Jan 15, 2021

Which particulart logs are you after, im using node red in homeassistant at the moment, so i probably need to drill down in there.

If I use the Kafka Offset node I get the error "kafka offset signal not deployed"

In relation to the SOHU-Co/kadka-node#170 I'm not sure how this applies, obviously the offset number I'm working with is huge some 30 million or so and counting up all the time...

The consumer note does pause when you get the out of range error.

I'm not all that experienced on kafka, what should my offset be in the consumer node if i just want to pull the most recent 10000 datapoints?

@peterprib
Copy link
Owner

The node.js logs at point of failure. 30M isn't that big although near 32bit max which may being used and causing an issue at some layer. Logs should highlight if this is the case.

@peterprib
Copy link
Owner

Closing as after a bit more research determine the first problem is most likely to be at Kafka layer. The second problem being Web UI crashing is not likely to be caused by code in this module but values pasted that may not be handled by node-red. Browser log should help to identify root cause of issue. Can't do much more on either without extracts of relevant logs.

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

No branches or pull requests

2 participants