question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graceful stop of task error, scheduled files are not cleared and therefore block listing file system

See original GitHub issue

Hi, I have built and installed this connect plugin as of the latest master via confluent-hub install. However, it stops working and I notice an idle task is created in first place now. However, it fails to be restarted/stopped gracefully with logs as below.

2021-09-20 03:47:11,018] INFO Creating new tasks configurations (maxTasks=1) (io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector)
2021-09-20 03:47:11,018] INFO Preparing next scheduling using the object files found during last iteration (attempt=1/3). (io.streamthoughts.kafka.connect.filepulse.fs.DefaultFileSystemMonitor)
2021-09-20 03:47:11,464] INFO Created config for task_id=0 with '1' object files (task_config_gen=1). (io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector)
2021-09-20 03:47:11,472] INFO [Worker clientId=connect-1, groupId=kafka-connect] Tasks [azure-blob-poc-0] configs updated (org.apache.kafka.connect.runtime.distributed.DistributedHerder)
2021-09-20 03:47:11,472] INFO [Worker clientId=connect-1, groupId=kafka-connect] Handling task config update by restarting tasks [azure-blob-poc-0] (org.apache.kafka.connect.runtime.distributed.DistributedHerder)
2021-09-20 03:47:11,472] INFO Stopping task azure-blob-poc-0 (org.apache.kafka.connect.runtime.Worker)
2021-09-20 03:47:16,472] ERROR Graceful stop of task azure-blob-poc-0 failed. (org.apache.kafka.connect.runtime.Worker)

However, the listing does continue to work once. By once, I mean it ended with a uncleaned state and stuck catching up other files in the file system, even it’s completed

2021-09-20 03:48:16,496] INFO Committed offset for file: [uri=https://<redacted>.blob.core.windows.net/file-pulse-poc/Equities_oneliner.csv, name='Equities_oneliner.csv', contentLength=163, lastModified=1632109624000, contentDigest=null, userDefinedMetadata={azure.blob.storage.contentType=text/csv, azure.blob.storage.creationTime=1632109624000, azure.blob.storage.blobUrl=https://<redacted>.blob.core.windows.net/file-pulse-poc/Equities_oneliner.csv, azure.blob.storage.account=<redacted>}] (io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceTask)
2021-09-20 03:48:20,897] INFO Scheduled files still being processed: 1. Skip filesystem listing while waiting for tasks completion (io.streamthoughts.kafka.connect.filepulse.fs.DefaultFileSystemMonitor)
2021-09-20 03:48:20,897] INFO Completed filesystem monitoring iteration in 0 ms (io.streamthoughts.kafka.connect.filepulse.source.FileSystemMonitorThread)
2021-09-20 03:48:30,897] INFO Scheduled files still being processed: 1. Skip filesystem listing while waiting for tasks completion (io.streamthoughts.kafka.connect.filepulse.fs.DefaultFileSystemMonitor)
2021-09-20 03:48:30,897] INFO Completed filesystem monitoring iteration in 0 ms (io.streamthoughts.kafka.connect.filepulse.source.FileSystemMonitorThread)

image

I am using the same configs as in another issue #177 I raised recently.

Thank you for your help in advance 🙇‍♂️

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fhussonnoiscommented, Sep 21, 2021

Hi @alankan-finocomp, you can try to rebuild the master branch with the fix for that issue.

0reactions
alankan-finocompcommented, Sep 22, 2021

Thanks @fhussonnois. It works like a charm again 🎉 Closing this issue now. Thanks again!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Debezium Oracle Connector] ERROR Graceful stop of task xx ...
This error occurs every few hours. There are no other exceptions on the log. In what cases does this error occur? The version...
Read more >
Improved Handling of Abandoned Connectors and Tasks
If the worker has to shut down a task, the task is given a graceful shutdown period to allow it to de-allocate resources,...
Read more >
How to shutdown a Spring Boot Application in a correct way?
Added to the list: disable new executions of Scheduled Tasks. Also to this answer let me add that you can set the graceful...
Read more >
Task definition parameters - Amazon Elastic Container Service
For Amazon ECS tasks that are hosted on Amazon EC2 Linux instances, the valid values are none , bridge , awsvpc , and...
Read more >
Chapter 14. Web Servers Red Hat Enterprise Linux 7
Not configured by default, the example configuration file is provided at ... List of httpd modules removed in Red Hat Enterprise Linux 7:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found