-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Pipe: export tsfile sink #14111
base: dev/1.3
Are you sure you want to change the base?
Pipe: export tsfile sink #14111
Conversation
if (!exportPath.exists() && !exportPath.mkdirs()) { | ||
throw new PipeException("Export TsFile path not exist and can't be created"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!exportPath.exists() && !exportPath.mkdirs()) { | |
throw new PipeException("Export TsFile path not exist and can't be created"); | |
} | |
synchornized (ExportTsFileConnector.class) { | |
if (!exportPath.exists() && !exportPath.mkdirs()) { | |
throw new PipeException("Export TsFile path not exist and can't be created"); | |
} | |
} |
|
||
@Override | ||
public void heartbeat() throws Exception { | ||
handshake(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do nothing is better.
|
||
final PipeTsFileInsertionEvent event = (PipeTsFileInsertionEvent) tsFileInsertionEvent; | ||
final File sourceTsFile = event.getTsFile(); | ||
final File targetPath = new File(exportPath, sourceTsFile.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different regions, the same name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
客户目录检查下载文件的时候,会不会往子目录去检测?需要确认
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that sourceTsFile.getName() returns the name of pipe-pinned tsfiles, which include region id.
No description provided.