brod icon indicating copy to clipboard operation
brod copied to clipboard

Support Create Partitions

Open BlueCollarChris opened this issue 9 months ago • 9 comments

Adds in the ability to create partitions for an existing topic. Adds in the ability for clients to synchronize their topic metadata to pick up new partitions and start a producer.

BlueCollarChris avatar Mar 20 '25 18:03 BlueCollarChris

Working on tests still but posting for initial feedback

BlueCollarChris avatar Mar 20 '25 18:03 BlueCollarChris

thank you for the PR @BlueCollarChris could you add an entry in CHANGELOG.md

zmstone avatar Mar 20 '25 23:03 zmstone

Just seeing the comments now and will get back to you on Monday. I had been exploring a different route locally where the sync is done outside the client in a linked genserver. I wasn't sure if the sync process were to block the client would be disrupted from handling other requests. I'll see about getting those changes up shortly.

BlueCollarChris avatar Mar 22 '25 21:03 BlueCollarChris

@zmstone got the update in I mentioned over the weekend. Is there a specific formatter you recommend looks like the one for my IDE formatted some stuff showing more changes than were there previously. I did make the change to start the partition producer under the brod_supervisor3 as mentioned in your previous comment. Working on the tests for the brod_partitions_sync module still.

BlueCollarChris avatar Mar 24 '25 16:03 BlueCollarChris

Hi @BlueCollarChris Thank you for the PR and sorry for the slow review.

About code format: we use https://github.com/WhatsApp/erlfmt example for ref: https://github.com/kafka4beam/brod-cli/blob/f8a2784f4ffb7aa70bf8006c2b519ca12991c4f7/rebar.config#L7-L10

Possible to leave code reformat out in this PR? it makes review easier.

zmstone avatar Apr 22 '25 11:04 zmstone

I have been completely swamped but will get to updating the formatting of this very soon, sorry for the delay

BlueCollarChris avatar Sep 17 '25 20:09 BlueCollarChris

thanks. there are some conflicts. could you rebase ?

zmstone avatar Oct 02 '25 14:10 zmstone

Working on the formatting at this point to remove the changes and conform the new module to it

BlueCollarChris avatar Nov 05 '25 19:11 BlueCollarChris

@zmstone This is now ready. I have removed the formatting changes from the code that was causing the delay from earlier.

BlueCollarChris avatar Nov 05 '25 21:11 BlueCollarChris