fluss icon indicating copy to clipboard operation
fluss copied to clipboard

[lake] Fail fast when two plugins register the same lake format

Open fresh-borzoni opened this issue 1 month ago • 4 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Description

LakeStoragePluginSetUp uses the first lake plugin whose identifier matches the configured format, so if two plugins register the same format (for example the Iceberg 1.10 and 1.12 plugins installed side by side), one is picked silently depending on load order. It should fail with an error naming both, like ConfigProviders does for duplicate config providers.

Willingness to contribute

  • [ ] I'm willing to submit a PR!

fresh-borzoni avatar Oct 12 '26 07:10 fresh-borzoni

I’d like to work on this if it’s still available. I propose detecting a second match for the requested lake format and reporting the format and both implementation classes, following ConfigProviders. I’ll preserve the existing wrapper and no-match behavior, with tests for duplicates within and across PluginManager/SPI.

Should the same implementation discovered through both sources also count as a conflict? I’d avoid deduplicating by class name because separate classloaders may load different versions with the same name.

Does this scope look right? If so, could you assign the issue to me?

Hachiman566 avatar Oct 12 '26 23:10 Hachiman566

@Hachiman566 I see it doesn't affect the other tickets, so please go ahead and thank you for your interest 🙌 Assigned to you.

polyzos avatar Oct 13 '26 06:10 polyzos

Hi @Hachiman566, Is there any progress here, because we need to push this.

polyzos avatar Oct 27 '26 14:10 polyzos

Hi @polyzos, I’ve opened draft PR #4916 for this issue. The fix and targeted tests are ready. I’ve noted one question about duplicate detection across PluginManager and SPI for review. CI is awaiting maintainer approval.

Hachiman566 avatar Oct 27 '26 15:10 Hachiman566