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

[Hotfix][docs] Fixed typos. #16300

Merged
merged 1 commit into from
Jun 29, 2021
Merged

[Hotfix][docs] Fixed typos. #16300

merged 1 commit into from
Jun 29, 2021

Conversation

RocMarshal
Copy link
Contributor

What is the purpose of the change

Fixed typos

Brief change log

Fixed typos

Verifying this change

Fixed typos

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Collaborator

flinkbot commented Jun 26, 2021

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit 601bd5d (Thu Sep 23 17:52:43 UTC 2021)

Warnings:

  • Invalid pull request title: No valid Jira ID provided

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented Jun 26, 2021

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

@tisonkun
Copy link
Member

image

It is not a typo.

Closing...

@tisonkun tisonkun closed this Jun 27, 2021
@RocMarshal
Copy link
Contributor Author

RocMarshal commented Jun 27, 2021

3

1

2

@dianfu ,@tisonkun Hi, I attach 3 pics about it. PTAL. Thank you.

@tisonkun
Copy link
Member

flink/flink-yarn/pom.xml

Lines 44 to 54 in 2a7e7d7

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-runtime_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>

@RocMarshal nope. Our codebase is in the pattern flink-runtime_${scala.binary.version}.

If you suffer from double underscore issue, you can provide minimal reproduce steps and seek the cause.

@RocMarshal
Copy link
Contributor Author

flink/flink-yarn/pom.xml

Lines 44 to 54 in 2a7e7d7

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-runtime_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>

@RocMarshal nope. Our codebase is in the pattern flink-runtime_${scala.binary.version}.

If you suffer from double underscore issue, you can provide minimal reproduce steps and seek the cause.

@tisonkun Yes, our codebase is in the pattern flink-runtime_${scala.binary.version}. However, the value of variable scala_version in documentation configuration is _2.11. So, double underscore was shown in the page . Thank you for your attention.

@tisonkun tisonkun reopened this Jun 28, 2021
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thanks for your detailed analyze @RocMarshal ! You're right that this pull request could be a valid fix.

I found the root cause that we config scala version with a prefix underscore

ScalaVersion = "_2.11"

I don't know whether or not we handle this case properly, though. That is, if we have to create a series of "fix typo" to handle this pattern. Generally I think a variable named "ScalaVersion" should be "2.11" instead of "_2.11" and we handle the prefix underscore separately, which is what we do in the prod codebase.

Would you mind to do an investigation and handle this config properly?

@RocMarshal
Copy link
Contributor Author

RocMarshal commented Jun 28, 2021

@tisonkun Thank you for your reply. I found this problem during the investigation of version upgrade.
It’s probably that ScalaVersion = "_2.11" was discussed carefully when the documentation was upgraded.
And there are many typos about variable reference site.scala_version_suffix and site.version instead of scala_version and version.

I'm not sure that we should keep ScalaVersion = "_2.11" or update it to ScalaVersion = "2.11". The former requires fewer changes, while the latter requires more changes, but can be read better.
Please let me know your opinions.

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

I go through the codebase and it seems only this section suffer the underscore issue. Let's postpone the discussion of style later.

@tisonkun
Copy link
Member

Thank you! Merging...

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.

4 participants