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

FkProducer.java:12: Fake Producer implementation #44

Closed
0pdd opened this issue Feb 24, 2023 · 7 comments · Fixed by #291
Closed

FkProducer.java:12: Fake Producer implementation #44

0pdd opened this issue Feb 24, 2023 · 7 comments · Fixed by #291
Assignees
Labels
bug Something isn't working feature New feature to implement pdd

Comments

@0pdd
Copy link
Collaborator

0pdd commented Feb 24, 2023

The puzzle 10-404e50f4 from #10 has to be resolved:

* @todo #10:45m/DEV Fake Producer implementation

The puzzle was created by @h1alexbel on 24-Feb-23.

Estimate: 45 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@0pdd 0pdd added bug Something isn't working pdd labels Feb 24, 2023
@0pdd 0pdd mentioned this issue Feb 24, 2023
@h1alexbel
Copy link
Member

The fake producer can be built using an in-memory XML sheet.

<?xml version="1.0" encoding="UTF-8"?>
<log>
  <metadata>
    <id>1</id>
    <keySerializer>org.apache.kafka.common.serialization.StringSerializer</keySerializer>
    <valueSerialzier>org.apache.kafka.common.serialization.StringSerializer</valueSerialzier>
  </metadata>
  <chunks>
    <chunk>
      <id>1</id>
      <data>
        <topic>name</topic>
        <partition>1</partition>
        <key>key-0</key>
      </data>
    </chunk>
    <chunk>
      <id>2</id>
      <data>
        <topic>name2</topic>
        <partition>3</partition>
        <key>key-1</key>
      </data>
    </chunk>
  </chunks>
</log>

On each send method execution new chunk will be added. But where to store this file with initial values? So far, I don't know

@h1alexbel h1alexbel self-assigned this Mar 1, 2023
@h1alexbel
Copy link
Member

h1alexbel commented Mar 1, 2023

@h1alexbel h1alexbel added the feature New feature to implement label Mar 1, 2023
@h1alexbel h1alexbel removed their assignment Mar 1, 2023
@h1alexbel h1alexbel self-assigned this Mar 10, 2023
h1alexbel added a commit that referenced this issue May 4, 2023
@h1alexbel h1alexbel linked a pull request May 4, 2023 that will close this issue
@0pdd
Copy link
Collaborator Author

0pdd commented May 4, 2023

@0pdd 2 puzzles #292, #293 are still not solved.

@0pdd
Copy link
Collaborator Author

0pdd commented Jun 12, 2023

@0pdd 3 puzzles #292, #293, #364 are still not solved.

@0pdd
Copy link
Collaborator Author

0pdd commented Jun 13, 2023

@0pdd 2 puzzles #292, #293 are still not solved; solved: #364.

@0pdd
Copy link
Collaborator Author

0pdd commented Jun 14, 2023

@0pdd the puzzle #373 is still not solved; solved: #292, #293, #364.

@0pdd
Copy link
Collaborator Author

0pdd commented Jun 15, 2023

@0pdd all 4 puzzles are solved here: #292, #293, #364, #373.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature to implement pdd
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants