diff --git a/.github/scripts/publish.sh b/.github/scripts/publish.sh index 50d37b72..82c03498 100644 --- a/.github/scripts/publish.sh +++ b/.github/scripts/publish.sh @@ -12,19 +12,23 @@ MAJOR=$(cat $VERSION_FILE | grep Major | grep -Eo '[0-9]*'); MINOR=$(cat $VERSION_FILE | grep Minor | grep -Eo '[0-9]*'); PATCH=$(cat $VERSION_FILE | grep Patch | grep -Eo '[0-9]*'); -LAST_TAG="v$MAJOR.$MINOR.$PATCH"; -if [ "$VERSION_CHANGE" = "MINOR" ] +LAST_TAG=$(git tag | tail -n 1); +RC=0; +if [ "$RELEASE_CANDIDATE" = true ] +then + RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true); +fi +if [ "$VERSION_CHANGE" = "MINOR" ] && [ $RC = 0 ] then MINOR=$((MINOR+1)); PATCH=0; fi; -if [ "$VERSION_CHANGE" = "PATCH" ] +if [ "$VERSION_CHANGE" = "PATCH" ] && [ $RC = 0 ] then PATCH=$((PATCH+1)); fi; if [ "$RELEASE_CANDIDATE" = true ] then - RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l || true); VERSION="$MAJOR.$MINOR.$PATCH-rc$RC"; else sed -e "s/Minor = [0-9]*/Minor = $MINOR/g" -i $VERSION_FILE diff --git a/CHANGELOG.md b/CHANGELOG.md index 9234adf2..0b7d0d6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,22 @@ -- Topic Writer updated release candidate +- Topic Writer updated release candidate: + * Do not send messages that have a timeout by cancelToken. + * If your value serializer throws an exception, this will be wrapped in a WriterException with unspecified status. + * Added BufferOverflowRetryTimeoutMs to the next try write. + * Rename _disposeTokenSource -> _disposeCts. + * Optimize write worker: if (_toSendBuffer.IsEmpty) continue. + * On RPC errors create DummyWriterSession. + * Message has been skipped because its sequence number is less than or equal to the last processed server's SeqNo. + * Calculate the next sequence number from the calculated previous messages. ## v0.9.0-rc0 -- Topic Writer release candidate +- Topic Writer release candidate: + * Updated CAS semantics for enqueuing in the buffer. + * Processed buffer overflow on WriteAsync. + * Setting NotStartedWriterSession with a fail reason on RPC and more errors. + * New initialization strategy for WriterSession (background task). + * Supported cancellation token for sending tasks. + * Fixed setting the SeqNo field in the message (in-flight buffer already has a seqNo) and added a check on canceled TCS. + * Using BitConverter for Serializer / Deserializer. - Fixed: grpc requests go via proxy on Grpc.NET.Client >= 2.44 ## v0.8.0