Git Product home page Git Product logo

Comments (2)

jphughes avatar jphughes commented on August 28, 2024

This is a bug in the simulator. We will look at this and let you know.

On Oct 1, 2014, at 2:25 AM, Romain Slootmaekers [email protected] wrote:

In p2p push from drive A to drive B, if a key is specified in the list to push,
but not present at A, there is no exception, it's just skipped.
Is this intended behaviour? (we tested the simulator, will test the real thing shortly)


Reply to this email directly or view it on GitHub.

from kinetic-java.

chiaming2000 avatar chiaming2000 commented on August 28, 2024

For protocol 2.x, there is a bug such that the overall status always return true with PeerToPeerOperation.getStatus() if all the operations can be processed (failed/succeeded). This is fixed with the commit mentioned below.

A KineticException is thrown only when the operations specified CAN NOT be processed and errors cannot be properly handled by the drive/simulator. If all the operations can be processed (failed or succeeded), the overall status is set in the response message (the returned PeerToPeerOperation object).

The overall status is set to true if and only if each of the specified operation was processed successfully. Otherwise, it is set to false.

Applications can check individual operation's status by examining each Operation's status with the returned PeerToPeerOperation.getOperationList() API.

The following commit enforced/enhanced the above behavior (protocol 3.x):
2015a63

An example is at the link here (test case "testP2PPut_Fails_ForVersionMismatch"):

https://github.com/Seagate/kinetic-java/blob/master/kinetic-test/src/test/java/com/seagate/kinetic/simulator/client/p2p/PeerToPeerOperationTest.java

from kinetic-java.

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.