Git Product home page Git Product logo

Comments (4)

wangyaopw avatar wangyaopw commented on August 22, 2024 1

A worker means a pod of the mill.

Oh, if this log is from the integrationTest, then it is not due to a mill losing its claim to a computation, since we only have 1 mill in each inProcessDuchy.

Other scenario that can cause this error is in the AsyncComputationControlService, where the non-aggregators send their initial sketches to the aggregator at the same time, handlerA reads the token and then handlerB read the same token, handlerA then writes the path and causes the updateTime to change, when handlerB tries to write, it would fail.

There aren't many cases in which the updateTime of the computation can change during someone else is trying to update it.

from cross-media-measurement.

wangyaopw avatar wangyaopw commented on August 22, 2024

This might not be a bug.

By design, the worker who owns the computation can update it only if the computation hasn't been modified by someone else.

For example, if the worker's lock on this computation expires, the computation could be claimed by another worker and gets updated, or maybe the computation is marked FAILED by the herald. Once a computation is updated by someone else, the original worker who claimed it won't be able to update it again.

Such failure is transient and this worker will simply give up current attempt.

from cross-media-measurement.

wangyaopw avatar wangyaopw commented on August 22, 2024

Disclaimer: this logic is not designed by me.

from cross-media-measurement.

renjiezh avatar renjiezh commented on August 22, 2024

This might not be a bug.

By design, the worker who owns the computation can update it only if the computation hasn't been modified by someone else.

For example, if the worker's lock on this computation expires, the computation could be claimed by another worker and gets updated, or maybe the computation is marked FAILED by the herald. Once a computation is updated by someone else, the original worker who claimed it won't be able to update it again.

Such failure is transient and this worker will simply give up current attempt.

Thank you Yao for the explanation.
I don't really get "another worker". I guess the Computation we discussed about here is the local Computation, which will only be accessed by the single worker. Do you mean "another thread" of the worker?

from cross-media-measurement.

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.