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

Upgrade to Quarkus 2.8 #3233

Merged
merged 4 commits into from
May 6, 2022

Conversation

sophokles73
Copy link
Contributor

fixes #3219

@sophokles73 sophokles73 added this to the 2.0.0 milestone May 4, 2022
@calohmn
Copy link
Contributor

calohmn commented May 4, 2022

It seems the failing test testScenarioWithPartitionRevokedWhileHandlingIncomplete() in AsyncHandlingAutoCommitKafkaConsumerTest will be fixed with the changes made in #3223 (adding consumer.addOnKafkaConsumerReadyHandler(readyTracker); and waiting on the readyTracker).

@sophokles73
Copy link
Contributor Author

@calohmn so you are suggesting to merge this PR once #3223 has been merged, right?

@calohmn
Copy link
Contributor

calohmn commented May 5, 2022

@sophokles73 yes

@calohmn
Copy link
Contributor

calohmn commented May 5, 2022

The DropHttpRequestSpansSampler class needs to be adapted here.
In the shouldSample method, the .substring(1) part needs to be removed, along with the comment in the line above.
See quarkusio/quarkus#24017 (comment).

@sophokles73
Copy link
Contributor Author

Ok, I will apply that change

@sophokles73 sophokles73 force-pushed the upgrade_to_quarkus_2.8 branch from 72ce10f to 0c059da Compare May 5, 2022 06:44
@sophokles73 sophokles73 requested a review from dejanb as a code owner May 5, 2022 06:44
@sophokles73 sophokles73 force-pushed the upgrade_to_quarkus_2.8 branch from 0c059da to a993a4d Compare May 5, 2022 12:00
@sophokles73
Copy link
Contributor Author

It seems the failing test testScenarioWithPartitionRevokedWhileHandlingIncomplete() in AsyncHandlingAutoCommitKafkaConsumerTest will be fixed with the changes made in #3223

@calohmn doesn't seem to be the case. Any idea why the checkpoint is being flagged more than once?

@sophokles73 sophokles73 force-pushed the upgrade_to_quarkus_2.8 branch from a993a4d to 8f21282 Compare May 5, 2022 12:42
@sophokles73 sophokles73 requested a review from calohmn as a code owner May 5, 2022 12:42
@calohmn
Copy link
Contributor

calohmn commented May 5, 2022

doesn't seem to be the case. Any idea why the checkpoint is being flagged more than once?

@sophokles73 It seems to me like a general issue with the test. I'm looking into a fix. I don't currently see how this is related with the Quarkus update.

@sophokles73
Copy link
Contributor Author

I don't currently see how this is related with the Quarkus update.

neither do I

@calohmn
Copy link
Contributor

calohmn commented May 5, 2022

The issue with the testScenarioWithPartitionRevokedWhileHandlingIncomplete test seems to be, that the OnPartitionsAssignedHandler declared at the bottom of the test is not only run on the last rebalance, but sometimes also already on the rebalance before that.

Replacing mockConsumer.rebalance(List.of(TOPIC2_PARTITION)); in line 793 with

        final CountDownLatch rebalanceWithTopic2Done = new CountDownLatch(1);
        consumer.setOnPartitionsAssignedHandler(partitions -> {
            rebalanceWithTopic2Done.countDown();
        });
        mockConsumer.rebalance(List.of(TOPIC2_PARTITION));
        rebalanceWithTopic2Done.await();

should fix the issue, making sure that the bottom OnPartitionsAssignedHandler is only run after the last rebalance, as intended by the test.

@sophokles73
Copy link
Contributor Author

ok, I will give it a shot

@calohmn
Copy link
Contributor

calohmn commented May 5, 2022

The failing test is actually due to the newer Vert.x version being used here.
The Strict checkpoint flagged too many times check has only been introduced in Vert.x 4.2.6 (see eclipse-vertx/vertx-junit5#113).

@sophokles73 sophokles73 force-pushed the upgrade_to_quarkus_2.8 branch 2 times, most recently from eadf3b2 to de5acc2 Compare May 5, 2022 14:14
@sophokles73 sophokles73 force-pushed the upgrade_to_quarkus_2.8 branch from de5acc2 to 1b64d93 Compare May 5, 2022 14:25
Copy link
Contributor

@calohmn calohmn left a comment

Choose a reason for hiding this comment

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

LGTM
Follow-up commits/PRs could then address re-enabling of parallel unit-test execution and removal of added vert.x traces for event bus messages (they are not useful IMHO).

@sophokles73 sophokles73 merged commit 269626f into eclipse-hono:master May 6, 2022
@sophokles73
Copy link
Contributor Author

removal of added vert.x traces for event bus messages (they are not useful IMHO).

@calohmn can you point me to the corresponding code?

@calohmn
Copy link
Contributor

calohmn commented May 6, 2022

@calohmn can you point me to the corresponding code?

It's about traces created by means of the Quarkus EventBusInstrumenterVertxTracer (e.g. notification.tenant-change-v1 send or authentication.in send).
Since usage of this instrumenter isn't configurable, it seems the only way to drop these traces is in a way similar to the DropHttpRequestSpansSampler.
I'm already looking into creating a PR for this.

@sophokles73
Copy link
Contributor Author

ok, I am working on a PR for re-enabling parallel test execution ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to latest Quarkus 2.8 release
2 participants