Skip to content

Commit

Permalink
chore: release version 0.7.0 (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Keran Yang <[email protected]>
Co-authored-by: Keran Yang <[email protected]>
  • Loading branch information
yhl25 and KeranYang authored Mar 26, 2024
1 parent 3dae164 commit 9ae5641
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>io.numaproj.numaflow</groupId>
<artifactId>numaflow-java</artifactId>
<version>0.6.0</version>
<version>0.7.0</version>
</dependency>
```

Expand All @@ -35,7 +35,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "io.numaproj.numaflow:numaflow-java:0.6.0"
compile "io.numaproj.numaflow:numaflow-java:0.7.0"
```

```
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>io.numaproj.numaflow</groupId>
<artifactId>numaflow-java</artifactId>
<version>0.6.0</version>
<version>0.7.0</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import io.numaproj.numaflow.sourcer.Sourcer;

import java.time.Instant;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

/**
Expand Down Expand Up @@ -41,12 +43,17 @@ public void read(ReadRequest request, OutputObserver observer) {
if (System.currentTimeMillis() - startTime > request.getTimeout().toMillis()) {
return;
}

Map<String, String> headers = new HashMap<>();
headers.put("x-txn-id", UUID.randomUUID().toString());

// create a message with increasing offset
Offset offset = new Offset(Longs.toByteArray(readIndex));
Message message = new Message(
Long.toString(readIndex).getBytes(),
offset,
Instant.now());
Instant.now(),
headers);
// send the message to the observer
observer.send(message);
// keep track of the messages read and not acknowledged
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.numaproj.numaflow</groupId>
<artifactId>numaflow-java</artifactId>
<version>0.6.0</version>
<version>0.7.0</version>
<packaging>jar</packaging>

<name>numaflow-java</name>
Expand All @@ -24,7 +24,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<protobuf.version>3.21.8</protobuf.version>
<grpc.version>1.59.0</grpc.version>
<netty.version>4.1.100.Final</netty.version> <!-- match version grpc-netty depends on -->
<netty.version>4.1.108.Final</netty.version> <!-- match version grpc-netty depends on -->
<akka.version>2.8.1</akka.version>
<slf4j.version>2.0.7</slf4j.version>
</properties>
Expand Down

0 comments on commit 9ae5641

Please sign in to comment.