citusdata / citusdata/citus

Hitting Assert in maintenance daemon when creating a second database

Open
#5,031 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

When locally running tests with asserts enabled I am hitting an Assert sometimes in the multi_extension test when creating a second database:

https://github.com/citusdata/citus/blob/a209999618ed0a143561767e6240e0a365e6ec6b/src/test/regress/sql/multi_extension.sql#L375

The assert I'm hitting is https://github.com/citusdata/citus/blob/a209999618ed0a143561767e6240e0a365e6ec6b/src/backend/distributed/utils/maintenanced.c#L808

Some more investigation is needed to know if this is an actual bug, or only a faulty assert.

Contributor guide

Open the contributing guide

Research direction

Reproduce the assertion with asserts enabled by running the multi_extension test at src/test/regress/sql/multi_extension.sql, especially around line 375. Then inspect the maintenance-daemon assertion in src/backend/distributed/utils/maintenanced.c around line 808 and determine whether it indicates a real bug or a faulty assertion; completion requires a confirmed diagnosis.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, postgresql
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.