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

Panic on receiving higher term #176

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Panic on receiving higher term #176

merged 1 commit into from
Jun 22, 2022

Conversation

petuhovskiy
Copy link
Member

@petuhovskiy petuhovskiy commented Jun 21, 2022

Fixes test_concurrent_computes from neondatabase/neon#1944

@petuhovskiy petuhovskiy requested a review from arssher June 21, 2022 15:05
if (sk->appendResponse.term > propTerm)
{
/* Another compute with higher term is running. */
elog(PANIC, "WAL acceptor %s:%s with term " INT64_FORMAT " rejected our request, our term " INT64_FORMAT "",
Copy link
Contributor

Choose a reason for hiding this comment

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

We can also add safekeeper node id to the message.

Copy link
Member Author

Choose a reason for hiding this comment

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

We have several ids in the logs currently, probably worth replacing all of them at once:

  • index in the global safekeepers array
  • %s:%s address of the safekeeper

@petuhovskiy petuhovskiy merged commit 1fa450d into main Jun 22, 2022
@petuhovskiy petuhovskiy deleted the panic-on-higher-term branch June 22, 2022 08:00
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jun 30, 2022
Contains changes from two PRs in vendor/postgres:
- neondatabase/postgres#163
- neondatabase/postgres#176
hlinnaka added a commit to neondatabase/neon that referenced this pull request Jul 5, 2022
Contains changes from two PRs in vendor/postgres:
- neondatabase/postgres#163
- neondatabase/postgres#176
MMeent pushed a commit that referenced this pull request Jul 7, 2022
MMeent pushed a commit that referenced this pull request Aug 18, 2022
lubennikovaav pushed a commit that referenced this pull request Nov 21, 2022
MMeent pushed a commit that referenced this pull request Feb 10, 2023
MMeent pushed a commit that referenced this pull request Feb 10, 2023
MMeent pushed a commit that referenced this pull request May 11, 2023
tristan957 pushed a commit that referenced this pull request Aug 10, 2023
tristan957 pushed a commit that referenced this pull request Nov 8, 2023
tristan957 pushed a commit that referenced this pull request Nov 8, 2023
tristan957 pushed a commit that referenced this pull request Feb 5, 2024
tristan957 pushed a commit that referenced this pull request Feb 5, 2024
tristan957 pushed a commit that referenced this pull request Feb 6, 2024
tristan957 pushed a commit that referenced this pull request May 10, 2024
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.

2 participants