Mirror upstream elastic/elasticsearch#134941 for AI review (snapshot of HEAD tree)#120
Mirror upstream elastic/elasticsearch#134941 for AI review (snapshot of HEAD tree)#120phananh1010 wants to merge 1 commit intoupstream-mainfrom
Conversation
BASE=6a1d6bf45243b971e81384c6edb3d9a44a0580b8 HEAD=cdd8ceeee7541f2657e7528f58c5dffd4e5adc2e Branch=main
WalkthroughIntroduces an auto max_age rollover rule for tiny retentions (<=1d) set to 1h in RolloverConfiguration, updates unit tests accordingly, adds a YAML REST test validating lifecycle and failure store behavior with tiny retentions, and documents the change in the changelog. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant DSL as DataStreamLifecycleService
participant RC as RolloverConfiguration
participant ES as Elasticsearch Cluster
User->>DSL: Trigger lifecycle run
DSL->>RC: evaluateMaxAgeCondition(retention, max_age=auto)
alt retention <= 1d
Note right of RC: New path: auto max_age = 1h
RC-->>DSL: 1h
else retention <= 14d / <=90d / >90d
RC-->>DSL: 1d / 7d / 30d
end
DSL->>ES: RolloverRequest(main DS, max_age)
DSL->>ES: RolloverRequest(failure store, max_age)
ES-->>DSL: Acknowledge rollovers
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (3)modules/data-streams/src/test/java/org/elasticsearch/datastreams/lifecycle/DataStreamLifecycleServiceTests.java (2)
server/src/test/java/org/elasticsearch/action/admin/indices/rollover/RolloverConfigurationTests.java (2)
server/src/main/java/org/elasticsearch/action/admin/indices/rollover/RolloverConfiguration.java (1)
🪛 YAMLlint (1.37.1)modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/270_small_retention.yml[error] 15-15: too many spaces inside brackets (brackets) [error] 15-15: too many spaces inside brackets (brackets) [error] 20-20: too many spaces inside brackets (brackets) [error] 20-20: too many spaces inside brackets (brackets) [error] 46-46: too many spaces inside braces (braces) [error] 46-46: too many spaces inside braces (braces) [error] 47-47: too many spaces inside braces (braces) [error] 47-47: too many spaces inside braces (braces) [error] 48-48: too many spaces inside braces (braces) [error] 48-48: too many spaces inside braces (braces) [error] 49-49: too many spaces inside braces (braces) [error] 49-49: too many spaces inside braces (braces) [error] 50-50: too many spaces inside braces (braces) [error] 50-50: too many spaces inside braces (braces) [error] 51-51: too many spaces inside braces (braces) [error] 51-51: too many spaces inside braces (braces) [error] 52-52: too many spaces inside braces (braces) [error] 52-52: too many spaces inside braces (braces) [error] 53-53: too many spaces inside braces (braces) [error] 53-53: too many spaces inside braces (braces) 🔇 Additional comments (5)
Comment |
Single commit with tree=cdd8ceeee7541f2657e7528f58c5dffd4e5adc2e^{tree}, parent=6a1d6bf45243b971e81384c6edb3d9a44a0580b8. Exact snapshot of upstream PR head. No conflict resolution attempted.
Summary by CodeRabbit
New Features
Documentation
Tests