The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to fetch the records from confluent rest proxy using records endpoint.

Rachit Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2020

I am working on a spring scheduler application. The main function of the application is to pull the records from confluent rest proxy and do some business functionality.

Steps that we are following:

1. Create consumer instance. We are always creating a unique instance when the scheduler runs. (ex. instanceName + service.getCurrentTime()) We have used POST /consumers/(string:group_name)

2. create subscription using the instanceId generated. We have used POST /subscription

3. fetching records(encrypted records). We have used GET /records

This has been observed that when we have pushed few records in topics after the subscription, in that case records are getting pulled when the next scheduler runs, but lets say when we restart kafka (this happens locally as well as on the server) and push records to the topics in that case we need to retry many times 2-3 times atleaset in order to get the records.

I am currently experiencing this issue on server. I have checked with my automation team and found that my consumer group id is valid.  

 

try {
Attributes instanceAttributes = recordsService.createInstance(instanceName + service.getCurrentTime());
// Topics to subscribe
recordsService.createSubscription(instanceAttributes, kafkaTopicProperties.getTopics());
// Fetch records -- Trouble in getting records
ResponseEntity<String> response = recordsService.getRecords(instanceAttributes);

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events