Skip to content

[Bug] pulsar-all 3.0.0 docker image contains Pulsar 2.11.0 #20420

Closed

Description

@packageman

Version

Ubuntu 20.04, Pulsar 3.0.0

Minimal reproduce step

image

What did you expect to see?

pulsar-related libs in pulsar-all:3.0.0 image should be 3.0.0 also.

What did you see instead?

pulsar-related libs in pulsar-all:3.0.0 is 2.11.0.

Activity

  1. added
    type/bug
    on May 29, 2023
  2. tisonkun commented on May 29, 2023

    @tisonkun
    Member

    cc @cbornet @RobertIndie the Release Manager for this version.

  3. self-assigned this
    on May 29, 2023
  4. RobertIndie commented on May 29, 2023

    @RobertIndie
    Member

    I think the root cause is that we use apachepulsar/pulsar:latest to build the pulsar-all image.

    FROM apachepulsar/pulsar:latest
    COPY --from=pulsar-all /connectors /pulsar/connectors
    COPY --from=pulsar-all /offloaders /pulsar/offloaders

    But at the time of building Pulsar 3.0.0, apachepulsar/pulsar:latest was pointing to version 2.11.0(I'm curious why it's not 2.11.1).

    We can see that the connectors and offloaders are pointing to the 3.0.0:

    docker run apachepulsar/pulsar-all:3.0.0 ls connectors
    LICENSE
    README
    pulsar-io-aerospike-3.0.0.nar
    pulsar-io-alluxio-3.0.0.nar
    pulsar-io-batch-data-generator-3.0.0.nar
    pulsar-io-canal-3.0.0.nar
    pulsar-io-cassandra-3.0.0.nar
    pulsar-io-data-generator-3.0.0.nar
    pulsar-io-debezium-mongodb-3.0.0.nar
    pulsar-io-debezium-mssql-3.0.0.nar
    pulsar-io-debezium-mysql-3.0.0.nar
    pulsar-io-debezium-oracle-3.0.0.nar
    pulsar-io-debezium-postgres-3.0.0.nar
    pulsar-io-dynamodb-3.0.0.nar
    pulsar-io-elastic-search-3.0.0.nar
    pulsar-io-file-3.0.0.nar
    pulsar-io-flume-3.0.0.nar
    pulsar-io-hbase-3.0.0.nar
    pulsar-io-hdfs2-3.0.0.nar
    pulsar-io-hdfs3-3.0.0.nar
    pulsar-io-http-3.0.0.nar
    pulsar-io-influxdb-3.0.0.nar
    pulsar-io-jdbc-clickhouse-3.0.0.nar
    pulsar-io-jdbc-mariadb-3.0.0.nar
    pulsar-io-jdbc-openmldb-3.0.0.nar
    pulsar-io-jdbc-postgres-3.0.0.nar
    pulsar-io-jdbc-sqlite-3.0.0.nar
    pulsar-io-kafka-3.0.0.nar
    pulsar-io-kafka-connect-adaptor-3.0.0.nar
    pulsar-io-kinesis-3.0.0.nar
    pulsar-io-mongo-3.0.0.nar
    pulsar-io-netty-3.0.0.nar
    pulsar-io-nsq-3.0.0.nar
    pulsar-io-rabbitmq-3.0.0.nar
    pulsar-io-redis-3.0.0.nar
    pulsar-io-solr-3.0.0.nar
    pulsar-io-twitter-3.0.0.nar
    
    docker run apachepulsar/pulsar-all:3.0.0 ls offloaders
    tiered-storage-file-system-3.0.0.nar
    tiered-storage-jcloud-3.0.0.nar
    

    But the libraries under lib/ are not.

    If my assumption is correct, then this is a serious problem. The pulsar-all:3.0.0 is actually a version 2.11.0 of Pulsar but with 3.0.0 connectors and offloaders.

    I'm rebuilding the pulsar-all image. And then I will publish it to the docker hub.
    We also need to fix this dockerfile

  5. tisonkun commented on May 29, 2023

    @tisonkun
    Member

    Thanks for your investigation @RobertIndie!

    Then this can be of the same reason #19544 (comment).

    cc @nodece @michaeljmarshall for your information.

  6. gaecfov commented on May 29, 2023

    @gaecfov

    I think the root cause is that we use apachepulsar/pulsar:latest to build the pulsar-all image.

    FROM apachepulsar/pulsar:latest
    COPY --from=pulsar-all /connectors /pulsar/connectors
    COPY --from=pulsar-all /offloaders /pulsar/offloaders

    But at the time of building Pulsar 3.0.0, apachepulsar/pulsar:latest was pointing to version 2.11.0(I'm curious why it's not 2.11.1).

    We can see that the connectors and offloaders are pointing to the 3.0.0:

    docker run apachepulsar/pulsar-all:3.0.0 ls connectors
    LICENSE
    README
    pulsar-io-aerospike-3.0.0.nar
    pulsar-io-alluxio-3.0.0.nar
    pulsar-io-batch-data-generator-3.0.0.nar
    pulsar-io-canal-3.0.0.nar
    pulsar-io-cassandra-3.0.0.nar
    pulsar-io-data-generator-3.0.0.nar
    pulsar-io-debezium-mongodb-3.0.0.nar
    pulsar-io-debezium-mssql-3.0.0.nar
    pulsar-io-debezium-mysql-3.0.0.nar
    pulsar-io-debezium-oracle-3.0.0.nar
    pulsar-io-debezium-postgres-3.0.0.nar
    pulsar-io-dynamodb-3.0.0.nar
    pulsar-io-elastic-search-3.0.0.nar
    pulsar-io-file-3.0.0.nar
    pulsar-io-flume-3.0.0.nar
    pulsar-io-hbase-3.0.0.nar
    pulsar-io-hdfs2-3.0.0.nar
    pulsar-io-hdfs3-3.0.0.nar
    pulsar-io-http-3.0.0.nar
    pulsar-io-influxdb-3.0.0.nar
    pulsar-io-jdbc-clickhouse-3.0.0.nar
    pulsar-io-jdbc-mariadb-3.0.0.nar
    pulsar-io-jdbc-openmldb-3.0.0.nar
    pulsar-io-jdbc-postgres-3.0.0.nar
    pulsar-io-jdbc-sqlite-3.0.0.nar
    pulsar-io-kafka-3.0.0.nar
    pulsar-io-kafka-connect-adaptor-3.0.0.nar
    pulsar-io-kinesis-3.0.0.nar
    pulsar-io-mongo-3.0.0.nar
    pulsar-io-netty-3.0.0.nar
    pulsar-io-nsq-3.0.0.nar
    pulsar-io-rabbitmq-3.0.0.nar
    pulsar-io-redis-3.0.0.nar
    pulsar-io-solr-3.0.0.nar
    pulsar-io-twitter-3.0.0.nar
    
    docker run apachepulsar/pulsar-all:3.0.0 ls offloaders
    tiered-storage-file-system-3.0.0.nar
    tiered-storage-jcloud-3.0.0.nar
    

    But the libraries under lib/ are not.

    If my assumption is correct, then this is a serious problem. The pulsar-all:3.0.0 is actually a version 2.11.0 of Pulsar but with 3.0.0 connectors and offloaders.

    I'm rebuilding the pulsar-all image. And then I will publish it to the docker hub. We also need to fix this dockerfile

    The configuration file also needs to be checked. I encountered a problem of missing 'enableBrokerSideSubscriptionPatternEvaluation' parameter in the broker.conf, but it is correct in pulsar:3.0.0.

  7. lhotari commented on May 29, 2023

    @lhotari
    Member

    I think the root cause is that we use apachepulsar/pulsar:latest to build the pulsar-all image.

    FROM apachepulsar/pulsar:latest
    COPY --from=pulsar-all /connectors /pulsar/connectors
    COPY --from=pulsar-all /offloaders /pulsar/offloaders

    But at the time of building Pulsar 3.0.0, apachepulsar/pulsar:latest was pointing to version 2.11.0(I'm curious why it's not 2.11.1).

    @cbornet @RobertIndie
    I don't think that this is the root cause. In the current build, all docker images should be built locally without pulling apachepulsar/pulsar:latest from the remote repository. In that case, there's no chance that versions get mixed regardless of the remote versions.

    How did the docker images get built and pushed?

    We should be updating the release guide if there are problems (which was very common in the past).
    I'd rather have the release guide in the GitHub wiki since that would lower the barrier to update the docs if there are issues that need to be addressed.
    The current release process is maintained on the website, https://pulsar.apache.org/contribute/release-process/#stage-docker-images . That's fine as long as we continue to maintain it.

  8. RobertIndie commented on May 29, 2023

    @RobertIndie
    Member

    @lhotari
    When we build the image while preparing the release candidate, we use our own account name as docker hub org name instead of apachepulsar. You can check the release process here: https://pulsar.apache.org/contribute/release-process/#stage-docker-images (But actually, we need to modify this process because we have changed our build script)

    Therefore the apachepulsar/pulsar is not pointed to the locally built image, which causes the issue.

  9. RobertIndie commented on May 29, 2023

    @RobertIndie
    Member

    Hi, @gaecfov

    The configuration file also needs to be checked. I encountered a problem of missing 'enableBrokerSideSubscriptionPatternEvaluation' parameter in the broker.conf, but it is correct in pulsar:3.0.0.

    This is the same issue. 'enableBrokerSideSubscriptionPatternEvaluation' only be included in 3.0.0. But currently, pulsar-all:3.0.0 is actually an image for 2.11.0. This problem will be fixed after I republish the image.
    Here is the verification:

    docker run snzkyang/pulsar-all:3.0.0 cat conf/broker.conf | grep enableBrokerSideSubscriptionPatternEvaluation
    
    enableBrokerSideSubscriptionPatternEvaluation=true
    
  10. tisonkun commented on May 29, 2023

    @tisonkun
    Member

    I'd rather have the release guide in the GitHub wiki since that would lower the barrier to update the docs if there are issues that need to be addressed.

    No. GitHub wiki is a half completed GitHub repo that few people know how to trace its history or collaborate with comment. As a committer you can already update the release process on the site repo without any barrier - what's extra here?

  11. nodece commented on May 29, 2023

    @nodece
    Member

    I suggest we only use the apachepulsar/X.Y.Z image, not the latest image, which can avoid this issue.

  12. lhotari commented on May 29, 2023

    @lhotari
    Member

    I'd rather have the release guide in the GitHub wiki since that would lower the barrier to update the docs if there are issues that need to be addressed.

    No. GitHub wiki is a half completed GitHub repo that few people know how to trace its history or collaborate with comment. As a committer you can already update the release process on the site repo without any barrier - what's extra here?

    If the instructions aren't maintained, there might be a barrier. It could be resolved by requesting everyone performing releases to ask for help and/or update the instructions if there are problems.

  13. lhotari commented on May 29, 2023

    @lhotari
    Member

    I suggest we only use the apachepulsar/X.Y.Z image, not the latest image, which can avoid this issue.

    I don't think that solves the problem. Both images should be built locally and nothing should ever be pulled.

  14. nodece commented on May 29, 2023

    @nodece
    Member

    I submitted #20433 to fix this, please help to review, thank you for your time!

  15. cbornet commented on May 29, 2023

    @cbornet
    Contributor

    I'm sorry that this happened.
    When doing the RC, I used the following command to have cross-compilation for ARM:

    mvn install -DUBUNTU_MIRROR=http://azure.archive.ubuntu.com/ubuntu/ \
            -DskipTests \
            -Pmain,docker -Pdocker-push \
            -Ddocker.platforms=linux/amd64,linux/arm64 \
            -Ddocker.organization=cbornet \
             -pl docker/pulsar,docker/pulsar-all
    

    So there's probably something to do better with this command.

  16. lhotari commented on May 30, 2023

    @lhotari
    Member

    I'd rather have the release guide in the GitHub wiki since that would lower the barrier to update the docs if there are issues that need to be addressed.

    No. GitHub wiki is a half completed GitHub repo that few people know how to trace its history or collaborate with comment. As a committer you can already update the release process on the site repo without any barrier - what's extra here?

    @tisonkun The process isn't up-to-date. I created #20438 to track the outdated release process.

  17. lhotari commented on May 30, 2023

    @lhotari
    Member

    So there's probably something to do better with this command.

    @cbornet I assigned #20438 to you so that we get these commands documented. Do you have a barrier in updating the release process? (/cc @tisonkun )

  18. packageman commented on Jun 1, 2023

    @packageman
    Author

    I'm rebuilding the pulsar-all image. And then I will publish it to the docker hub.

    @RobertIndie Have you pushed the pulsar-all image to the docker hub? I checked it was still pushed a month ago.

  19. tisonkun commented on Jun 1, 2023

    @tisonkun
    Member

    @packageman I suppose the conclusion will be calling for a 3.0.1 release to fix this issue.

  20. RobertIndie commented on Jun 1, 2023

    @RobertIndie
    Member

    @packageman We need a new release 3.0.1 to address this issue. Here is the discussion email about the 3.0.1 release: https://lists.apache.org/[email protected]

  21. reopened this on Jun 7, 2023
  22. changed the title [-][Bug] Unexpected lib version in pulsar-all:3.0.0 image[/-] [+][Bug] pulsar-all 3.0.0 docker image contains wrong version 2.11.0[/+] on Jun 28, 2023
  23. changed the title [-][Bug] pulsar-all 3.0.0 docker image contains wrong version 2.11.0[/-] [+][Bug] pulsar-all 3.0.0 docker image contains Pulsar 2.11.0[/+] on Jun 28, 2023
  24. github-actions commented on Jul 29, 2023

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

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

Metadata

Metadata

Assignees

Labels

Staletype/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions