Skip to content

[Bug] preAllocatedSize could be negative in corner cases #426

@advancedxy

Description

@advancedxy

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

Notice preAllocatedSize could be negative in prod server logs

Affects Version(s)

master

Uniffle Server Log Output

[INFO] 2022-12-15 10:11:50,921 Grpc-*** ShuffleBufferManager flushIfNecessary - Start to flush with usedMemory[88*******], preAllocatedSize[-4969120], inFlushSize[0]

Uniffle Engine Log Output

No response

Uniffle Server Configurations

No response

Uniffle Engine Configurations

No response

Additional context

I did some investigation, there's some race conditions to update the preAllocatedSize field.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions