Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Fix #6 - Allow early ending table/createReadStream - #18

Merged
stephenplusplus merged 3 commits into
googleapis:masterfrom
jiren:master
Dec 13, 2017
Merged

stephenplusplus merged 3 commits into
googleapis:masterfrom
jiren:master

Conversation

@jiren

@jiren jiren commented Dec 11, 2017 •

Copy link
Copy Markdown
Contributor

Fixed data transformation stream to stop processing data on end event
Still, need to fix GRPC stream closing.

Fixes #6

  • Tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixed data transformation stream to stop processing data on `end` event
Still, need to fix GRPC stream closing.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 11, 2017
@jiren

jiren commented Dec 11, 2017

Copy link
Copy Markdown
Contributor Author

To fix GRPC stream ending need to call abort function on retryRequest stream.

File Ref: common-grpc/src/service.js:L398

@sduskis

sduskis commented Dec 11, 2017

Copy link
Copy Markdown
Contributor

This should fix issue #6

@sduskis

sduskis commented Dec 11, 2017

Copy link
Copy Markdown
Contributor

This looks good to me. @stephenplusplus, what do you think?

@stephenplusplus

Copy link
Copy Markdown
Contributor

I think work is still pending on the PR, judging from the comment and this line in the initial post:

Still, need to fix GRPC stream closing.

@jiren

jiren commented Dec 12, 2017

Copy link
Copy Markdown
Contributor Author

GRPC stream ending need to fix in common-grpc/src/service.js:L398. I will create pull request in common-grpc repo.

Comment thread system-test/bigtable.js Outdated
it('should end stream early', function(done) {
var rows = [];

TABLE.createReadStream()

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus

Copy link
Copy Markdown
Contributor

Sorry, I misunderstood. The fix looks good, but I left one edit request for the test.

@codecov-io

codecov-io commented Dec 13, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #18 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #18   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           8      8           
  Lines         811    814    +3     
=====================================
+ Hits          811    814    +3
Impacted Files Coverage Δ
src/table.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4770e6...8afe9ce. Read the comment docs.

@stephenplusplus
stephenplusplus merged commit bfe42dd into googleapis:master Dec 13, 2017
@stephenplusplus

Copy link
Copy Markdown
Contributor

Thanks!

@ghost ghost removed the cla: yes This human has signed the Contributor License Agreement. label Dec 13, 2017
@stephenplusplus stephenplusplus mentioned this pull request Dec 28, 2017
kboroszko added a commit to kboroszko/nodejs-bigtable that referenced this pull request Jun 5, 2025
* all in one

* removed not related changes

* fix not exported func

* linter

* pr fixes

* renamed stuff

* pr fixes

* pr fixes 2

* pr fixes 3 and linter

* fix ci

* pr fixes 4

* pr fixes 5

* added error clause in protobufreadertransformer

* added _final on bufferTransformer

* tests for _flush
kboroszko added a commit to Unoperate/nodejs-bigtable-fork that referenced this pull request Jun 5, 2025
* all in one

* removed not related changes

* fix not exported func

* linter

* pr fixes

* renamed stuff

* pr fixes

* pr fixes 2

* pr fixes 3 and linter

* fix ci

* pr fixes 4

* pr fixes 5

* added error clause in protobufreadertransformer

* added _final on bufferTransformer

* tests for _flush

feat: add prepareQuery functionality (googleapis#21)

* prepareQuery implementation with state machine

protos

src

src2

state machine

first test

state machine tested

added almost all tests

tests done

updated protos

fixed tests

changes to byteBuffer

checksum calculation

cleanup

rm old code

organized imports

docstrings

* update protos related files

* some fixes
fixed expired plan error matching
fix create caller stream
fix protobufreadertransformer not clearing buffer

* linter

* pr fixes

* linter

* pr fixes 2

* remove obsolete comment

* extra test for stateMachine

reset the generated code to the current main version

linter update

update testproxy proto

testproxy support executeQuery

testproxy lint

linter

testproxy fixes

deadlines fix

don't set proto format

fix tests

fix thrown error in executeQueryStateMachine

system-test

pr fixes 1

map can contain nulls

system test working

linter

align tests after updating protos

renamed prepareQuery to prepareStatement

linter

rest of rename

fixes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bigtable this.end() does not stop the stream?

5 participants