Skip to content

[fix][fn] Fix graceful Pulsar Function shutdown so that consumers and producers are closed #26785

[fix][fn] Fix graceful Pulsar Function shutdown so that consumers and producers are closed

[fix][fn] Fix graceful Pulsar Function shutdown so that consumers and producers are closed #26785

Triggered via pull request January 16, 2026 12:50
Status Success
Total duration 1h 1m 38s
Artifacts 16

pulsar-ci.yaml

on: pull_request
Preconditions
10s
Preconditions
Build and License check
7m 34s
Build and License check
Matrix: pulsar-test-latest-version-image
Matrix: unit-tests
Matrix: pulsar-java-test-image
Matrix: system-tests
Matrix: flaky-system-tests
CI - Unit - Upload Coverage
1m 50s
CI - Unit - Upload Coverage
Run CodeQL Analysis
17m 2s
Run CodeQL Analysis
Matrix: integration-tests
CI - System - Upload Coverage
3m 34s
CI - System - Upload Coverage
CI - Integration - Upload Coverage
1m 59s
CI - Integration - Upload Coverage
Build Pulsar on MacOS
4m 55s
Build Pulsar on MacOS
OWASP dependency check
0s
OWASP dependency check
Delete system test docker image artifact
11s
Delete system test docker image artifact
Delete integration test docker image artifact
14s
Delete integration test docker image artifact
Pulsar CI checks completed
11s
Pulsar CI checks completed
Fit to window
Zoom out
Zoom in

Annotations

116 warnings
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Traced leak detected ByteBuf
CI - Unit - Pulsar Client
Netty leaks found.
CI - Unit - Pulsar Client
Summary: Tests in class org.apache.pulsar.client.impl.ControlledClusterFailoverTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Pulsar Client
Summary: Tests in class org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2Test created 2 new threads. There are now 10 threads in total.
CI - Unit - Proxy
Summary: Tests in class org.apache.pulsar.proxy.server.ProxyTest created 1 new threads. There are now 10 threads in total.
CI - Unit - Proxy
Summary: Tests in class org.apache.pulsar.proxy.server.ProxyAdditionalServletTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Proxy
Summary: Tests in class org.apache.pulsar.proxy.server.ProxyStuckConnectionTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Pulsar IO - Elastic Search
Summary: Tests in class org.apache.pulsar.io.elasticsearch.v7.ElasticSearch7AuthTest, org.apache.pulsar.io.elasticsearch.v8.ElasticSearch8AuthTest, org.apache.pulsar.io.elasticsearch.ElasticSearchBWCTest, org.apache.pulsar.io.elasticsearch.v7.ElasticSearch7ClientSslTest, org.apache.pulsar.io.elasticsearch.v8.ElasticSearch8ClientSslTest, org.apache.pulsar.io.elasticsearch.opensearch.OpenSearchClientTest, org.apache.pulsar.io.elasticsearch.v7.ElasticSearch7ClientTest, org.apache.pulsar.io.elasticsearch.v8.ElasticSearch8ClientTest, org.apache.pulsar.io.elasticsearch.ElasticSearchConfigTest, org.apache.pulsar.io.elasticsearch.ElasticSearchExtractTest, org.apache.pulsar.io.elasticsearch.ElasticSearchRawRecordTest, org.apache.pulsar.io.elasticsearch.opensearch.OpenSearchSinkRawDataTest, org.apache.pulsar.io.elasticsearch.v7.ElasticSearch7SinkRawDataTest, org.apache.pulsar.io.elasticsearch.v8.ElasticSearch8SinkRawDataTest, org.apache.pulsar.io.elasticsearch.opensearch.OpenSearchSinkTest, org.apache.pulsar.io.elasticsearch.v7.ElasticSearch7SinkTest, org.apache.pulsar.io.elasticsearch.v8.ElasticSearch8SinkTest, org.apache.pulsar.io.elasticsearch.IndexNameFormatterTest, org.apache.pulsar.io.elasticsearch.JsonConverterTest, org.apache.pulsar.io.elasticsearch.RandomExponentialRetryTest, org.apache.pulsar.io.elasticsearch.client.RestClientFactoryTest, org.apache.pulsar.io.elasticsearch.opensearch.OpenSearchClientSslTest created 142 new threads. There are now 150 threads in total.
CI - Unit - Pulsar IO
Summary: Tests in class org.apache.pulsar.io.alluxio.sink.AlluxioSinkTest created 41 new threads. There are now 49 threads in total.
CI - Unit - Pulsar IO
Summary: Tests in class org.apache.pulsar.io.influxdb.InfluxDBGenericRecordSinkTest created 2 new threads. There are now 11 threads in total.
CI - Unit - Pulsar IO
Summary: Tests in class org.apache.pulsar.io.solr.SolrGenericRecordSinkTest created 1 new threads. There are now 10 threads in total.
CI - Unit - Pulsar IO
Summary: Tests in class org.apache.pulsar.io.redis.sink.RedisSinkTest created 11 new threads. There are now 20 threads in total.
CI - Unit - Pulsar IO
Summary: Tests in class org.apache.pulsar.io.kinesis.KinesisSinkTest created 9 new threads. There are now 18 threads in total.
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 5
Netty leaks found.
CI - Unit - Brokers - Broker Group 5
Summary: Tests in class org.apache.pulsar.broker.SameAuthParamsLookupAutoClusterFailoverTest created 2 new threads. There are now 10 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.AuditorPeriodicCheckTest created 11 new threads. There are now 20 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.TestReplicationWorker created 38 new threads. There are now 47 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.BookieAutoRecoveryTest created 15 new threads. There are now 24 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.AuditorBookieTest created 27 new threads. There are now 36 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.AutoRecoveryMainTest created 18 new threads. There are now 27 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.AuditorCheckAllLedgersTaskTest created 1 new threads. There are now 10 threads in total.
CI - Unit - Pulsar Metadata
Summary: Tests in class org.apache.bookkeeper.replication.AuditorRollingRestartTest created 47 new threads. There are now 56 threads in total.
CI - Unit - Brokers - Client Api
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Api
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Api
Netty leaks found.
CI - Unit - Brokers - Client Api
Summary: Tests in class org.apache.bookkeeper.mledger.impl.NonEntryCacheKeySharedSubscriptionV30Test created 2 new threads. There are now 10 threads in total.
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 2
Netty leaks found.
CI - Unit - Brokers - Broker Group 2
Summary: Tests in class org.apache.pulsar.client.impl.AutoCloseUselessClientConTopicsPatternConsumerTest created 5 new threads. There are now 51 threads in total.
CI - Unit - Brokers - Broker Group 2
Summary: Tests in class org.apache.pulsar.zookeeper.LocalBookkeeperEnsembleTest created 41 new threads. There are now 49 threads in total.
CI - Unit - Brokers - Broker Group 2
Summary: Tests in class org.apache.pulsar.broker.resourcegroup.ResourceGroupConfigListenerTest created 1 new threads. There are now 14 threads in total.
CI - Unit - Brokers - Broker Group 2
Summary: Tests in class org.apache.pulsar.broker.delayed.DelayedDeliveryTrackerFactoryTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Brokers - Broker Group 2
Summary: Tests in class org.apache.pulsar.schema.compatibility.SchemaCompatibilityCheckTest created 5 new threads. There are now 13 threads in total.
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Traced leak detected ByteBuf
CI - Unit - Brokers - Client Impl
Netty leaks found.
CI - Unit - Brokers - Client Impl
Summary: Tests in class org.apache.pulsar.client.impl.RawReaderTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Brokers - Client Impl
Summary: Tests in class org.apache.pulsar.client.impl.ClientInterruptTest created 8 new threads. There are now 17 threads in total.
CI - Unit - Brokers - Client Impl
Summary: Tests in class org.apache.pulsar.client.impl.BrokerClientIntegrationTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Brokers - Broker Group 3
Summary: Tests in class org.apache.pulsar.broker.admin.AdminApiTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Brokers - Broker Group 3
Summary: Tests in class org.apache.pulsar.broker.admin.TenantEndpointsAuthorizationTest created 8 new threads. There are now 16 threads in total.
CI - Unit - Brokers - Broker Group 3
Summary: Tests in class org.apache.pulsar.broker.admin.ClusterEndpointsAuthorizationTest created 12 new threads. There are now 32 threads in total.
CI - Unit - Brokers - Broker Group 3
Summary: Tests in class org.apache.pulsar.broker.admin.BrokerEndpointsAuthorizationTest created 12 new threads. There are now 20 threads in total.
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Traced leak detected ByteBuf
CI - Unit - Other
Netty leaks found.
CI - Unit - Other
Summary: Tests in class org.apache.bookkeeper.mledger.impl.ManagedLedgerTest created 10 new threads. There are now 19 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.metrics.prometheus.zookeeper.PrometheusMetricsProviderConfigTest created 8 new threads. There are now 16 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.metrics.prometheus.bookkeeper.TestPrometheusMetricsProvider created 5 new threads. There are now 13 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.packages.management.storage.bookkeeper.BookKeeperPackagesStorageTest created 2 new threads. There are now 11 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.broker.authentication.ProxySaslAuthenticationTest created 1 new threads. There are now 10 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.broker.authentication.AuthenticationProviderAthenzTest created 1 new threads. There are now 10 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.pulsar.transaction.coordinator.impl.TxnLogBufferedWriterTest created 6 new threads. There are now 15 threads in total.
CI - Unit - Other
Summary: Tests in class org.apache.bookkeeper.mledger.offload.filesystem.impl.FileSystemManagedLedgerOffloaderTest created 5 new threads. There are now 14 threads in total.
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Traced leak detected ByteBuf
CI - System - Function
Netty leaks found.
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Traced leak detected ByteBuf
CI - Unit - Brokers - Broker Group 1
Netty leaks found.
CI - Unit - Brokers - Broker Group 1
Summary: Tests in class org.apache.pulsar.broker.intercept.BrokerInterceptorTest created 1 new threads. There are now 9 threads in total.
CI - Unit - Brokers - Broker Group 1
Summary: Tests in class org.apache.pulsar.broker.service.BrokerBkEnsemblesTest created 2 new threads. There are now 10 threads in total.
CI - Unit - Brokers - Broker Group 1
Summary: Tests in class org.apache.pulsar.broker.BrokerAdditionalServletTest created 1 new threads. There are now 9 threads in total.
Run CodeQL Analysis
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
Run CodeQL Analysis
CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/

Artifacts

Produced during runtime
Name Size Digest
Jacoco-coverage-report-inttests
27.5 MB
sha256:ffdf5edd61ae85685e81c1cd315fbae7dfe4642a1d32b54c47b40dc3cff559ff
Jacoco-coverage-report-systests
27.9 MB
sha256:761da797b21f4b9340c3e04da0b66b3727768dec0acd75ff08dc239688d4fde8
Jacoco-coverage-report-unittests
29.3 MB
sha256:ab1d67c1d30768d6527a91e04db6c8f80556d5d8d0d40f93842cb7f9537bad2f
System-FUNCTION-dumps
9.21 KB
sha256:10e595d3c9dd75308aac7fe9b0570af800751ee7fd78c19313166f33cc2d9463
Unit-BROKER_CLIENT_API-dumps
9.88 KB
sha256:28555d690e4f1c2ec1c341e2e0cff51ec56cb25cbb1a63bde075107cd428c709
Unit-BROKER_CLIENT_IMPL-dumps
52.8 KB
sha256:0499fd8c36a1d3845a4529d8b869d8cfa08718435b3be3e3182b4150ab02ef8a
Unit-BROKER_GROUP_1-dumps
50.4 KB
sha256:ef66c57de6b0c23477695b540d8afbaba53ba721b0402b51fe1165246a261e39
Unit-BROKER_GROUP_2-dumps
83.9 KB
sha256:143bf2248c8cdb5d8eb7fdf1d7e9e87b3abb7030025caa788f0017b004bf13e1
Unit-BROKER_GROUP_3-dumps
18.6 KB
sha256:5a2e1dc85d262534e99a9c032c2d431af0db15ce0d061dda6064f2ac7cf4397f
Unit-BROKER_GROUP_5-dumps
66 KB
sha256:d532b5d71a293c597d5c99927ae61358f6aa1327b0719c0797ebe313119526aa
Unit-CLIENT-dumps
47.1 KB
sha256:abb43d004fb6f46a3eb612784682b5360d8df8e6fe94948ec3d2183d0e3abc8b
Unit-METADATA-dumps
41.3 KB
sha256:c243ea90cc85d165541c6577561714484c9d99661b50ca937341a9c8f01ae3e8
Unit-OTHER-dumps
45.1 KB
sha256:b2fb332cd0643e555302c2b2fe6804481fe03a686607029dbe85cb568fd440a4
Unit-PROXY-dumps
12.8 KB
sha256:7acfaaeec312a6e88c2f7bffeca2f7ea9742b3d6b307d56b84d637be61d76632
Unit-PULSAR_IO-dumps
24.8 KB
sha256:a2ed83ba5c830b40b77609067e691b369d194987e771f6d0b1116fc57380159c
Unit-PULSAR_IO_ELASTIC-dumps
13.9 KB
sha256:58190a622709547d14577e72080bb195f02b0d5476fabc40ae9776d040d9c3ee