Giter Club home page Giter Club logo

Comments (9)

danny0405 avatar danny0405 commented on June 18, 2024 1

otherwise is there a chance of mistakenly releasing the lock of other operations and causing problems?

That's reasonable, we should ensure the lock been acquired in the first place.

from hudi.

danny0405 avatar danny0405 commented on June 18, 2024

archive itself holds an transaction lock, so we need to release it in any case, what is the wrong case you have ecountered?

from hudi.

Ytimetravel avatar Ytimetravel commented on June 18, 2024

@danny0405 Sorry, I don't remember the details of the problem (I will confirm with my colleagues and provide the results later), but based on the logic here, wouldn't it be better to attempt to release the lock only when acquiring it, otherwise is there a chance of mistakenly releasing the lock of other operations and causing problems?

from hudi.

beyond1920 avatar beyond1920 commented on June 18, 2024

@danny0405 @Ytimetravel The behavior of method TransactionManager#endTransaction itself is correct, it would check whether the current lock is hold by itself before it unlock. However, there is a bug in HoodieTimelineArchiver because archiving itself is not a transaction and does not correspond to any instant in timeline. When an exception occurs, it might mistakenly deletes locks held by others.
image
@Ytimetravel Would you like to fix this issue?

from hudi.

Ytimetravel avatar Ytimetravel commented on June 18, 2024

@beyond1920 Yes, I am very willing to fix this issue.
image
This fix has already been tested and verified~

from hudi.

danny0405 avatar danny0405 commented on June 18, 2024

What is the general reason that the trasanction start of archival is failing?

from hudi.

Ytimetravel avatar Ytimetravel commented on June 18, 2024

@danny0405 Failed to acquire lock.

from hudi.

Ytimetravel avatar Ytimetravel commented on June 18, 2024
image

from hudi.

danny0405 avatar danny0405 commented on June 18, 2024

Okay, it would be great if you can fire a fix for it.

from hudi.

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.