Project: springxd
Issue XD-717: cat command doesn't work when same data is listed in file multiple times
$ ./xd-admin --transport redis $ ./xd-container --transport redis $ ./xd-container --transport redis xd:>stream create --name httpStream --definition "http | file" Created new stream 'httpStream' xd:>tap create --name httpTap --definition "tap httpStream | counter" Created and deployed new tap 'httpTap' xd:>http post --target http://localhost:9000 --data "helloworld" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld xd:>http post --target http://localhost:9000 --data "helloworld" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld xd:>http post --target http://localhost:9000 --data "helloworld2" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld2 > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 xd:>http post --target http://localhost:9000 --data "helloworld3" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld3 > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 helloworld3 xd:>http post --target http://localhost:9000 --data "helloworld3" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld3 > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 helloworld3 xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 helloworld3 xd:>http post --target http://localhost:9000 --data "helloworld3" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld3 > 200 OK xd:>http post --target http://localhost:9000 --data "helloworld3" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld3 > 200 OK xd:>http post --target http://localhost:9000 --data "helloworld3" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld3 > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 helloworld3 xd:>http post --target http://localhost:9000 --data "helloworld4" > POST (text/plain;Charset=UTF-8) http://localhost:9000 helloworld4 > 200 OK xd:>! cat /tmp/xd/output/httpStream.out command is:cat /tmp/xd/output/httpStream.out helloworld helloworld2 helloworld3 helloworld4 xd:>counter display --name httpTap 9 xd:> however in the regular shell. $ cat /tmp/xd/output/httpStream.out helloworld helloworld helloworld2 helloworld3 helloworld3 helloworld3 helloworld3 helloworld3 helloworld4
Story points: 2