Coder Social home page Coder Social logo

Comments (8)

knorwood avatar knorwood commented on July 22, 2024

That property is referenced in the KinesisConnectorConfiguration here and is used by the BasicMemoryBuffer here to determine the result of the "shouldFlush" method.

from amazon-kinesis-connectors.

ananthrk avatar ananthrk commented on July 22, 2024

My bad! I was using ver 1.0.0 and I see that the same has been introduced in Ver 1.1.0. Apologies. BTW, the elapsed milliseconds property is calculated and checked in the "shouldFlush"
method. This method will be invoked only from "processRecords" right? What happens in the case where we have some records in buffer that are not yet emitted, but there are no new messages being posted to the stream (and "callProcessRecordsEvenForEmptyList" is set to false)? How will the emitter be called when the time is elapsed and more importantly what happens to the pending checkpoint? Thanks again.

from amazon-kinesis-connectors.

knorwood avatar knorwood commented on July 22, 2024

That's correct, "shouldFlush" will only be called from "processRecords". In the scenario you describe the records would sit buffered until more records are put into the corresponding shard. The property "callProcessRecordsEvenForEmptyList" would need to be set to true to ensure that "processRecords" is eventually called in the absence of putting records into the stream.

There is no concept of a pending checkpoint, so there should not be any issue with a record processor sitting idle for a long time between flushes.

from amazon-kinesis-connectors.

ananthrk avatar ananthrk commented on July 22, 2024

Thanks. Regarding the checkpoint, I was concerned about the scenario where the data sits in the buffer (yet to be flushed) and the process goes down. If we bring up another process what would be the starting point in the stream for the new process? Would it re-process the previously buffered entries?

from amazon-kinesis-connectors.

gauravgh avatar gauravgh commented on July 22, 2024

Upon fail over, the new process will start consuming data from the last checkpoint.

Sincerely,
Gaurav

from amazon-kinesis-connectors.

samglo avatar samglo commented on July 22, 2024

Hi Gaurav,

In my sample.properties file for kinesis-storm-spout, what should I set zookeeperPrefix to ? I set it to zookeeperPrefix = /storm but looking at my Storm UI properties, I'm not sure which variable and respective value to.

Thanks ahead of time for any reply.

Sam

from amazon-kinesis-connectors.

gauravgh avatar gauravgh commented on July 22, 2024

Hi Sam,

Would you be able to post your question in the kinesis-storm-spout repository (https://github.com/awslabs/kinesis-storm-spout)?
Happy to answer it there.

Thank you,
Gaurav

from amazon-kinesis-connectors.

samglo avatar samglo commented on July 22, 2024

Thanks Gaurav ahead of time for your replies, also thanks for your contributions to this topic.

I just submitted my question there per your recommendation.

Sam

On Tuesday, October 21, 2014 5:14 PM, gauravgh [email protected] wrote:

Hi Sam,
Would you be able to post your question in the kinesis-storm-spout repository (https://github.com/awslabs/kinesis-storm-spout)?
Happy to answer it there.
Thank you,
Gaurav

Reply to this email directly or view it on GitHub.

from amazon-kinesis-connectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.