You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "windmemory (via GitHub)" <gi...@apache.org> on 2024/09/02 16:19:43 UTC
[I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
windmemory opened a new issue, #7554:
URL: https://github.com/apache/seatunnel/issues/7554
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### What happened
I created a stream job, but the job state turned into finished after about a minute.
From what I learned from the doc, stream job won't stop, will execute forever, but I saw the job turned into finished after a short time. I think this should be a bug.
Here is the job params, I created the job via restful api
```json
{
"env": {
"job.mode": "streaming",
"job.name": "broadcast_sync",
"checkpoint.interval": 10000,
"checkpoint.timeout": 10000
},
"source": [
{
"plugin_name": "MongoDB",
"uri": "my_uri",
"database": "automation",
"collection": "broadcast_task",
"result_table_name": "broadcast_task",
"schema": {
"fields": {
"_id": "string",
"botId": "string",
"groupId": "string",
"orgId": "string",
"botJobId": "string",
"jobId": "string",
"orgJobId": "string",
"targetType": "int",
"targetId": "string",
"createdAt": "bigint",
"updatedAt": "bigint",
"finishAt": "bigint",
"errCode": "int",
"errMsg": "string",
"remark": "string",
"status": "int",
"wxid": "string"
},
"primaryKey": {
"name": "_id",
"columnNames": [
"_id"
]
}
}
}
],
"transform": [],
"sink": [
{
"plugin_name": "Doris",
"source_table_name": "broadcast_task",
"fenodes": "x.x.x.x:8030",
"username": "",
"password": "",
"database": "",
"table": "${table_name}_test",
"sink.label-prefix": "test-cdc",
"sink.enable-2pc": "true",
"sink.enable-delete": "true",
"needs_unsupported_type_casting": "true",
"save_mode_create_template": "CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}` (\n_id varchar(255) NOT NULL,\n${rowtype_fields}\n) ENGINE=OLAP\n UNIQUE KEY (${rowtype_primary_key})\nDISTRIBUTED BY HASH (${rowtype_primary_key})\n PROPERTIES (\n\"replication_allocation\" = \"tag.location.default: 1\",\n\"in_memory\" = \"false\",\n\"storage_format\" = \"V2\",\n\"disable_auto_compaction\" = \"false\"\n)",
"doris.config": {
"format": "json",
"read_json_by_line": "true"
}
}
]
}
```
### SeaTunnel Version
2.3.7
### SeaTunnel Config
```conf
seatunnel:
engine:
history-job-expire-minutes: 1440
backup-count: 1
queue-type: blockingqueue
print-execution-info-interval: 60
print-job-metrics-info-interval: 60
slot-service:
dynamic-slot: true
checkpoint:
interval: 10000
timeout: 60000
storage:
type: hdfs
max-retained: 3
plugin-config:
namespace: /tmp/seatunnel/checkpoint_snapshot
storage.type: hdfs
fs.defaultFS: file:///tmp/ # Ensure that the directory has written permission
```
### Running Command
```shell
I run the server with separate way, referred the doc: [separated-cluster](https://seatunnel.apache.org/zh-CN/docs/2.3.7/seatunnel-engine/separated-cluster-deployment)
Then I used a http client to call the restful api to created the job.
bash ./bin/seatunnel-cluster.sh -r master
```
### Error Exception
```log
Here are the logs that triggered the stop
2024-09-02 16:09:32,990 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-74] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] turned from state DEPLOYING to RUNNING.
2024-09-02 16:09:32,990 INFO [o.a.s.e.s.d.p.PhysicalPlan ] [seatunnel-coordinator-service-74] - Job broadcast_sync (883020835130966017) turned from state SCHEDULED to RUNNING.
2024-09-02 16:09:33,261 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - checkpoint is enabled, start schedule trigger pending checkpoint.
2024-09-02 16:09:43,261 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 1
2024-09-02 16:09:46,945 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(1/1@883020835130966017) notify finished!
2024-09-02 16:09:46,945 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:1
2024-09-02 16:09:53,261 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 2
2024-09-02 16:09:56,423 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(2/1@883020835130966017) notify finished!
2024-09-02 16:09:56,423 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:2
2024-09-02 16:10:03,262 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 3
2024-09-02 16:10:07,334 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(3/1@883020835130966017) notify finished!
2024-09-02 16:10:07,334 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:3
2024-09-02 16:10:13,262 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 4
2024-09-02 16:10:17,019 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(4/1@883020835130966017) notify finished!
2024-09-02 16:10:17,019 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:4
2024-09-02 16:10:23,262 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 5
2024-09-02 16:10:24,344 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(5/1@883020835130966017) notify finished!
2024-09-02 16:10:24,344 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:5
2024-09-02 16:10:30,962 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - wait checkpoint completed: 9223372036854775807
2024-09-02 16:10:31,218 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - pending checkpoint(9223372036854775807/1@883020835130966017) notify finished!
2024-09-02 16:10:31,218 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start notify checkpoint completed, job id: 883020835130966017, pipeline id: 1, checkpoint id:9223372036854775807
2024-09-02 16:10:31,237 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - start clean pending checkpoint cause CheckpointCoordinator completed.
2024-09-02 16:10:31,237 INFO [.s.e.s.c.CheckpointCoordinator] [seatunnel-coordinator-service-75] - Turn checkpoint_state_883020835130966017_1 state from null to FINISHED
2024-09-02 16:10:31,269 INFO [o.a.s.a.e.LoggingEventHandler ] [hz.main.generic-operation.thread-0] - log event: WriterCloseEvent(createdTime=1725293431267, jobId=883020835130966017, eventType=LIFECYCLE_WRITER_CLOSE)
2024-09-02 16:10:31,278 INFO [o.a.s.e.s.CoordinatorService ] [hz.main.generic-operation.thread-1] - [seatunnel-master-1]:5801 [seatunnel] [5.1] Received task end from execution TaskGroupLocation{jobId=883020835130966017, pipelineId=1, taskGroupId=1}, state FINISHED
2024-09-02 16:10:31,279 INFO [o.a.s.e.s.d.p.PhysicalVertex ] [hz.main.generic-operation.thread-1] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SplitEnumerator (1/1)] turned from state RUNNING to FINISHED.
2024-09-02 16:10:31,279 INFO [o.a.s.e.s.d.p.PhysicalVertex ] [hz.main.generic-operation.thread-1] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SplitEnumerator (1/1)] state process is stopped
2024-09-02 16:10:31,279 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-75] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SplitEnumerator (1/1)] future complete with state FINISHED
2024-09-02 16:10:31,327 INFO [o.a.s.e.s.CoordinatorService ] [hz.main.generic-operation.thread-0] - [seatunnel-master-1]:5801 [seatunnel] [5.1] Received task end from execution TaskGroupLocation{jobId=883020835130966017, pipelineId=1, taskGroupId=30000}, state FINISHED
2024-09-02 16:10:31,328 INFO [o.a.s.e.s.d.p.PhysicalVertex ] [hz.main.generic-operation.thread-0] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SourceTask (1/1)] turned from state RUNNING to FINISHED.
2024-09-02 16:10:31,328 INFO [o.a.s.e.s.d.p.PhysicalVertex ] [hz.main.generic-operation.thread-0] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SourceTask (1/1)] state process is stopped
2024-09-02 16:10:31,328 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-75] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SourceTask (1/1)] future complete with state FINISHED
2024-09-02 16:10:31,328 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-75] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] will end with state FINISHED
2024-09-02 16:10:31,328 INFO [o.a.s.e.s.m.JobMaster ] [hz.main.generic-operation.thread-0] - release the task group resource TaskGroupLocation{jobId=883020835130966017, pipelineId=1, taskGroupId=30000}
2024-09-02 16:10:31,329 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-75] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] turned from state RUNNING to FINISHED.
2024-09-02 16:10:31,345 INFO [o.a.s.e.s.m.JobMaster ] [seatunnel-coordinator-service-75] - release the pipeline Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] resource
2024-09-02 16:10:31,346 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-75] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] state process is stop
2024-09-02 16:10:31,346 INFO [o.a.s.e.s.d.p.PhysicalPlan ] [seatunnel-coordinator-service-76] - Job broadcast_sync (883020835130966017), Pipeline: [(1/1)] future complete with state FINISHED
2024-09-02 16:10:31,347 INFO [o.a.s.e.s.d.p.PhysicalPlan ] [seatunnel-coordinator-service-76] - Job broadcast_sync (883020835130966017) turned from state RUNNING to FINISHED.
2024-09-02 16:10:31,347 INFO [o.a.s.e.s.d.p.PhysicalPlan ] [seatunnel-coordinator-service-76] - Job broadcast_sync (883020835130966017) state process is stop
2024-09-02 16:10:31,996 INFO [o.a.s.e.s.CoordinatorService ] [pool-4-thread-1] - [seatunnel-master-1]:5801 [seatunnel] [5.1]
```
### Zeta or Flink or Spark Version
2.3.7
### Java or Scala Version
8
### Screenshots
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on issue #7554:
URL: https://github.com/apache/seatunnel/issues/7554#issuecomment-2325574077
> Sounds like you need `MongoDB-CDC`. https://seatunnel.apache.org/docs/2.3.7/connector-v2/source/MongoDB-CDC/
+1
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
Posted by "liunaijie (via GitHub)" <gi...@apache.org>.
liunaijie commented on issue #7554:
URL: https://github.com/apache/seatunnel/issues/7554#issuecomment-2325457169
Sounds like you need `MongoDB-CDC`. https://seatunnel.apache.org/docs/2.3.7/connector-v2/source/MongoDB-CDC/
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on issue #7554:
URL: https://github.com/apache/seatunnel/issues/7554#issuecomment-2325573910
The `MongoDB` connector only supported Batch. So even you set job mode to streaming it will not working.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X closed issue #7554: [Bug] [CheckpointCoordinator] stream job stopped
URL: https://github.com/apache/seatunnel/issues/7554
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [CheckpointCoordinator] stream job stopped [seatunnel]
Posted by "windmemory (via GitHub)" <gi...@apache.org>.
windmemory commented on issue #7554:
URL: https://github.com/apache/seatunnel/issues/7554#issuecomment-2325686364
@liunaijie @Hisoka-X Thanks for the help, it works!
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org