KAFKA-6870 Concurrency conflicts in SampledStat#4985
KAFKA-6870 Concurrency conflicts in SampledStat#4985rajinisivaram merged 3 commits intoapache:trunkfrom
Conversation
|
@chia7712 Can you add one unit test please? |
Copy that. |
rajinisivaram
left a comment
There was a problem hiding this comment.
@chia7712 Thanks for the PR. Looks good, left a few minor comments.
| return ((Measurable) metricValueProvider).measure(config, timeMs); | ||
| else | ||
| return 0; | ||
| } |
There was a problem hiding this comment.
nit: unnecessary newline
| })); | ||
| } | ||
| latch.countDown(); | ||
| service.shutdown(); |
There was a problem hiding this comment.
we need to shutdown the executor service even if there is a test failure (either in a finally block or the teardown).
| assertTrue(service.awaitTermination(10, TimeUnit.SECONDS)); | ||
| for (Future<Throwable> callable : workers) { | ||
| assertTrue(callable.isDone()); | ||
| assertNull(callable.get()); |
There was a problem hiding this comment.
Can we add error messages for these assertions?
|
Thanks for the reviews. @rajinisivaram I have addressed you comment in the latest commit. Please take a look. |
rajinisivaram
left a comment
There was a problem hiding this comment.
@chia7712 Thanks for the update, LGTM. Will merge after PR builds complete.
rajinisivaram
left a comment
There was a problem hiding this comment.
@chia7712 Thanks for the PR, merging to trunk and 1.1.
Make `KafkaMetric.measurableValue` thread-safe Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
…-record-version * apache-github/trunk: KAFKA-6894: Improve err msg when connecting processor with global store (apache#5000) KAFKA-6893; Create processors before starting acceptor in SocketServer (apache#4999) MINOR: Fix typo in ConsumerRebalanceListener JavaDoc (apache#4996) MINOR: Remove deprecated valueTransformer.punctuate (apache#4993) MINOR: Update dynamic broker configuration doc for truststore update (apache#4954) KAFKA-6870 Concurrency conflicts in SampledStat (apache#4985) KAFKA-6361: Fix log divergence between leader and follower after fast leader fail over (apache#4882) KAFKA-6813: Remove deprecated APIs in KIP-182, Part II (apache#4976) KAFKA-6878 Switch the order of underlying.init and initInternal (apache#4988) KAFKA-6299; Fix AdminClient error handling when metadata changes (apache#4295) KAFKA-6878: NPE when querying global state store not in READY state (apache#4978) KAFKA 6673: Implemented missing override equals method (apache#4745) KAFKA-6834: Handle compaction with batches bigger than max.message.bytes (apache#4953)
Make `KafkaMetric.measurableValue` thread-safe Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
see KAFKA-6870 for more details.
Committer Checklist (excluded from commit message)