You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by rs...@apache.org on 2020/08/16 09:59:58 UTC
[kafka] branch 2.6 updated (fe02790 -> fe2e9f5)
This is an automated email from the ASF dual-hosted git repository.
rsivaram pushed a change to branch 2.6
in repository https://gitbox.apache.org/repos/asf/kafka.git.
from fe02790 MINOR: Ensure same version of scala library is used for compile and at runtime (#9168)
new f17a412 KAFKA-9516; Increase timeout in testNonBlockingProducer to make it more reliable (#9181)
new fe2e9f5 KAFKA-8033; Wait for NoOffsetForPartitionException in testFetchInvalidOffset (#9184)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala | 5 +++--
.../test/scala/integration/kafka/api/PlaintextProducerSendTest.scala | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
[kafka] 02/02: KAFKA-8033;
Wait for NoOffsetForPartitionException in testFetchInvalidOffset
(#9184)
Posted by rs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rsivaram pushed a commit to branch 2.6
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit fe2e9f572f5fa77f7445cbe84b79ac5dc14cb184
Author: Rajini Sivaram <ra...@googlemail.com>
AuthorDate: Sun Aug 16 10:51:28 2020 +0100
KAFKA-8033; Wait for NoOffsetForPartitionException in testFetchInvalidOffset (#9184)
Reviewers: Ismael Juma <is...@juma.me.uk>
---
.../src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/core/src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala b/core/src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala
index 5c7a52a..f61b3c5 100644
--- a/core/src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala
+++ b/core/src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala
@@ -678,9 +678,10 @@ class PlaintextConsumerTest extends BaseConsumerTest {
sendRecords(producer, totalRecords, tp)
consumer.assign(List(tp).asJava)
- // poll should fail because there is no offset reset strategy set
+ // poll should fail because there is no offset reset strategy set.
+ // we fail only when resetting positions after coordinator is known, so using a long timeout.
intercept[NoOffsetForPartitionException] {
- consumer.poll(Duration.ofMillis(50))
+ consumer.poll(Duration.ofMillis(15000))
}
// seek to out of range position
[kafka] 01/02: KAFKA-9516;
Increase timeout in testNonBlockingProducer to make it more
reliable (#9181)
Posted by rs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rsivaram pushed a commit to branch 2.6
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit f17a4122820954d63464f7fbdb140af1b10cea45
Author: Rajini Sivaram <ra...@googlemail.com>
AuthorDate: Sun Aug 16 10:30:03 2020 +0100
KAFKA-9516; Increase timeout in testNonBlockingProducer to make it more reliable (#9181)
Reviewers: Ismael Juma <is...@juma.me.uk>
---
.../test/scala/integration/kafka/api/PlaintextProducerSendTest.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/test/scala/integration/kafka/api/PlaintextProducerSendTest.scala b/core/src/test/scala/integration/kafka/api/PlaintextProducerSendTest.scala
index 961b0f3..4e44f34 100644
--- a/core/src/test/scala/integration/kafka/api/PlaintextProducerSendTest.scala
+++ b/core/src/test/scala/integration/kafka/api/PlaintextProducerSendTest.scala
@@ -144,7 +144,7 @@ class PlaintextProducerSendTest extends BaseProducerSendTest {
}
def verifySendSuccess(future: Future[RecordMetadata]): Unit = {
- val recordMetadata = future.get(10, TimeUnit.SECONDS)
+ val recordMetadata = future.get(30, TimeUnit.SECONDS)
assertEquals(topic, recordMetadata.topic)
assertEquals(0, recordMetadata.partition)
assertTrue(s"Invalid offset $recordMetadata", recordMetadata.offset >= 0)