Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: ExecutableTaskTracker LowWatermark funcion #4343

Merged
merged 1 commit into from May 15, 2023

Conversation

wxing1292
Copy link
Contributor

What changed?

  • LowWatermark should keep track the next element during element deletion
  • Use [inclusive, exclusive) range representation

Why?
Bugfix & better maintenance

How did you test it?
UT

Potential risks
N/A

Is hotfix candidate?
N/A

@wxing1292 wxing1292 requested review from meiliang86 and yux0 May 15, 2023 21:56
@wxing1292 wxing1292 requested a review from a team as a code owner May 15, 2023 21:56
Comment on lines +141 to +144
nextElement := element.Next()
delete(t.taskIDs, task.TaskID())
t.taskQueue.Remove(element)
element = nextElement
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the real bugfix, i.e. need to keep track of the next element when deleting the current element

@wxing1292 wxing1292 force-pushed the fix-bug branch 2 times, most recently from 5037731 to 76abbcf Compare May 15, 2023 22:05
* LowWatermark should keep track the next element during element deletion
* Use [inclusive, exclusive) range representation
@wxing1292 wxing1292 enabled auto-merge (squash) May 15, 2023 22:35
@wxing1292 wxing1292 merged commit d201491 into temporalio:master May 15, 2023
9 checks passed
@wxing1292 wxing1292 deleted the fix-bug branch May 15, 2023 22:47
wxing1292 added a commit that referenced this pull request Jun 14, 2023
* LowWatermark should keep track the next element during element deletion
* Use [inclusive, exclusive) range representation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants