You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "RanJinh (via GitHub)" <gi...@apache.org> on 2024/10/30 02:25:22 UTC

[PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

RanJinh opened a new pull request, #25590:
URL: https://github.com/apache/flink/pull/25590

   ## What is the purpose of the change
   
   To update the `Testing Flink Jobs` Docs example from deprecated `SinkFunction` to `Sink`.
   
   
   ## Brief change log
   
     - Using `Sink` instead of `SinkFunction`, since `SinkFunction` is deprecated in flink 1.20.
   
   
   ## Verifying this change
   
     - Document address: 
       - https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/testing/#testing-flink-jobs
       - https://nightlies.apache.org/flink/flink-docs-master/zh/docs/dev/datastream/testing/#%e6%b5%8b%e8%af%95-flink-%e4%bd%9c%e4%b8%9a
   
   ## 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)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #25590: [FLINK-36161][docs]Update Integration Test Example with Sink API.
URL: https://github.com/apache/flink/pull/25590


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #25590:
URL: https://github.com/apache/flink/pull/25590#issuecomment-4495729432

   This PR has been closed since it has not had any activity in 120 days. 
   If you feel like this was a mistake, or you would like to continue working on it, 
   please feel free to re-open the PR and ask for a review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #25590:
URL: https://github.com/apache/flink/pull/25590#issuecomment-2445693542

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fad3e72e06bf99b6564b4fe6b2168e7f2e0533ae",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fad3e72e06bf99b6564b4fe6b2168e7f2e0533ae",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fad3e72e06bf99b6564b4fe6b2168e7f2e0533ae UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #25590:
URL: https://github.com/apache/flink/pull/25590#issuecomment-4278534791

   This PR is being marked as stale since it has not had any activity in the last 90 days. 
   If you would like to keep this PR alive, please leave a comment asking for a review. 
   If the PR has merge conflicts, update it with the latest from the base branch.
   
   If you are having difficulty finding a reviewer, please reach out to the 
   community, contact details can be found here: https://flink.apache.org/what-is-flink/community/
   
   If this PR is no longer valid or desired, please feel free to close it. 
   If no activity occurs in the next 30 days, it will be automatically closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "RanJinh (via GitHub)" <gi...@apache.org>.
RanJinh commented on PR #25590:
URL: https://github.com/apache/flink/pull/25590#issuecomment-2636439765

   @flinkbot run azure


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-36161][docs]Update Integration Test Example with Sink API. [flink]

Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #25590:
URL: https://github.com/apache/flink/pull/25590#discussion_r1890312660


##########
docs/content/docs/dev/datastream/testing.md:
##########
@@ -449,26 +449,41 @@ public class ExampleIntegrationTest {
         CollectSink.values.clear();
 
         // create a stream of custom elements and apply transformations
-        env.fromElements(1L, 21L, 22L)
+        env.fromData(1L, 21L, 22L)

Review Comment:
   This is difficult to review without trying it. It would be great if this class or a variant was in Flink as a test class, with a comment to say if the class is changed then change the docs. In this way we should have a working test and valid docs.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org