Repository navigation
[#383] Add clustering foundation, configuration, and bitset support - #1745
manishpatel00 wants to merge 1 commit into
Conversation
…upport Introduce foundational clustering support for node synchronization: 1. Bitset: Add a bounds-safe bitset data structure (bitset.h, bitset.c) for tracking chunk streaming and transfer states, with unit tests in test_bitset.c. 2. Configuration: Add clustering settings (clustering, clustering_id, clustering_nodes, clustering_base_dir) to main_configuration, server configuration, INI parser, reload transfer, and validation rules. 3. Wire Protocol Framing: Add JSON framing for clustering commands (CLUSTERING_GET_ID, CLUSTERING_GET_SERVERS), outcome responses, and active node discovery (pgmoneta_clustering_check_active). Fixes pgmoneta#383 Signed-off-by: Manish Kumar <[email protected]>
|
closing - read the reasons on #1751 |
|
@ecleon26 @jesperpedersen I have read the explanation on #1751. I understand the distinction: #1745 and #1747 provide foundations and discovery, while #1751 implements backup transfer, verification and restore. My PR descriptions should not have claimed to fix all of #383. However, I would like clarification on the contribution direction before this work is written off. In #383 I explicitly asked for a scoped, unowned subtask to avoid duplicating @Shgit29’s work, and received “Go for it”: #383 (comment) . I then documented the two-part scope. That was not approval of a particular design, but it did leave the intended division of work unclear. Could you please confirm whether these PRs are being declined because their design is incompatible with the chosen approach, because incremental foundations are not wanted, or both? Are any self-contained pieces—such as the bitset and its tests—useful to the selected implementation, or would you prefer a specific testing/documentation subtask instead? I am willing to narrow or adapt the work, but would appreciate a concrete agreed scope before investing in another revision. I respect choosing one clustering implementation and will not reopen these PRs or submit a competing replacement without agreement. Please also preserve appropriate attribution if code from these PRs is reused. |
|
@manishpatel00 Both. #1751 has its own clustering.c, configuration and node model, and it builds them around moving backups between nodes. Meanwhile #1745/#1747 define a different set of structures for the same thing, so they can't sit underneath #1751 - one of them would have to be thrown away. we don't merge foundations on their own without the feature that uses them. |
|
@ecleon26 Thanks for clarifying. I understand that these PRs introduce a competing design and do not deliver the backup synchronization feature needed to justify the foundations. I’ll leave #1745 and #1747 closed. For any further clustering contribution, I’ll coordinate with @Shgit29 around #1751’s design and existing coverage first, agree on a concrete gap, and keep the change focused—for example, a regression test for a confirmed bug. I’ll avoid submitting another implementation or extracting unused foundations into a separate PR. |
Fixes #383
Description
Introduces foundational clustering support for node synchronization:
bitset.h,bitset.c) for chunk streaming tracking with comprehensive MCTF unit tests (test_bitset.c).clustering,clustering_id,clustering_nodes,clustering_base_dir) inmain_configuration, server configuration, INI parsing, reload synchronization, and validation rules.CLUSTERING_GET_ID,CLUSTERING_GET_SERVERS), response outcome helpers, and active node discovery (pgmoneta_clustering_check_active).Rebased on latest
mainwith 1 squashed commit and full static analysis / unit test verification.