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

docs: request for updating Images in contributing documentation #361

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ private void readFile(String patternCode, String ip, String filePath, Long chann
log.info("thread {} {}", Thread.currentThread().isVirtual(), Thread.currentThread());
logFile.readLine();
} catch (Exception e) {
logFile.setExceptionFinish();
log.error("logFile read line err,channelId:{},localIp:{},file:{},patternCode:{}", channelId, usedIp, fileProgressMap, patternCode, e);
}
});
Expand Down Expand Up @@ -565,7 +566,7 @@ public void reOpen(String filePath) {
ILogFile logFile = logFileMap.get(filePath);
String tailPodIp = getTailPodIp(filePath);
String ip = StringUtils.isBlank(tailPodIp) ? NetUtil.getLocalIp() : tailPodIp;
if (null == logFile) {
if (null == logFile || logFile.getExceptionFinish()) {
// Add new log file
readFile(channelDefine.getInput().getPatternCode(), ip, filePath, getChannelId());
log.info("watch new file create for channelId:{},ip:{},path:{}", getChannelId(), filePath, ip);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ private void startConsumerJob(String type, String ak, String sk, String clusterI
String sinkProviderBean = sinkJobConfig.getMqType() + LogStreamConstants.sinkJobProviderBeanSuffix;
SinkJobProvider sinkJobProvider = Ioc.ins().getBean(sinkProviderBean);

if (StringUtils.equalsAnyIgnoreCase(SinkJobEnum.NORMAL_JOB.name(), sinkJobType)) {
if (StringUtils.equalsIgnoreCase(SinkJobEnum.NORMAL_JOB.name(), sinkJobType)) {
sinkJobConfig.setJobType(SinkJobEnum.NORMAL_JOB.name());
startSinkJob(sinkJobProvider.getSinkJob(sinkJobConfig), SinkJobEnum.NORMAL_JOB,
logtailConfig.getLogtailId());
}

if (StringUtils.equalsAnyIgnoreCase(SinkJobEnum.BACKUP_JOB.name(), sinkJobType)) {
if (StringUtils.equalsIgnoreCase(SinkJobEnum.BACKUP_JOB.name(), sinkJobType)) {
sinkJobConfig.setJobType(SinkJobEnum.BACKUP_JOB.name());
startSinkJob(sinkJobProvider.getBackupJob(sinkJobConfig), SinkJobEnum.BACKUP_JOB,
logtailConfig.getLogtailId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ private void putCommonData(Map<String, Object> dataMap) {
}

private void sendMessage(Map<String, Object> dataMap) throws Exception {
dataMap.putIfAbsent(ES_KEY_MAP_TAIL_ID, sinkJobConfig.getLogTailId());
if (!logSendFilter.sendMessageSwitch(dataMap)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void beforeBulk(long executionId, BulkRequest request) {
@Override
public void afterBulk(long executionId, BulkRequest request, BulkResponse response) {
if (response.hasFailures()) {
log.error("afterBulk request:{},response:{}", gson.toJson(request.requests()), gson.toJson(response));
log.error("afterBulk request:{},response:{}", gson.toJson(request.requests()), response.buildFailureMessage());
AtomicInteger count = new AtomicInteger();
response.spliterator().forEachRemaining(x -> {
if (x.isFailed()) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@
<dependency>
<groupId>run.mone</groupId>
<artifactId>file</artifactId>
<version>${jcommon.release.version}</version>
<version>1.5.1-jdk21</version>
</dependency>
<dependency>
<groupId>run.mone</groupId>
Expand Down
Binary file modified readme/contributing/images/1-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/1-2-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/1-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/1-3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/1-4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/1-5.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-5-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/2-5.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/3-1-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme/contributing/images/3-1-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading