You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2020/06/30 22:58:50 UTC

[cassandra] branch trunk updated (3b8ed1e -> eebb9e0)

This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git.


    from 3b8ed1e  Fix a log message typo in StartupChecks
     new 9251b81  Fix cqlsh output when fetching all rows in batch mode
     new eebb9e0  Merge branch 'cassandra-3.11' into trunk

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGES.txt               |  1 +
 bin/cqlsh.py              | 42 ++++++++++++++++++++++++++----------------
 pylib/cqlshlib/tracing.py |  2 +-
 3 files changed, 28 insertions(+), 17 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


[cassandra] 01/01: Merge branch 'cassandra-3.11' into trunk

Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit eebb9e02cd10cde576bcf860417ec3d011c7c165
Merge: 3b8ed1e 9251b81
Author: Brandon Williams <br...@apache.org>
AuthorDate: Tue Jun 30 17:57:22 2020 -0500

    Merge branch 'cassandra-3.11' into trunk

 CHANGES.txt               |  1 +
 bin/cqlsh.py              | 42 ++++++++++++++++++++++++++----------------
 pylib/cqlshlib/tracing.py |  2 +-
 3 files changed, 28 insertions(+), 17 deletions(-)

diff --cc CHANGES.txt
index 1c30b58,d89d22b..8fafb7d
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,57 -1,8 +1,58 @@@
 -3.11.7
 +4.0-alpha5
 + * Prune expired messages less frequently in internode messaging (CASSANDRA-15700)
 + * Fix Ec2Snitch handling of legacy mode for dc names matching both formats, eg "us-west-2" (CASSANDRA-15878)
 + * Add support for server side DESCRIBE statements (CASSANDRA-14825)
 + * Fail startup if -Xmn is set when the G1 garbage collector is used (CASSANDRA-15839)
 + * generateSplits method replaced the generateRandomTokens for ReplicationAwareTokenAllocator. (CASSANDRA-15877)
 + * Several mbeans are not unregistered when dropping a keyspace and table (CASSANDRA-14888)
 + * Update defaults for server and client TLS settings (CASSANDRA-15262)
 + * Differentiate follower/initator in StreamMessageHeader (CASSANDRA-15665)
 + * Add a startup check to detect if LZ4 uses java rather than native implementation (CASSANDRA-15884)
 + * Fix missing topology events when running multiple nodes on the same network interface (CASSANDRA-15677)
 + * Create config.yml.MIDRES (CASSANDRA-15712)
 + * Fix handling of fully purged static rows in repaired data tracking (CASSANDRA-15848)
 + * Prevent validation request submission from blocking ANTI_ENTROPY stage (CASSANDRA-15812)
 + * Add fqltool and auditlogviewer to rpm and deb packages (CASSANDRA-14712)
 + * Include DROPPED_COLUMNS in schema digest computation (CASSANDRA-15843)
 + * Fix Cassandra restart from rpm install (CASSANDRA-15830)
 + * Improve handling of 2i initialization failures (CASSANDRA-13606)
 + * Add completion_ratio column to sstable_tasks virtual table (CASANDRA-15759)
 + * Add support for adding custom Verbs (CASSANDRA-15725)
 + * Speed up entire-file-streaming file containment check and allow entire-file-streaming for all compaction strategies (CASSANDRA-15657,CASSANDRA-15783)
 + * Provide ability to configure IAuditLogger (CASSANDRA-15748)
 + * Fix nodetool enablefullquerylog blocking param parsing (CASSANDRA-15819)
 + * Add isTransient to SSTableMetadataView (CASSANDRA-15806)
 + * Fix tools/bin/fqltool for all shells (CASSANDRA-15820)
 + * Fix clearing of legacy size_estimates (CASSANDRA-15776)
 + * Update port when reconnecting to pre-4.0 SSL storage (CASSANDRA-15727)
 + * Only calculate dynamicBadnessThreshold once per loop in DynamicEndpointSnitch (CASSANDRA-15798)
 + * Cleanup redundant nodetool commands added in 4.0 (CASSANDRA-15256)
 + * Update to Python driver 3.23 for cqlsh (CASSANDRA-15793)
 + * Add tunable initial size and growth factor to RangeTombstoneList (CASSANDRA-15763)
 + * Improve debug logging in SSTableReader for index summary (CASSANDRA-15755)
 + * bin/sstableverify should support user provided token ranges (CASSANDRA-15753)
 + * Improve logging when mutation passed to commit log is too large (CASSANDRA-14781)
 + * replace LZ4FastDecompressor with LZ4SafeDecompressor (CASSANDRA-15560)
 + * Fix buffer pool NPE with concurrent release due to in-progress tiny pool eviction (CASSANDRA-15726)
 + * Avoid race condition when completing stream sessions (CASSANDRA-15666)
 + * Flush with fast compressors by default (CASSANDRA-15379)
 + * Fix CqlInputFormat regression from the switch to system.size_estimates (CASSANDRA-15637)
 + * Allow sending Entire SSTables over SSL (CASSANDRA-15740)
 + * Fix CQLSH UTF-8 encoding issue for Python 2/3 compatibility (CASSANDRA-15739)
 + * Fix batch statement preparation when multiple tables and parameters are used (CASSANDRA-15730)
 + * Fix regression with traceOutgoingMessage printing message size (CASSANDRA-15687)
 + * Ensure repaired data tracking reads a consistent amount of data across replicas (CASSANDRA-15601)
 + * Fix CQLSH to avoid arguments being evaluated (CASSANDRA-15660)
 + * Correct Visibility and Improve Safety of Methods in LatencyMetrics (CASSANDRA-15597)
 + * Allow cqlsh to run with Python2.7/Python3.6+ (CASSANDRA-15659,CASSANDRA-15573)
 + * Improve logging around incremental repair (CASSANDRA-15599)
 + * Do not check cdc_raw_directory filesystem space if CDC disabled (CASSANDRA-15688)
 + * Replace array iterators with get by index (CASSANDRA-15394)
 + * Minimize BTree iterator allocations (CASSANDRA-15389)
 +Merged from 3.11:
+  * Fix cqlsh output when fetching all rows in batch mode (CASSANDRA-15905)
   * Upgrade Jackson to 2.9.10 (CASSANDRA-15867)
   * Fix CQL formatting of read command restrictions for slow query log (CASSANDRA-15503)
 - * Allow sstableloader to use SSL on the native port (CASSANDRA-14904)
  Merged from 3.0:
   * Add token to tombstone warning and error messages (CASSANDRA-15890)
   * Fixed range read concurrency factor computation and capped as 10 times tpc cores (CASSANDRA-15752)
diff --cc bin/cqlsh.py
index 3c250be,44d4d50..db13bb8
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@@ -1098,22 -1087,30 +1098,30 @@@ class Shell(cmd.Cmd)
          self.decoding_errors = []
  
          self.writeresult("")
-         if result.has_more_pages and self.tty:
+ 
+         def print_all(result, table_meta, tty):
+             # Return the number of rows in total
              num_rows = 0
+             isFirst = True
              while True:
-                 if result.current_rows:
+                 # Always print for the first page even it is empty
+                 if result.current_rows or isFirst:
                      num_rows += len(result.current_rows)
-                     self.print_static_result(result, table_meta)
+                     with_header = isFirst or tty
+                     self.print_static_result(result, table_meta, with_header, tty)
                  if result.has_more_pages:
-                     if self.shunted_query_out is None:
+                     if self.shunted_query_out is None and tty:
                          # Only pause when not capturing.
 -                        raw_input("---MORE---")
 +                        input("---MORE---")
                      result.fetch_next_page()
                  else:
+                     if not tty:
+                         self.writeresult("")
                      break
-         else:
-             num_rows = len(result.current_rows)
-             self.print_static_result(result, table_meta)
+                 isFirst = False
+             return num_rows
+ 
+         num_rows = print_all(result, table_meta, self.tty)
          self.writeresult("(%d rows)" % num_rows)
  
          if self.decoding_errors:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org