Code Monkey home page Code Monkey logo

eo-ingestion's People

Contributors

fpj avatar

Watchers

 avatar  avatar  avatar

Forkers

adrdc

eo-ingestion's Issues

Test case: Abort half way through a transaction

Add a test case that aborts part way into writing events from a file. Currently, the test enabled with duringTxnFlag aborts after all events have been written but before commit:

https://github.com/fpj/eo-ingestion/blob/master/src/test/java/io/pravega/eoi/PravegaSynchronizedWriterTest.java#L79

This is a good test. However, another interesting test would be aborting after just a few of the events in a transaction have been written. Specifically, I mean aborting part way in the loop that begins here:

https://github.com/fpj/eo-ingestion/blob/master/src/main/java/io/pravega/eoi/PravegaSynchronizedWriter.java#L232

Document and refactor ExactlyOnceIngestionSynchronizer

The class ExactlyOnceIngestionSynchronizer is difficult to read and follow the execution flow. It would be nice to reorganize it and/or add plenty of comments so that readers know what is going on. This will likely be a reader's first time reading about StateSynchronizer.

Ability to have concurrent writers

The current code supports restart cases, but not cases in which it is possible to have concurrent writers, either because there are multiple writers ingesting data or because of a zombie writer.

Document failure scenarios

It is important to document the failure scenarios that the code covers. it is important to argue that it is correct.

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.