Skip to content

KAFKA-10460: ReplicaListValidator format checking is incomplete#9326

Merged
mimaison merged 3 commits intoapache:trunkfrom
ankitk-me:KAFKA-10460
Dec 3, 2020
Merged

KAFKA-10460: ReplicaListValidator format checking is incomplete#9326
mimaison merged 3 commits intoapache:trunkfrom
ankitk-me:KAFKA-10460

Conversation

@ankitk-me
Copy link
Copy Markdown
Contributor

@ankitk-me ankitk-me commented Sep 23, 2020

What? :: See https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ConfigHandler.scala#L220 . The logic is supposed to accept only two cases:

list of k:v pairs
a single ''
But in practice, since the disjunction's second part only checks that the head is '
', the case where a k:v list is headed by a star is also accepted (and then later broker dies at startup, refusing the value).

JIRA: https://issues.apache.org/jira/browse/KAFKA-10460

@viktorsomogyi Can you please review this?

Copy link
Copy Markdown
Contributor

@viktorsomogyi viktorsomogyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you have some test failures. Would you please check them?

@ankitk-me
Copy link
Copy Markdown
Contributor Author

@viktorsomogyi, the tests are passing after the last commit. Can you please review it?

@viktorsomogyi
Copy link
Copy Markdown
Contributor

@mimaison would you please quickly review this?

@mimaison
Copy link
Copy Markdown
Member

@ankit-kumar-25 Thanks for the PR. Can you add a test?

@ankitk-me
Copy link
Copy Markdown
Contributor Author

Hey @mimaison, Thank you for your input. I have added a couple of test cases to validate this condition.

For some reason the Build Failed. Can you please review the change and re-run the test/build if feasible?

@mimaison
Copy link
Copy Markdown
Member

mimaison commented Dec 3, 2020

Thanks for the update. The changes look fine.
I've rekicked the build and I'll merge if it passes

@mimaison
Copy link
Copy Markdown
Member

mimaison commented Dec 3, 2020

Travis/Jenkins are having issues. I ran all tests locally and they passed.

@mimaison mimaison merged commit 9de16bd into apache:trunk Dec 3, 2020
ijuma added a commit to ijuma/kafka that referenced this pull request Dec 3, 2020
…t-for-generated-requests

* apache-github/trunk:
MINOR: Fix flaky test shouldQueryOnlyActivePartitionStoresByDefault
(apache#9681)
  KAFKA-10799 AlterIsr utilizes ReplicaManager ISR metrics (apache#9677)
  MINOR: Fix KTable-KTable foreign-key join example (apache#9683)
KAFKA-10473: Add docs on partition size-on-disk, and other log-related
metrics (apache#9276)
  KAFKA-10739; Replace EpochEndOffset with automated protocol (apache#9630)
KAFKA-10460: ReplicaListValidator format checking is incomplete
(apache#9326)
KAFKA-10554; Perform follower truncation based on diverging epochs in
Fetch response (apache#9382)
  MINOR: Align the UID inside/outside container (apache#9652)
KAFKA-10794 Replica leader election is too slow in the case of too
many partitions (apache#9675)
KAFKA-10090 Misleading warnings: The configuration was supplied but i…
(apache#8826)

clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochResponse.java
clients/src/test/java/org/apache/kafka/clients/consumer/internals/FetcherTest.java
core/src/test/scala/unit/kafka/server/epoch/util/ReplicaFetcherMockBlockingSend.scala
@ankitk-me ankitk-me deleted the KAFKA-10460 branch June 22, 2023 05:23
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.

3 participants