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

[CONNECTOR] add FtpSinkConnector #1228

Merged
merged 8 commits into from
Dec 11, 2022

Conversation

Haser0305
Copy link
Collaborator

#1188

目前這邊是有測試過可以執行的 ftp sink connector,但應該還會再修改 connector 對於 configuration 的部份。

RecordWriterBuilder#close 那邊因為當初沒有把 outputStream 關閉,因此會導致 ftpClient 連線數太多,開不了新的 outputStream。

FtpFileSystem#type 改了判斷 file 與 nonexistent,如果今天那個 path 為不存在的項目,基於不同的 ftp server 可能會有不同的回傳值,例如 apache mina 會回傳 null,但是 vsftpd server 通常會回傳以下的訊息,因此有增加依照字數來做判斷。

213-Status follows:
213 End of status

@chia7712
Copy link
Contributor

chia7712 commented Dec 8, 2022

麻煩rebase一下

@chia7712
Copy link
Contributor

FtpFileSystemTest > testDelete() FAILED 這個跟這隻PR有關嗎

@Haser0305
Copy link
Collaborator Author

Haser0305 commented Dec 11, 2022

我認為應該是這邊有改到東西造成的,我再研究看看

@Haser0305
Copy link
Collaborator Author

我認為應該是這邊有改到東西造成的,我再研究看看

改好了,主要是因為當初沒有把 working directory 變更回去的關係。
現在的type 判斷方式為了應對不同的 fpt server 可能會回傳不同的內容,因此判斷方式會比較麻煩一點

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@Haser0305 Haser0305 merged commit c970491 into opensource4you:main Dec 11, 2022
wycccccc pushed a commit to wycccccc/astraea that referenced this pull request Dec 14, 2022
also modify the approach to determine type of a path.
wycccccc pushed a commit to wycccccc/astraea that referenced this pull request Dec 14, 2022
also modify the approach to determine type of a path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants