You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "hejiay (via GitHub)" <gi...@apache.org> on 2023/07/20 08:53:22 UTC
[GitHub] [iceberg] hejiay commented on issue #8107: Api:Fix add the same listener to the same listeners queue multiple times
hejiay commented on issue #8107:
URL: https://github.com/apache/iceberg/issues/8107#issuecomment-1643536459
Thank you, the `KafkaCreateSnapshotEventToJsonListener` is my implementation of `Listener`, it sends create snapshot event to kafka topic when a snapshot was created.I register it into listeners when catalog initialize.
And I found that when I execute the unit test `[TestFlinkHiveCatalog.testCreateCatalogWithWarehouseLocation()]`, the `HiveCatalog` would be initialized four times and the same KafkaCreateSnapshotEventToJsonListener object would be registered into the same eventType queue four times. So a snapshot event would be sent to kafka four times.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org