Skip to content

stream output should be gotten before writers are disposed #107

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

Closed
wants to merge 1 commit into from

Conversation

smitcham
Copy link
Contributor

I've checked my local commits to ensure that they have the right email on the commit.

@cb-sdk-robot
Copy link

Thanks for the pull request!! To ensure quality review, Couchbase employs a code review system based on Gerrit to manage the workflow of changes in addition to tracking our contributor agreements.

To get this change in and collaborate in code review, please register on Gerrit and accept our CLA. The easiest way to do this is to follow the link below, sign in with your GitHub account and then follow through the steps provided on that page to sign an 'Individual' agreement: http://review.couchbase.org/#/settings/new-agreement.

Keep in mind that the emails we are seeing on the commits are: sm****am@gma***com

Note: Please contact us if you have any issues registering with Gerrit! If you have not signed our CLA within 7 days, the Pull Request will be automatically closed.

::SDKBOT/PR:no_cla

@smitcham
Copy link
Contributor Author

looks like it has the right email this time.

@cb-sdk-robot
Copy link

Thanks for the pull request!! To ensure quality review, Couchbase employs a code review system based on Gerrit to manage the workflow of changes in addition to tracking our contributor agreements.

To get this change in and collaborate in code review, please register on Gerrit and accept our CLA. The easiest way to do this is to follow the link below, sign in with your GitHub account and then follow through the steps provided on that page to sign an 'Individual' agreement: http://review.couchbase.org/#/settings/new-agreement.

Keep in mind that the emails we are seeing on the commits are: sm****am@gma***com

Note: Please contact us if you have any issues registering with Gerrit! If you have not signed our CLA within 7 days, the Pull Request will be automatically closed.

::SDKBOT/PR:no_cla

@jeffrymorris
Copy link
Contributor

jeffrymorris commented Jul 15, 2020

@smitcham - yeah, email looks right, but I don't see the commit yet in Gerrit. Try doing this:

  1. Login to Gerrit
  2. Click your Avatar on the upper right and then "Settings"
  3. Select "Email Addresses" on the menu to your left and then add a new email (that matches sm****am@gma***com) using the "New Email Address" Textbox and click "Save"

Once you do this in Gerrit, it should come through.

-Jeff

@smitcham
Copy link
Contributor Author

updated. commenting to see if that triggers things.

@cb-sdk-robot
Copy link

Your changes (commit: e69f409) have been pushed to the Couchbase Review Site:
http://review.couchbase.org/132532

::SDKBOT/PR:created

@smitcham
Copy link
Contributor Author

review was created but isn't pointing to release27

@brantburnett
Copy link
Contributor

@smitcham Can I recommend one tweak to this? One of the advantages of disposing the StreamWriter before calling ToArray is that ensures that the writer and encoder are fully flushed to the stream: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Private.CoreLib/src/System/IO/StreamWriter.cs#L190. Instead of calling ToArray() before disposing, I'd recommend using the constructor overload on StreamWriter to pass leaveOpen as true. This way the dispose won't also dispose the underlying Stream, but the flush still occurs.

@jeffrymorris
Copy link
Contributor

@smitcham - SDKBOT pushes to the master branch on Gerrit by default. I pushed to release27 and abandoned the commit on master. Since your now setup on Gerrit, I suggest you just push to Gerrit directly from now on - just add Gerrit as a remote (git remote add gerrit ssh://[your username]@review.couchbase.org:29418/couchbase-net-client.git . Note on Gerrit, the workflow is:

  1. git add .
  2. git commit --amend
  3. git push gerrit HEAD:refs/for/release27

@brantburnett can you add your comment ^ to the review on gerrit?

@cb-sdk-robot
Copy link

This Pull Request has been closed as the associated Gerrit change was abandoned.

::SDKBOT/PR:abandoned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants