fix(pipes): return parameters and tags in mutation responses, warn on stream record loss (#588)

This commit is contained in:
Christine Nguyen authored and GitHub committed 2026-04-25 09:36:11 -05:00
1 parent e023936a81
commit e5b733a09d
3 files changed
+60 -2

No files matched your search

@@ -215,6 +215,18 @@ public class PipesController {
node.put("CurrentState", pipe.getCurrentState().name());
if (pipe.getDescription() != null) node.put("Description", pipe.getDescription());
if (pipe.getEnrichment() != null) node.put("Enrichment", pipe.getEnrichment());
if (pipe.getSourceParameters() != null) {
node.set("SourceParameters", pipe.getSourceParameters());
}
if (pipe.getTargetParameters() != null) {
node.set("TargetParameters", pipe.getTargetParameters());
}
if (pipe.getEnrichmentParameters() != null) {
node.set("EnrichmentParameters", pipe.getEnrichmentParameters());
}
if (pipe.getTags() != null && !pipe.getTags().isEmpty()) {
node.set("Tags", objectMapper.valueToTree(pipe.getTags()));
}
if (pipe.getCreationTime() != null) node.put("CreationTime", pipe.getCreationTime().getEpochSecond());
if (pipe.getLastModifiedTime() != null) node.put("LastModifiedTime", pipe.getLastModifiedTime().getEpochSecond());
if (pipe.getStateReason() != null) node.put("StateReason", pipe.getStateReason());
@@ -219,7 +219,10 @@ public class PipesPoller {
return;
}
String eventJson = wrapRecords(filtered);
invokeWithDlq(pipe, eventJson, region);
if (!invokeWithDlq(pipe, eventJson, region)) {
LOG.warnv("Pipe {0}: {1} Kinesis record(s) dropped — delivery and DLQ both failed",
pipe.getName(), filtered.size());
}
} catch (AwsException e) {
if ("ExpiredIteratorException".equals(e.getErrorCode())) {
kinesisIterators.remove(pipeKey);
@@ -267,7 +270,10 @@ public class PipesPoller {
return;
}
String eventJson = wrapRecords(filtered);
invokeWithDlq(pipe, eventJson, region);
if (!invokeWithDlq(pipe, eventJson, region)) {
LOG.warnv("Pipe {0}: {1} DynamoDB Stream record(s) dropped — delivery and DLQ both failed",
pipe.getName(), filtered.size());
}
} catch (AwsException e) {
if ("ExpiredIteratorException".equals(e.getErrorCode()) ||
"TrimmedDataAccessException".equals(e.getErrorCode())) {