Skip to content

[Bug] examples/example-stateful-function-config.yaml does not exist in 2.11 distro #20063

Closed

Description

@anguillanneuf

Search before asking

  • I searched in the issues and found nothing similar.

Version

The Get Started guide for stateful functions can't be followed because this file examples/example-stateful-function-config.yaml does not appear to exist.

Screenshot 2023-04-10 at 4 33 25 PM

tz@pantone:~/apache-pulsar-2.11.0$ ls examples/
api-examples.jar  example-function-config.yaml  example-window-function-config.yaml  python-examples

Furthermore, the contents of examples/example-window-function-config.yaml (unzipped from the 2.11 distro) does not match what's published in the documentation, causing some steps in the tutorial to not work as intended.

Screenshot 2023-04-10 at 4 38 47 PM

Minimal reproduce step

Follow the following guides in order using a fresh installation of pulsar 2.11:

  1. https://pulsar.apache.org/docs/2.11.x/functions-quickstart/#start-functions
  2. https://pulsar.apache.org/docs/2.11.x/functions-quickstart/#start-stateful-functions
  3. https://pulsar.apache.org/docs/2.11.x/functions-quickstart/#start-window-functions

What did you expect to see?

The tutorial to work as described in the official documentation.

What did you see instead?

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Apr 10, 2023
  2. added
    doc-required
    on Apr 11, 2023
  3. tisonkun commented on Apr 11, 2023

    @tisonkun
    Member

    Thanks for reporting this issue @anguillanneuf!

    Here we have two issues:

    1. 2.11.0 distro doesn't have the file examples/example-stateful-function-config.yaml.

    I can find it when building 3.0.0-SNAPSHOT distro at master. cc @Technoboy- (2.11.0 RM) do you have ideas why we miss this file in 2.11.0 distro? Also cc @poorbarcode (3.0.0 RM) as a reminder to check this file present when preparing 3.0.0 distro.

    1. Document is inaccurate. Since you tick the box "I'm willing to submit a PR!", I'll double check if you're going to prepare a patch to apply all your suggestions above?
  4. anguillanneuf commented on Apr 11, 2023

    @anguillanneuf
    Author

    Thanks @tisonkun for distilling the docs issues into two separate problems.

    if you're going to prepare a patch to apply all your suggestions above?

    Below is what I can (know how) to do for 2.11 docs.

    Are these the right approach and will they be sufficient from me?

  5. Technoboy- commented on Apr 12, 2023

    @Technoboy-
    Contributor

    As #18601 is not in branch-2.11, so the release of 2.11.x not contains this changes.
    We need to improve the doc for 2.11.x

  6. tisonkun commented on Apr 12, 2023

    @tisonkun
    Member

    @Technoboy- Thanks for your investigation!

    We need to improve the doc for 2.11.x

    After reviewing the changeset, I'd prefer to pick the changes of examples files and packaging logic in bin.xml to 2.11. Reverting 2.11 docs seems more complicated, and it benefits picking this non-functional improvement to 2.11.

  7. tisonkun commented on Apr 12, 2023

    @tisonkun
    Member

    @anguillanneuf Thanks for your update!

    Remove this step completely. No table service was started for me.

    Sounds reasonable to be removed.

    examples/example-window-function-config.yaml

    As @Technoboy- mentioned above, we will pick this change to the 2.11 branch, and thus the following 2.11 version should contain this file. So either we leave it as is or you can try to add a note for fetching the file on missing is viable to me.

  8. Technoboy- commented on Apr 12, 2023

    @Technoboy-
    Contributor

    Thanks for reporting this, we will fix this in 2.11.1.
    Currently, you can copy example-stateful-function-config.yaml from here to examples folder

  9. self-assigned this
    on Apr 12, 2023
  10. Technoboy- commented on Apr 12, 2023

    @Technoboy-
    Contributor

    Fixed by #20073

  11. tisonkun commented on Apr 25, 2023

    @tisonkun
    Member

    @anguillanneuf may you still send a patch for docs improvement?

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

Metadata

Metadata

Assignees

Labels

doc-requiredtype/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions