Skip to content

test #1

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

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
2c7f188
Cosmetics
michaelklishin Apr 20, 2025
1ee992a
Cosmetics [skip ci]
michaelklishin Apr 20, 2025
fbaceb6
Cosmetics [skip ci]
michaelklishin Apr 20, 2025
aaff1cc
AutorecoveringConnection: clean up bindings of deleted exchanges
michaelklishin Apr 20, 2025
28e73c6
Bump com.google.code.gson:gson from 2.13.0 to 2.13.1
dependabot[bot] Apr 25, 2025
35d5d12
Bump com.fasterxml.jackson.core:jackson-databind from 2.18.3 to 2.19.0
dependabot[bot] Apr 25, 2025
870abaf
Merge pull request #1595 from rabbitmq/dependabot/maven/main/com.fast…
michaelklishin Apr 25, 2025
cc9863a
Merge pull request #1594 from rabbitmq/dependabot/maven/main/com.goog…
michaelklishin Apr 25, 2025
b451798
Add test for recorded binding clean-up after exchange deletion
acogoluegnes May 5, 2025
8dff80c
Fix condition to delete exchange binding
acogoluegnes May 5, 2025
e8c193a
Merge pull request #1593 from rabbitmq/mk-clear-recorded-bindings-wit…
acogoluegnes May 6, 2025
de6b708
Null-proof channel state retrieval in AbstractMetricsCollector
acogoluegnes May 6, 2025
898d681
Merge pull request #1598 from rabbitmq/null-proof-channel-state-retri…
acogoluegnes May 6, 2025
12c8d30
Bump opentelemetry.version from 1.49.0 to 1.50.0
dependabot[bot] May 12, 2025
32f2302
Merge pull request #1599 from rabbitmq/dependabot/maven/main/opentele…
michaelklishin May 12, 2025
0a6f7ff
Bump io.micrometer:micrometer-tracing-integration-test
dependabot[bot] May 13, 2025
a044370
Bump io.micrometer:micrometer-core from 1.14.6 to 1.14.7
dependabot[bot] May 13, 2025
50e8ff6
Merge pull request #1604 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin May 13, 2025
8da9caf
Merge pull request #1603 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin May 13, 2025
0b9678f
Bump io.micrometer:micrometer-tracing-integration-test
dependabot[bot] May 14, 2025
27ab817
Bump io.micrometer:micrometer-core from 1.14.7 to 1.15.0
dependabot[bot] May 14, 2025
8c7ed8a
Merge pull request #1606 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin May 14, 2025
8e499e2
Merge pull request #1605 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin May 14, 2025
26dc9cb
Bump org.mockito:mockito-core from 5.17.0 to 5.18.0
dependabot[bot] May 21, 2025
3d482dc
Merge pull request #1609 from rabbitmq/dependabot/maven/main/org.mock…
acogoluegnes May 21, 2025
1a67e7d
Bump io.dropwizard.metrics:metrics-core from 4.2.30 to 4.2.32
dependabot[bot] May 26, 2025
3e43e8f
Merge pull request #1611 from rabbitmq/dependabot/maven/main/io.dropw…
acogoluegnes May 26, 2025
e1e43dc
Bump com.diffplug.spotless:spotless-maven-plugin from 2.44.4 to 2.44.5
dependabot[bot] May 28, 2025
085f1c2
Merge pull request #1613 from rabbitmq/dependabot/maven/main/com.diff…
michaelklishin May 28, 2025
79ff27f
Bump org.junit:junit-bom from 5.12.2 to 5.13.0
dependabot[bot] Jun 2, 2025
0db4226
Merge pull request #1615 from rabbitmq/dependabot/maven/main/org.juni…
michaelklishin Jun 2, 2025
1eee1d2
Bump org.bouncycastle:bcpkix-jdk18on from 1.80 to 1.81
dependabot[bot] Jun 5, 2025
9498187
Bump org.codehaus.mojo:build-helper-maven-plugin from 3.6.0 to 3.6.1
dependabot[bot] Jun 5, 2025
08a8ff0
Merge pull request #1618 from rabbitmq/dependabot/maven/main/org.code…
acogoluegnes Jun 5, 2025
a843831
Merge pull request #1617 from rabbitmq/dependabot/maven/main/org.boun…
acogoluegnes Jun 5, 2025
2fcf888
Bump org.junit:junit-bom from 5.13.0 to 5.13.1
dependabot[bot] Jun 9, 2025
56e427b
Bump opentelemetry.version from 1.50.0 to 1.51.0
dependabot[bot] Jun 9, 2025
3b1ca5b
Merge pull request #1622 from rabbitmq/dependabot/maven/main/opentele…
michaelklishin Jun 9, 2025
f0b2d32
Merge pull request #1621 from rabbitmq/dependabot/maven/main/org.juni…
michaelklishin Jun 9, 2025
b886eb4
Bump io.micrometer:micrometer-core from 1.15.0 to 1.15.1
dependabot[bot] Jun 10, 2025
3eaa02b
Bump io.micrometer:micrometer-tracing-integration-test
dependabot[bot] Jun 10, 2025
86a4cb4
Merge pull request #1625 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin Jun 10, 2025
779b15c
Merge pull request #1626 from rabbitmq/dependabot/maven/main/io.micro…
michaelklishin Jun 10, 2025
1b0110e
Configure project to publish to Central Portal
acogoluegnes Jun 12, 2025
f886a4b
Disable auto-publish
acogoluegnes Jun 13, 2025
d959f66
Bump com.fasterxml.jackson.core:jackson-databind from 2.19.0 to 2.19.1
dependabot[bot] Jun 16, 2025
9fb93b8
Merge pull request #1629 from rabbitmq/dependabot/maven/main/com.fast…
acogoluegnes Jun 16, 2025
861fd5a
Bump org.sonatype.central:central-publishing-maven-plugin
dependabot[bot] Jun 18, 2025
f408c69
Merge pull request #1632 from rabbitmq/dependabot/maven/main/org.sona…
michaelklishin Jun 18, 2025
baca440
Bump io.dropwizard.metrics:metrics-core from 4.2.32 to 4.2.33
dependabot[bot] Jun 20, 2025
02d1e54
Merge pull request #1634 from rabbitmq/dependabot/maven/main/io.dropw…
acogoluegnes Jun 20, 2025
7876890
Bump org.junit:junit-bom from 5.13.1 to 5.13.2
dependabot[bot] Jun 25, 2025
0f47be4
Merge pull request #1636 from rabbitmq/dependabot/maven/main/org.juni…
acogoluegnes Jun 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
server-id: ossrh
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
Expand All @@ -28,6 +28,6 @@ jobs:
- name: Publish snapshot
run: ./mvnw clean deploy -Psnapshots -DskipITs -DskipTests --no-transfer-progress
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
21 changes: 4 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Evaluate release type
run: ci/evaluate-release.sh
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -21,30 +19,19 @@ jobs:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
server-id: ${{ env.maven_server_id }}
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Get dependencies
run: make deps
- name: Release AMQP Java Client (GA)
if: ${{ env.ga_release == 'true' }}
- name: Release AMQP Java Client
run: |
git config user.name "rabbitmq-ci"
git config user.email "rabbitmq-ci@users.noreply.github.com"
ci/release-java-client.sh
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Release AMQP Java Client (Milestone/RC)
if: ${{ env.ga_release != 'true' }}
run: |
git config user.name "rabbitmq-ci"
git config user.email "rabbitmq-ci@users.noreply.github.com"
ci/release-java-client.sh
env:
MAVEN_USERNAME: ''
MAVEN_PASSWORD: ${{ secrets.PACKAGECLOUD_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
server-id: ossrh
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
Expand Down Expand Up @@ -62,6 +62,6 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
run: ./mvnw clean deploy -Psnapshots -DskipITs -DskipTests --no-transfer-progress
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
14 changes: 0 additions & 14 deletions ci/evaluate-release.sh

This file was deleted.

151 changes: 23 additions & 128 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@

<spotless.check.skip>true</spotless.check.skip>
<slf4j.version>1.7.36</slf4j.version>
<metrics.version>4.2.30</metrics.version>
<micrometer.version>1.14.6</micrometer.version>
<opentelemetry.version>1.49.0</opentelemetry.version>
<jackson.version>2.18.3</jackson.version>
<metrics.version>4.2.33</metrics.version>
<micrometer.version>1.15.1</micrometer.version>
<opentelemetry.version>1.51.0</opentelemetry.version>
<jackson.version>2.19.1</jackson.version>
<logback.version>1.2.13</logback.version>
<junit.jupiter.version>5.12.2</junit.jupiter.version>
<mockito.version>5.17.0</mockito.version>
<junit.jupiter.version>5.13.2</junit.jupiter.version>
<mockito.version>5.18.0</mockito.version>
<assertj.version>3.27.3</assertj.version>
<micrometer-tracing-test.version>1.4.5</micrometer-tracing-test.version>
<micrometer-tracing-test.version>1.5.1</micrometer-tracing-test.version>
<micrometer-docs-generator.version>1.0.4</micrometer-docs-generator.version>
<jetty.version>9.4.57.v20241219</jetty.version>
<bouncycastle.version>1.80</bouncycastle.version>
<bouncycastle.version>1.81</bouncycastle.version>
<netcrusher.version>0.10</netcrusher.version>
<gson.version>2.13.0</gson.version>
<gson.version>2.13.1</gson.version>

<maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version>
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
Expand All @@ -78,19 +78,18 @@
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
<groovy.maven.plugin.version>2.1.1</groovy.maven.plugin.version>
<groovy.all.version>2.4.21</groovy.all.version>
<build.helper.maven-plugin.version>3.6.0</build.helper.maven-plugin.version>
<build.helper.maven-plugin.version>3.6.1</build.helper.maven-plugin.version>
<maven.compiler.plugin.version>3.14.0</maven.compiler.plugin.version>
<maven.surefire.plugin.version>3.5.3</maven.surefire.plugin.version>
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
<maven.failsafe.plugin.version>3.5.3</maven.failsafe.plugin.version>
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
<maven.jar.plugin.version>3.4.2</maven.jar.plugin.version>
<maven.bundle.plugin.version>5.1.9</maven.bundle.plugin.version>
<maven.packagecloud.wagon.version>0.0.6</maven.packagecloud.wagon.version>
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
<checksum.maven.plugin.version>1.11</checksum.maven.plugin.version>
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
<jshell-maven-plugin.version>1.4</jshell-maven-plugin.version>
<spotless.version>2.44.4</spotless.version>
<spotless.version>2.44.5</spotless.version>
<google-java-format.version>1.19.2</google-java-format.version>
<!--
These groovy scripts are used later in this POM file to generate
Expand Down Expand Up @@ -316,12 +315,6 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>

<!--
Expand All @@ -332,19 +325,6 @@
<build>
<plugins>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>20</stagingProgressTimeoutMinutes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down Expand Up @@ -383,97 +363,8 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>

<!--
The "milestone" Maven profile is used to push release artifacts to the
PackageCloud Milestones Maven Repository.
-->
<profile>
<id>milestone</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<additionalOptions>${javadoc.opts}</additionalOptions>
<additionalJOption>${javadoc.joption}</additionalJOption>
<quiet>true</quiet>
<source>8</source>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>${checksum.maven.plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>files</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>*.jar</include>
<include>*.pom</include>
</includes>
</fileSet>
</fileSets>
<algorithms>
<algorithm>MD5</algorithm>
<algorithm>SHA-1</algorithm>
</algorithms>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven.gpg.plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>packagecloud-rabbitmq-maven-milestones</id>
<url>packagecloud+https://packagecloud.io/rabbitmq/maven-milestones</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>mockito-4-on-java-8</id>
<activation>
Expand Down Expand Up @@ -907,14 +798,18 @@
</configuration>
</plugin>

<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>false</autoPublish>
</configuration>
</plugin>

</plugins>
<extensions>
<extension>
<groupId>io.packagecloud.maven.wagon</groupId>
<artifactId>maven-packagecloud-wagon</artifactId>
<version>${maven.packagecloud.wagon.version}</version>
</extension>
</extensions>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@ public void basicPublish(Channel channel, long deliveryTag) {
try {
if (deliveryTag != 0) {
ChannelState channelState = channelState(channel);
if (channelState == null) {
return;
}
channelState.lock.lock();
try {
channelState(channel).unconfirmedMessageDeliveryTags.add(deliveryTag);
channelState.unconfirmedMessageDeliveryTags.add(deliveryTag);
} finally {
channelState.lock.unlock();
}
Expand Down Expand Up @@ -169,9 +172,12 @@ public void basicConsume(Channel channel, String consumerTag, boolean autoAck) {
try {
if(!autoAck) {
ChannelState channelState = channelState(channel);
if (channelState == null) {
return;
}
channelState.lock.lock();
try {
channelState(channel).consumersWithManualAck.add(consumerTag);
channelState.consumersWithManualAck.add(consumerTag);
} finally {
channelState.lock.unlock();
}
Expand All @@ -185,9 +191,12 @@ public void basicConsume(Channel channel, String consumerTag, boolean autoAck) {
public void basicCancel(Channel channel, String consumerTag) {
try {
ChannelState channelState = channelState(channel);
if (channelState == null) {
return;
}
channelState.lock.lock();
try {
channelState(channel).consumersWithManualAck.remove(consumerTag);
channelState.consumersWithManualAck.remove(consumerTag);
} finally {
channelState.lock.unlock();
}
Expand All @@ -202,9 +211,12 @@ public void consumedMessage(Channel channel, long deliveryTag, boolean autoAck)
markConsumedMessage();
if(!autoAck) {
ChannelState channelState = channelState(channel);
if (channelState == null) {
return;
}
channelState.lock.lock();
try {
channelState(channel).unackedMessageDeliveryTags.add(deliveryTag);
channelState.unackedMessageDeliveryTags.add(deliveryTag);
} finally {
channelState.lock.unlock();
}
Expand All @@ -219,6 +231,9 @@ public void consumedMessage(Channel channel, long deliveryTag, String consumerTa
try {
markConsumedMessage();
ChannelState channelState = channelState(channel);
if (channelState == null) {
return;
}
channelState.lock.lock();
try {
if(channelState.consumersWithManualAck.contains(consumerTag)) {
Expand Down
Loading