Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop logging about command topic creation on startup if exists (MINOR) #4709

Merged

Conversation

big-andy-coates
Copy link
Contributor

Description

fixes: #4708

  • Changed the code to only log about Creating topic _confluent-ksql-4_command_topic with replication factor of 1 which is less than 2 if its actually creating to the command topic, otherwise log different message, (UX improvement)
  • Fixed the code to not log Corrected retention.ms on ksql internal topic. topic:_confluent-ksql-4_command_topic, retention.ms:9223372036854775807 when retention already correctly set, (bug fix).
    The bug on the retention logging was that the code that checks to see if a change needs applying was comparing Long.MAX_VALUE with a String holding the same value. Changed code to compare like for like.
  • Refactored test to not use EasyMock while I was in there.

Testing done

unit tests updated.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

fixes: confluentinc#4708

* Changed the code to only log about `Creating topic _confluent-ksql-4_command_topic with replication factor of 1 which is less than 2` if its actually creating to the command topic, otherwise log different message, (UX improvement)
* Fixed the code to not log `Corrected retention.ms on ksql internal topic. topic:_confluent-ksql-4_command_topic, retention.ms:9223372036854775807` when retention already correctly set, (bug fix).
  The bug on the retention logging was that the code that checks to see if a change needs applying was comparing `Long.MAX_VALUE` with a String holding the same value.  Changed code to compare like for like.
@big-andy-coates big-andy-coates requested a review from a team as a code owner March 5, 2020 10:06
@big-andy-coates big-andy-coates changed the title fix: stop logging about command topic creation on startup if exists fix: stop logging about command topic creation on startup if exists (MINOR) Mar 5, 2020
@big-andy-coates
Copy link
Contributor Author

Merging without review as its been 4 days...

@big-andy-coates big-andy-coates merged commit f4cec0a into confluentinc:master Mar 9, 2020
@big-andy-coates big-andy-coates deleted the start_up_topic_logging branch March 9, 2020 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ksqlDB logs command topic creation on each restart
1 participant