pravega / pravega-benchmark

Performance benchmark tool for Pravega
Apache License 2.0
8 stars 22 forks source link

Option -recreate is not working. #51

Closed dandaoatdell closed 4 years ago

dandaoatdell commented 5 years ago

The 'recreate' option doesn't seem to work. To reproduce, create a stream 'my-stream' with some special setting. Examine the stream and not the setting. Execute the following command: /opt/pravega-benchmark/bin/pravega-benchmark -controller tcp://:9090 -stream my-stream -segments 1 -producers 1 -size 10 -recreate false -time 60 Examine the stream again, the setting is disappeared.

Raghuveera-Rao commented 4 years ago

Is this issue fixed ?

RaulGracia commented 4 years ago

@Raghuveera-Rao will check it.

RaulGracia commented 4 years ago

@dandaoatdell I have checked the -recreate option and it behaves as expected. This is the procedure I have used to verify it:

1) If we use -recreate True, we expect to have a new stream, which means that readers should not read any data from a previous execution on a Stream with the same name:

Experiment writing and reading 10 events from a Stream called my-stream

Observations:

2) If we use -recreate False, we expect to have the same Stream, which means that readers should read on each experiment an increasing number of events:

Observations:

3) Maybe, what you @dandaoatdell have seen is the following: setting -recreate False and change the number of segments across executions. In this case, the Benchmark "scales" the Stream to start the workload with the desired number of Segments. This is an update of the Strem, not a recreation:

Observations:

With these tests, I think that the - recreate option for Streams is working fine.

Raghuveera-Rao commented 4 years ago

Thanks @RaulGracia for the detailed explanation....