[ 
https://issues.apache.org/jira/browse/FLINK-33018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761832#comment-17761832
 ] 

Ryan Skraba commented on FLINK-33018:
-------------------------------------

_If I understand correctly_ -- the *"C"* element is meant to be acked but not 
emitted in this test.  This (third) end-of-stream message indicates that 
processing is finished, so it _should_ have two emitted elements (A and B) but 
three acknowledged ids (1, 2, and 3).

I'm reading through the code, and I don't believe there's any relevant changes 
due to the bom bump.  Is this always reproducible in the build environment or 
is it flaky?  If flaky -- how flaky?  Often or rarely?

I don't have any good hypothesis for the moment. Maybe there's a 
synchronization issue on the private test class [collecting the 
acks|https://github.com/apache/flink-connector-gcp-pubsub/blob/c06e25a97c5f74873db9d272a4f2cf4787185c4a/flink-connector-gcp-pubsub/src/test/java/org/apache/flink/streaming/connectors/gcp/pubsub/PubSubConsumingTest.java#L214]?
  That doesn't seem quite right, since the {{notifyCheckpointComplete}} should 
have [already 
occurred|https://github.com/apache/flink-connector-gcp-pubsub/blob/c06e25a97c5f74873db9d272a4f2cf4787185c4a/flink-connector-gcp-pubsub/src/main/java/org/apache/flink/streaming/connectors/gcp/pubsub/common/AcknowledgeOnCheckpoint.java#L84]
 just before the assert.

Any other clues that might help narrow this down?

> GCP Pubsub 
> PubSubConsumingTest.testStoppingConnectorWhenDeserializationSchemaIndicatesEndOfStream
>  failed
> --------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-33018
>                 URL: https://issues.apache.org/jira/browse/FLINK-33018
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Google Cloud PubSub
>    Affects Versions: gcp-pubsub-3.0.2
>            Reporter: Martijn Visser
>            Priority: Blocker
>
> https://github.com/apache/flink-connector-gcp-pubsub/actions/runs/6061318336/job/16446392844#step:13:507
> {code:java}
> [INFO] 
> [INFO] Results:
> [INFO] 
> Error:  Failures: 
> Error:    
> PubSubConsumingTest.testStoppingConnectorWhenDeserializationSchemaIndicatesEndOfStream:119
>  
> expected: ["1", "2", "3"]
>  but was: ["1", "2"]
> [INFO] 
> Error:  Tests run: 30, Failures: 1, Errors: 0, Skipped: 0
> [INFO] 
> [INFO] 
> ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to