MINOR: Fix bugs identified by compiler warnings#6258
Conversation
There was a problem hiding this comment.
@tombentley Please check that we didn't intend to use this.
There was a problem hiding this comment.
Yes, this can be removed since the logic is folded into onComplete() already.
There was a problem hiding this comment.
@tombentley after I fixed this, the test started failing. return was causing everything after this not to run. Can you please check what the issue is and fix it? cc @mjsax in case this is a regression and not a test problem.
There was a problem hiding this comment.
@ijuma : Good find. These are indeed existing bugs. There are 4 references of LeaderNotAvailableException in line 1358, 1372, 1380 and 1390. They all need to be changed to PreferredLeaderNotAvailableException. Once I fixed those locally, the test passes.
c6c610d to
f2b655d
Compare
|
@junrao I pushed a fix for the failing test and minor tweaks. Let me know if this looks good to you. |
|
Merged to trunk and cherry-picked to 2.2. |
* ak/trunk: (45 commits) KAFKA-7487: DumpLogSegments misreports offset mismatches (apache#5756) MINOR: improve JavaDocs about auto-repartitioning in Streams DSL (apache#6269) KAFKA-7935: UNSUPPORTED_COMPRESSION_TYPE if ReplicaManager.getLogConfig returns None (apache#6274) KAFKA-7895: Fix stream-time reckoning for suppress (apache#6278) KAFKA-6569: Move OffsetIndex/TimeIndex logger to companion object (apache#4586) MINOR: add log indicating the suppression time (apache#6260) MINOR: Make info logs for KafkaConsumer a bit more verbose (apache#6279) KAFKA-7758: Reuse KGroupedStream/KGroupedTable with named repartition topics (apache#6265) KAFKA-7884; Docs for message.format.version should display valid values (apache#6209) MINOR: Save failed test output to build output directory MINOR: add test for StreamsSmokeTestDriver (apache#6231) MINOR: Fix bugs identified by compiler warnings (apache#6258) KAFKA-6474: Rewrite tests to use new public TopologyTestDriver [part 4] (apache#5433) MINOR: fix bypasses in ChangeLogging stores (apache#6266) MINOR: Make MockClient#poll() more thread-safe (apache#5942) MINOR: drop dbAccessor reference on close (apache#6254) KAFKA-7811: Avoid unnecessary lock acquire when KafkaConsumer commits offsets (apache#6119) KAFKA-7916: Unify store wrapping code for clarity (apache#6255) MINOR: Add missing Alter Operation to Topic supported operations list in AclCommand KAFKA-7921: log at error level for missing source topic (apache#6262) ...
- Add missing string interpolation - Fix and simplify testElectPreferredLeaders - Remove unused code - Replace deprecated usage of JUnit `assertThat` - Change var to val and fix non-exhaustive pattern match - Fix eta warning - Simplify code - Remove commented out code Reviewers: Jun Rao <junrao@gmail.com>
assertThatCommitter Checklist (excluded from commit message)