ClaimEvidenceby Sprint Ready Ltd
Pilot. Packs are drafts for professional review. ClaimEvidence organises your client's records and does not give tax advice.

← All examples · The files

Apache Kafka (open-source project) · Jira + design document (real, public records) · claim period 2023-01-01 to 2023-12-31

HMRC's questions, answered from the records

If HMRC opened an enquiry into this project, these are the six things a caseworker would ask. For each one, here's what the records answer and what they don't. Click any card to see the evidence behind it. (The engine was run once on these records and the results saved; nothing is being processed now.)

Real, public records From the open-source Apache Kafka project's public Jira and design document, used under the Apache License 2.0, with names replaced by labels. Not affiliated with or endorsed by the Apache Software Foundation. Public records notice

What it saves

By hand: about 9.0 hours of senior time to read the 68 records, pull out and check 35 quotes and write 16 questions: about £810.

With ClaimEvidence: 112 seconds and one credit (from about £60 a project on the Firm plan to £195 pay as you go), then your review.

How we worked this out

3 minutes to find and read each record, 5 minutes to copy and check each quote against its source, 10 minutes to spot each gap and write the question, at £90 an hour, a typical charge-out rate for this work. A rough guide, not a promise: it counts the digging you stop doing, not the judgement you keep.

Found before the claim goes in
  • 2 places where the records contradict each other
  • 18 quotes dated outside the claim period, flagged so they aren't claimed by mistake
  • 20 statements the AI drafted that the records don't support, removed
  • 20 routine items set aside, so they aren't overclaimed
  • 16 precise questions to settle with the engineer now, not during an enquiry

Each of these is cheap to fix before submission and costly if HMRC finds it first.

HMRC asks the question an inspector puts to you.
The records show statements built only from the client's own records, each with dated, word-for-word quotes that link to the public original.
Ask the engineer where the records are silent or contradict each other, ClaimEvidence writes the precise question to put to the engineer, instead of guessing.

Show everything on this page · Fold it back up · Detailed view: the full evidence pack

HMRC asks Partly answered

1. What was the baseline: what could already be done when the project started, and why wasn't that enough?

HMRC wants the starting point: what the company, and the field, could already do. Without it there's no advance to measure.

In short: 3 statements from the records, backed by 5 dated quotes. 1 thing to ask the engineer.

The records show 3 statements

Kafka stored messages in append-only log segments on local disks with retention based on log.retention configuration, requiring large amounts of local storage proportional to topics, message rate, and retention period.

Evidence: 2 dated quotes from the records
D1-p3 ↗ · undated “Kafka stores the messages in append-only log segments on local disks on Kafka brokers. The retention period for the log is based on `log.retention` that can be set system-wide or per topic.”
D1-p4 ↗ · undated “The total storage required on a cluster is proportional to the number of topics/partitions, the rate of messages, and most importantly the retention period.”

Kafka was typically configured with shorter retention periods of around 3 days, with older data copied to external storage like HDFS using data pipelines.

Evidence: 1 dated quote from the records
D1-p6 ↗ · undated “Currently, Kafka is configured with a shorter retention period in days (typically 3 days) and data older than the retention period is copied using data pipelines to a more scalable external storage for long-term use, such as HDFS.”

Kafka brokers typically had large numbers of disks with total storage capacity of 10s of TBs, and cluster storage was scaled by adding more broker nodes.

Evidence: 2 dated quotes from the records
D1-p4 ↗ · undated “A Kafka broker typically has a large number of disks with a total storage capacity of 10s of TBs.”
D1-p7 ↗ · undated “Kafka cluster storage is typically scaled by adding more broker nodes to the cluster.”
Ask the engineer 1 question, where the records are silent or disagree

No information about what existing Kafka features or APIs were considered and found insufficient for long-term storage before deciding on tiered storage approach

Ask: What existing Kafka capabilities or alternative approaches did you evaluate before implementing tiered storage, and why were they insufficient?

HMRC asks Answered from the records

2. What advance in science or technology was the company seeking?

The new capability the team set out to achieve, which didn't already exist. It's the heart of the Additional Information Form.

In short: 2 statements from the records, backed by 3 dated quotes.

The records show 2 statements

Enable Kafka to scale storage independently of memory and CPUs by using remote tier storage with much longer retention periods of days or months.

Evidence: 2 dated quotes from the records
D1-p13 ↗ · undated “This solution allows scaling storage independent of memory and CPUs in a Kafka cluster enabling Kafka to be a long-term storage solution.”
D1-p12 ↗ · undated “The retention period for remote tier can be much longer, days, or even months.”

Eliminate the need for separate data pipelines to copy data from Kafka to external stores by allowing longer retention directly in Kafka.

Evidence: 1 dated quote from the records
D1-p13 ↗ · undated “At the same time, the overall data retention can still be much longer eliminating the need for separate data pipelines to copy the data from Kafka to external stores, as done currently in many deployments.”
HMRC asks Partly answered

3. What was the technological uncertainty, and why couldn't a competent professional readily resolve it?

What the engineers genuinely didn't know how to do at the time. Records made at the time count for far more than a narrative written later.

In short: 3 statements from the records, backed by 4 dated quotes. 2 things to ask the engineer.

The records show 3 statements

How to handle duplicate or overlapping remote log segments that may be uploaded by different leaders for the same partition due to leader changes. resolved

Evidence: 2 dated quotes from the records
KAFKA-15168 ↗ · 2023-07-08 “For a partition p0 and a given leader epoch, the remote log manager can upload duplicate segments due to leader change. RemoteLogMetadata cache should handle the duplicate segments which may affect the follower and consumer.”
D1-p157 ↗ · undated “Describe more on how are duplicate log segments in remote storage are handled. This is partly covered in example scenarios but good to describe them in the details section.”

How to handle race conditions when partitions are assigned to TopicBasedRemoteLogMetadataManager before the consumer cache has caught up and is ready to serve requests. resolved

Evidence: 1 dated quote from the records
KAFKA-15181#c4 ↗ · 2023-09-07 “The changes discussed on [https://github.com/apache/kafka/pull/14012] were addressed in https://github.com/apache/kafka/pull/14127. The ReplicaFetcher thread will receive a retryable exception if the cache is not initialized for the topic partition. The ReplicaFetcher thread will keep retrying until the cache is initialized.”

How to prevent remote log segments from being incorrectly deleted during partition reassignment due to leader epoch cache truncation. resolved

Evidence: 1 dated quote from the records
KAFKA-15414#c6 ↗ · 2023-09-05 “Could you please take the latest trunk and try it out? Reopen the ticket if it doesn't work. Thanks!”
Ask the engineer 2 questions, where the records are silent or disagree

No specific technical challenges or unknowns documented about implementing the RemoteLogManager component and its task scheduling

Ask: What technical uncertainties did you face when designing and implementing the RemoteLogManager component and its leader/follower task architecture?

No details about challenges in implementing the remote index cache with LRU eviction and bounded size

Ask: What technical challenges did you encounter when implementing the bounded LRU cache for remote log segment indexes?

HMRC asks Partly answered

4. What did the team try, when, and what happened?

The approaches tried, with dates and results, including the ones that failed. Failures are strong evidence the outcome was uncertain.

In short: 12 statements from the records, backed by 22 dated quotes. 4 things to ask the engineer.

The records show 12 statements

2019-10-19: Initial draft implementation of KIP-405 with initial set of changes for plugging in RemoteStorageManager → Draft pull request created for review partial

Evidence: 1 dated quote from the records
KAFKA-7739#c1 ↗ · 2019-10-19 · outside the claim period “[WIP] This is the initial **draft** version of the KIP-405. It includes the initial set of changes required for plugging in a RemoteStorageManager. We will update the KIP and this PR in the next few days with more details.”

2021-03-03: Implement SPI interfaces RemoteStorageManager and RemoteLogMetadataManager with related classes → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-9548 ↗ · 2020-02-13 · outside the claim period “SPI - RemoteStorageManager and RemoteLogMetadataManager interfaces and related classes.”
KAFKA-9548#c1 ↗ · 2021-03-03 · outside the claim period “merged the PR to trunk”

2021-04-13: Implement in-memory implementations of RSM and RLMM for testing → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-12368 ↗ · 2021-02-24 · outside the claim period “Inmemory implementation of RSM and RLMM.”
KAFKA-12368#c1 ↗ · 2021-04-13 · outside the claim period “merged the PR to trunk”

2021-05-05: Implement serdes for message types in internal topic used in default RLMM implementation → Pull request merged to trunk succeeded

Evidence: 1 dated quote from the records
KAFKA-12429#c1 ↗ · 2021-05-05 · outside the claim period “merged the PR to trunk”

2021-06-18: Add tier storage configs including remote log manager, remote storage manager, and remote log metadata manager configurations → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-12816 ↗ · 2021-05-20 · outside the claim period “Add all the tier storage related configurations including remote log manager, remote storage manager, and remote log metadata manager. These configs are described in the KIP-405 here.”
KAFKA-12816#c1 ↗ · 2021-06-18 · outside the claim period “merged the PR to trunk”

2021-07-19: Implement topic-based RemoteLogMetadataManager using internal Kafka topic → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-9555 ↗ · 2020-02-14 · outside the claim period “The purpose of this task is to implement a RemoteLogMetadataManager based on an internal topic in Kafka. More details ar mentioned in the KIP.”
KAFKA-9555#c2 ↗ · 2021-07-19 · outside the claim period “merged the PR to trunk.”

2021-09-09: Change RLMM APIs to be asynchronous for add/updateRemoteLogSegmentMetadata and putRemotePartitionDeleteMetadata → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-12988 ↗ · 2021-06-24 · outside the claim period “Change RLMM add/updateRemoteLogSegmentMetadata and putRemotePartitionDeleteMetadata APIS asynchronous.”
KAFKA-12988#c1 ↗ · 2021-09-09 · outside the claim period “merged the PR to trunk.”

2021-10-11: Add file based cache for consumed remote log metadata per partition to avoid re-consuming after broker restarts → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-12802 ↗ · 2021-05-17 · outside the claim period “Add a file based cache for consumed remote log metadata for each partition to avoid consuming again in case of broker restarts.”
KAFKA-12802#c2 ↗ · 2021-10-11 · outside the claim period “merged the PR to trunk”

2022-12-17: Implement follower fetch protocol enhancements for tiered storage → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-13369 ↗ · 2021-10-12 · outside the claim period “Follower fetch protocol enhancements for tiered storage.”
KAFKA-13369#c1 ↗ · 2022-12-17 · outside the claim period “merged the PR to trunk.”

2022-12-19: Add support for transactions in tiered storage → Fixed with pull request 11390 succeeded

Evidence: 2 dated quotes from the records
KAFKA-9990 ↗ · 2020-05-13 · outside the claim period “Supporting transactions in tiered storage”
KAFKA-9990#c4 ↗ · 2022-12-19 · outside the claim period “This is fixed with https://github.com/apache/kafka/pull/11390”

2023-02-24: Introduce TierStateMachine interface for building remote aux log asynchronously → Pull request merged to trunk succeeded

Evidence: 2 dated quotes from the records
KAFKA-14685 ↗ · 2023-02-06 “To help with https://issues.apache.org/jira/browse/KAFKA-13560 , we can introduce an interface to manage state transitions of building the remote aux log asynchronously”
KAFKA-14685#c2 ↗ · 2023-02-24 “merged the PR to trunk.”

Date not recorded: Complete implementation of tiered storage epic with all major components → Epic resolved and included in v3.6.0 as early access feature succeeded

Evidence: 2 dated quotes from the records
KAFKA-7739#c29 ↗ · 2023-09-15 “This epic is created on Dec. 14, 2018 and is finally resolved now (Sept. 14, 2023)! What a great job for all the contributors to this tiered storage epic!”
KAFKA-7739#c31 ↗ · 2023-09-15 “This will be included in v3.6.0, and be considered as an early access feature. It's not recommended to run in the production environment.”
Ask the engineer 4 questions, where the records are silent or disagree

No information about how the decision was made to separate RemoteStorageManager from RemoteLogMetadataManager or what alternatives were tried

Ask: What approaches did you try before deciding to separate remote storage from remote log metadata management, and how did you validate this separation was the right solution?

No details about how the team resolved the choice between in-memory cache versus RocksDB for RLMM materialized state

Ask: What experiments or analysis did you perform to decide between in-memory cache and RocksDB for RLMM, and what were the specific performance or operational trade-offs?

Multiple tickets show work pushed across releases (3.0, 3.1, 3.2, 3.3, 3.5) due to feature freeze, but no explanation of what technical blockers caused the delays

Ask: What specific technical challenges caused the tiered storage work to be delayed across multiple Kafka releases from 3.0 through 3.5?

KAFKA-15083 describes missing configs for RLMM but the resolution approach and validation are not documented

Ask: How did you discover that remote.log.metadata.* configs were not being passed to RLMM, and how did you validate the fix worked correctly?

HMRC asks Answered from the records

5. Which of the work was R&D, and which was routine?

Claiming routine work is the commonest reason HMRC cuts a claim. Showing what you left out, and why, answers that challenge.

In short: 20 items set aside as routine, each with the reason.

The records show what was set aside as routine, and why (20)
  • KAFKA-14466 ↗: Refactoring ClassLoaderAwareRemoteStorageManager from Scala to Java and moving to storage module
  • KAFKA-14495 ↗: Test improvement for RemoteIndexCacheTest
  • KAFKA-14850 ↗: Introduce InMemoryLeaderEpochCheckpoint for quick write/read operations
  • KAFKA-15157 ↗: Add logging for RemoteIndexCache startup time for debugging
  • KAFKA-15176 ↗: Add missing tests for remote storage metrics
  • KAFKA-15194 ↗: Rename local tiered storage segment files with offset prefix for easier navigation
  • KAFKA-15236 ↗: Rename remote storage metrics to remove ambiguity in naming
  • KAFKA-15293 ↗: Update metrics documentation to add tiered storage metrics
  • KAFKA-15294 ↗: Make remote storage related configs public (non-internal)
  • KAFKA-15295 ↗: Add config validation when remote storage is enabled on a topic
  • KAFKA-15329 ↗: Set default remote.log.metadata.manager.class.name as topic based RLMM
  • KAFKA-15442 ↗: Add documentation to introduce tiered storage feature and usage
  • KAFKA-14993 ↗ Improve TransactionIndex instance handling while copying to and fetching from RSM.: no recorded uncertainty or experimentation.
  • KAFKA-15130 ↗ Delete remote segments when delete a topic: no recorded uncertainty or experimentation.
  • KAFKA-15131 ↗ Improve RemoteStorageManager exception handling documentation: no recorded uncertainty or experimentation.
  • KAFKA-15135 ↗ RLM listener configurations passed but ignored by RLMM: no recorded uncertainty or experimentation.
  • KAFKA-15189 ↗ Do not initialize RemoteStorage related metrics when disabled at cluster: no recorded uncertainty or experimentation.
  • KAFKA-15274 ↗ support moving files to be deleted to other directories: no recorded uncertainty or experimentation.
  • KAFKA-15386 ↗ Update log-start-offset in RLM task for a leader partition for the earliest leader epoch of the current leader's leader epoch lineage available in the remote storage.: no recorded uncertainty or experimentation.
  • KAFKA-7374 ↗ Tiered Storage: no recorded uncertainty or experimentation.
HMRC asks Partly answered

6. Can every figure and date in the claim be traced to a record made at the time, inside the claim period?

HMRC checks that numbers and dates come from records, and that the work claimed falls inside the accounting period.

In short: 7 quotes dated inside the claim period, 18 outside it, 9 undated; 20 items the checker refused. 9 things to ask the engineer.

7 inside the claim period18 outside it9 undated
The records show statements with figures, each traced to its source (5)

Kafka was typically configured with shorter retention periods of around 3 days, with older data copied to external storage like HDFS using data pipelines.

Evidence: 1 dated quote from the records
D1-p6 ↗ · undated “Currently, Kafka is configured with a shorter retention period in days (typically 3 days) and data older than the retention period is copied using data pipelines to a more scalable external storage for long-term use, such as HDFS.”

Kafka brokers typically had large numbers of disks with total storage capacity of 10s of TBs, and cluster storage was scaled by adding more broker nodes.

Evidence: 2 dated quotes from the records
D1-p4 ↗ · undated “A Kafka broker typically has a large number of disks with a total storage capacity of 10s of TBs.”
D1-p7 ↗ · undated “Kafka cluster storage is typically scaled by adding more broker nodes to the cluster.”

2019-10-19: Initial draft implementation of KIP-405 with initial set of changes for plugging in RemoteStorageManager → Draft pull request created for review partial

Evidence: 1 dated quote from the records
KAFKA-7739#c1 ↗ · 2019-10-19 · outside the claim period “[WIP] This is the initial **draft** version of the KIP-405. It includes the initial set of changes required for plugging in a RemoteStorageManager. We will update the KIP and this PR in the next few days with more details.”

2022-12-19: Add support for transactions in tiered storage → Fixed with pull request 11390 succeeded

Evidence: 2 dated quotes from the records
KAFKA-9990 ↗ · 2020-05-13 · outside the claim period “Supporting transactions in tiered storage”
KAFKA-9990#c4 ↗ · 2022-12-19 · outside the claim period “This is fixed with https://github.com/apache/kafka/pull/11390”

Date not recorded: Complete implementation of tiered storage epic with all major components → Epic resolved and included in v3.6.0 as early access feature succeeded

Evidence: 2 dated quotes from the records
KAFKA-7739#c29 ↗ · 2023-09-15 “This epic is created on Dec. 14, 2018 and is finally resolved now (Sept. 14, 2023)! What a great job for all the contributors to this tiered storage epic!”
KAFKA-7739#c31 ↗ · 2023-09-15 “This will be included in v3.6.0, and be considered as an early access feature. It's not recommended to run in the production environment.”
What the checker refused (20): the AI proposed these, but code found they didn't match the records exactly
  • Summary D1-p12: quote length outside 3 to 40 words
  • Baseline D1-p8: quote length outside 3 to 40 words
  • Baseline D1-p11: quote length outside 3 to 40 words
  • Advance_sought D1-p13: quote length outside 3 to 40 words
  • Uncertainty D1-p28: quote length outside 3 to 40 words
  • Uncertainty D1-p29: number(s) 3 not in the cited quotes
  • Uncertainty KAFKA-15414#c5: quote length outside 3 to 40 words
  • Uncertainty : resolved date does not match any cited record; cleared
  • Uncertainty KAFKA-14038: quote length outside 3 to 40 words
  • Uncertainty KAFKA-14038: quote length outside 3 to 40 words
  • Uncertainty KAFKA-15181: quote length outside 3 to 40 words
  • Uncertainty : arose date does not match any cited record; cleared
  • Uncertainty KAFKA-15414: quote length outside 3 to 40 words
  • Uncertainty : arose date does not match any cited record; cleared
  • Attempt KAFKA-9549: quote length outside 3 to 40 words
  • Attempt KAFKA-9549#c1: quote length outside 3 to 40 words
  • Attempt KAFKA-12429: quote length outside 3 to 40 words
  • Attempt KAFKA-15427#c1: quote length outside 3 to 40 words
  • Attempt KAFKA-15427: number(s) 14319 not in the cited quotes
  • Attempt : date date does not match any cited record; cleared
Ask the engineer 9 questions, where the records are silent or disagree

KAFKA-14038 describes retention calculation as O(num_remote_segments) and expensive, but no resolution date is shown and status is unresolved, while KAFKA-14038#c3 shows it was removed from 3.5.0 release

Ask: Was the O(n) retention calculation performance issue resolved, and if so, when and how? The ticket shows no resolution but was removed from release 3.5.0.

D1-p33 through D1-p68 show detailed performance test results with specific numbers, but these appear to be from an earlier prototype rather than the final implementation in the claim period

Ask: Were the performance tests described in the KIP document conducted during 2023, or were these from earlier prototype work? If earlier, what performance validation was done for the 2023 implementation?

baseline: "Broker recovery and rebalancing time was proportional to the amount of data stored locally, requiring copying all data from failed or rebalanced brokers." could not be tied to a record.

Ask: Is there a ticket, comment or document that shows this? If so, add it and re-run.

baseline: "Kafka data was mostly consumed in streaming fashion using tail reads that leveraged OS page cache, while older data was read from disk infrequently for backfill or failure recovery." could not be tied to a record.

Ask: Is there a ticket, comment or document that shows this? If so, add it and re-run.

advance_sought: "Reduce broker recovery and rebalancing time by minimizing the amount of data stored locally that needs to be copied during these operations." could not be tied to a record.

Ask: Is there a ticket, comment or document that shows this? If so, add it and re-run.

uncertainty: "How to maintain strongly consistent metadata for remote log segments when remote storage systems like S3 do not provide strong consistency guarantees for metadata operations." states 3, which the cited records do not show.

Ask: What figure did the records actually show here?

uncertainty: "How to optimize calculation of total remote log size for retention by size without iterating through all remote segment metadata on each execution." could not be tied to a record.

Ask: Is there a ticket, comment or document that shows this? If so, add it and re-run.

attempt: "Implement local storage implementations for RSM for use in tests Pull request created for file-system based RemoteStorageManager implementation" could not be tied to a record.

Ask: Is there a ticket, comment or document that shows this? If so, add it and re-run.

attempt: "Fix resource leaks detected in tiered storage integration tests by addressing thread cleanup issues Pull request 14319 merged to fix resource leaks" states 14319, which the cited records do not show.

Ask: What figure did the records actually show here?

Where these records come from, how we used them, and the legal notice

Real records, publicly available. This example uses the public engineering records of Apache Kafka, an open-source software project: the Tiered Storage tickets on Apache's public Jira and its design document, KIP-405, version 370 (17 September 2023), on Apache's public wiki. Anyone can read them.

Why we use them. So you can judge ClaimEvidence on real, messy records written by real engineers who never had HMRC in mind, without sharing any client's data, and check every quote against the original yourself.

How we use them. We ran the same engine our customers use, once, on the records as published. People's names are replaced with labels (Contributor A, Contributor B…), Jira formatting and code blocks are removed, tables are written out row by row, and only the design document's sections that carry R&D evidence are included. Otherwise the text is word for word. The content is used under the Apache License 2.0. The claim period is illustrative: the project is open source and no R&D claim is suggested or implied.

Not an endorsement. ClaimEvidence is not affiliated with, sponsored by or endorsed by the Apache Software Foundation or the Apache Kafka project. Apache, Apache Kafka and Kafka are trademarks of the Apache Software Foundation, named here only to identify the source. Full details: public records notice.