[accumulo] branch main updated (ed5e188a92 -> cdc957f222)

2022-05-17 Thread ctubbsii
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


from ed5e188a92 Update documentation with purpose of the "cache" (#2714)
 add c55821213f General improvements to CI (#2715)
 new cdc957f222 Merge branch '1.10'

The 1 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:



[accumulo] 01/01: Merge branch '1.10'

2022-05-17 Thread ctubbsii
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git

commit cdc957f222849a110d395addcfb0303109257096
Merge: ed5e188a92 c55821213f
Author: Christopher Tubbs 
AuthorDate: Tue May 17 17:10:02 2022 -0400

Merge branch '1.10'




[accumulo] branch main updated: Update documentation with purpose of the "cache" (#2714)

2022-05-17 Thread edcoleman
This is an automated email from the ASF dual-hosted git repository.

edcoleman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
 new ed5e188a92 Update documentation with purpose of the "cache" (#2714)
ed5e188a92 is described below

commit ed5e188a92bcd8d0be191b2d1a2380b72b2c998b
Author: EdColeman 
AuthorDate: Tue May 17 16:58:03 2022 -0400

Update documentation with purpose of the "cache" (#2714)

* Update documentation with purpose of the "cache"

- Remove the TODO with an explanation that the class supports legacy
clients.

* Update 
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java

Co-authored-by: Christopher Tubbs 

* Fix formatting

Co-authored-by: Ed Coleman etcoleman 
Co-authored-by: Christopher Tubbs 
---
 .../java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java   | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java 
b/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java
index 76bb3f09c8..c2957b9b32 100644
--- a/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java
+++ b/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java
@@ -26,9 +26,14 @@ import org.apache.accumulo.core.singletons.SingletonService;
 
 /**
  * A factory for {@link ZooCache} instances.
+ * 
+ * Implementation note: We are using the instances map to track all the 
instances that have been
+ * created, so we can explicitly close them when the last legacy client has 
gone away. This is part
+ * of the "SingletonManager" code, and it is likely that ZooCacheFactory and 
ZooKeeperInstance can
+ * be removed when legacy client code support is no longer required.
  */
 public class ZooCacheFactory {
-  // TODO: make this better - LRU, soft references, ...
+
   private static Map instances = new HashMap<>();
   private static boolean enabled = true;
 



[accumulo] branch 1.10 updated: General improvements to CI (#2715)

2022-05-17 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch 1.10
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.10 by this push:
 new c55821213f General improvements to CI (#2715)
c55821213f is described below

commit c55821213f202f5b131f4475c3d4a755942ac8d6
Author: Mike Miller 
AuthorDate: Tue May 17 19:26:00 2022 +

General improvements to CI (#2715)
---
 assemble/src/main/assemblies/component.xml  |  3 ---
 test/system/continuous/README.md| 21 +++--
 ...{batch_walkers.txt.example => batch_walkers.txt} |  0
 ...{continuous-env.sh.example => continuous-env.sh} | 17 ++---
 .../{ingesters.txt.example => ingesters.txt}|  0
 .../{scanners.txt.example => scanners.txt}  |  0
 .../continuous/{walkers.txt.example => walkers.txt} |  0
 7 files changed, 25 insertions(+), 16 deletions(-)

diff --git a/assemble/src/main/assemblies/component.xml 
b/assemble/src/main/assemblies/component.xml
index 3df09db612..b1522eb467 100644
--- a/assemble/src/main/assemblies/component.xml
+++ b/assemble/src/main/assemblies/component.xml
@@ -181,7 +181,6 @@
   
 src/**
 target/**
-**/continuous-env.sh
   
 
 
@@ -198,8 +197,6 @@
 **/*.pl
 **/*.pyc
 **/*.pyo
-**/walkers.txt
-**/ingesters.txt
 **/randomwalk/conf/logger.xml
 **/randomwalk/conf/randomwalk.conf
 **/randomwalk/conf/walkers
diff --git a/test/system/continuous/README.md b/test/system/continuous/README.md
index 31ee4bdafa..412ef62c62 100644
--- a/test/system/continuous/README.md
+++ b/test/system/continuous/README.md
@@ -21,14 +21,23 @@ Continuous Query and Ingest
 This directory contains a suite of scripts for placing continuous query and
 ingest load on accumulo.  The purpose of these script is two-fold. First,
 place continuous load on accumulo to see if breaks.  Second, collect
-statistics in order to understand how accumulo behaves.  To run these scripts
-copy all of the `.example` files and modify them.  You can put these scripts in
-the current directory or define a `CONTINUOUS_CONF_DIR` where the files will be
+statistics in order to understand how accumulo behaves.  To run these scripts:
+
+1) Modify the `*.txt` config files.
+2) Enter cluster values in `continuous-env.sh`
+
+You can put these scripts in the current directory or define a 
`CONTINUOUS_CONF_DIR` where the files will be
 read from. These scripts rely on `pssh`. Before running any script you may need
 to use `pssh` to create the log directory on each machine (if you want it 
local).
-Also, create the table "ci" before running. You can run
-`org.apache.accumulo.test.continuous.GenSplits` to generate splits points for a
-continuous ingest table.
+
+First, create the table "ci" before running:
+
+> accumulo shell -e "createtable ci" -u root
+
+Optional: generate split points for CI table:
+
+> $ accumulo org.apache.accumulo.test.continuous.GenSplits 20 > /tmp/splits
+> $ accumulo shell -e "addsplits -t ci -sf /tmp/splits" -u root
 
 The following ingest scripts insert data into accumulo that will form a random
 graph.
diff --git a/test/system/continuous/batch_walkers.txt.example 
b/test/system/continuous/batch_walkers.txt
similarity index 100%
rename from test/system/continuous/batch_walkers.txt.example
rename to test/system/continuous/batch_walkers.txt
diff --git a/test/system/continuous/continuous-env.sh.example 
b/test/system/continuous/continuous-env.sh
similarity index 97%
rename from test/system/continuous/continuous-env.sh.example
rename to test/system/continuous/continuous-env.sh
index 10cea328bc..4527a59f95 100644
--- a/test/system/continuous/continuous-env.sh.example
+++ b/test/system/continuous/continuous-env.sh
@@ -13,7 +13,12 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# set this to an absolute path that exist on every machine
+# modify these values to match cluster setup
+INSTANCE_NAME=instance
+ZOO_KEEPERS=localhost:2181
+USER=user
+PASS=pass
+
 # Inherit values from environment if they are already set.
 HADOOP_HOME=${HADOOP_HOME:-/opt/hadoop}
 HADOOP_PREFIX=${HADOOP_PREFIX:-$HADOOP_HOME}
@@ -22,14 +27,9 @@ ACCUMULO_CONF_DIR=${ACCUMULO_CONF_DIR:-$ACCUMULO_HOME/conf}
 JAVA_HOME=${JAVA_HOME:-/opt/java}
 ZOOKEEPER_HOME=${ZOOKEEPER_HOME:-/opt/zookeeper}
 
-CONTINUOUS_LOG_DIR=$ACCUMULO_HOME/test/system/continuous/logs
-INSTANCE_NAME=instance
-ZOO_KEEPERS=zhost1,zhost2
+# users
 ACCUMULO_USER=$(whoami)
 HDFS_USER=$(whoami)
-USER=user
-PASS=pass
-TABLE=ci
 
 #set debug to on to enable logging of accumulo client debugging
 DEBUG_INGEST=off
@@ -137,3 +137,6 @@ BULK_MAP_TASKS=10
 # number of key value pairs to generate per mapper
 BULK_MAP_NODES=1
 
+# other static values
+TABLE=ci

[accumulo] branch main updated (250fdaa0a9 -> e52df66b94)

2022-05-17 Thread dlmarion
This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


from 250fdaa0a9 Bump libthrift to 0.16.0 (#2706)
 add e52df66b94 Resolve todo by removing unused 
MajorCompactionRequest.openReader method (#2710)

No new revisions were added by this update.

Summary of changes:
 .../tserver/compaction/MajorCompactionRequest.java | 16 
 .../compaction/DefaultCompactionStrategyTest.java  | 93 --
 2 files changed, 109 deletions(-)