Duo Zhang
18ae733b15
HBASE-27806 Support dynamic reinitializing replication peer storage ( #5195 )
...
Signed-off-by: Liangjun He <heliangjun@apache.org>
2023-04-23 22:25:31 +08:00
Duo Zhang
31c4aea48c
HBASE-27728 Implement a tool to migrate replication peer data between different storage implementation ( #5179 )
...
Signed-off-by: Liangjun He <heliangjun@apache.org>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
2023-04-17 22:13:19 +08:00
Duo Zhang
a71105997f
HBASE-27727 Implement filesystem based Replication peer storage ( #5165 )
...
Signed-off-by: Liangjun He <heliangjun@apache.org>
2023-04-13 18:58:02 +08:00
Duo Zhang
9c8c9e7fbf
HBASE-26899 Run spotless:apply
...
Closes #4312
2022-05-01 22:15:09 +08:00
Andrew Purtell
10471944bd
HBASE-26582 Prune use of Random and SecureRandom objects ( #4118 )
...
Avoid the pattern where a Random object is allocated, used once or twice, and
then left for GC. This pattern triggers warnings from some static analysis tools
because this pattern leads to poor effective randomness. In a few cases we were
legitimately suffering from this issue; in others a change is still good to
reduce noise in analysis results.
Use ThreadLocalRandom where there is no requirement to set the seed to gain
good reuse.
Where useful relax use of SecureRandom to simply Random or ThreadLocalRandom,
which are unlikely to block if the system entropy pool is low, if we don't need
crypographically strong randomness for the use case. The exception to this is
normalization of use of Bytes#random to fill byte arrays with randomness.
Because Bytes#random may be used to generate key material it must be backed by
SecureRandom.
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2022-03-08 13:49:02 -08:00
Duo Zhang
fa37aed8f6
HBASE-26481 Consider rolling upgrading from old region replication framework ( #3880 )
...
Signed-off-by: Xin Sun <ddupgs@gmail.com>
Reviewed-by: GeorryHuang <huangzhuoyue@apache.org>
2021-12-31 12:29:48 +08:00
zhengzhuobinzzb
25fc701752
HBASE-26482 HMaster may clean wals that is replicating in rare cases ( #3876 )
...
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2021-11-24 23:35:54 +08:00
Duo Zhang
d30cc27097
HBASE-26081 Copy HBTU to hbase-testing-util, rename the HBTU related classes in hbase-server and mark them as IA.LimitedPrivate ( #3478 )
...
Signed-off-by: Michael Stack <stack@apache.org>
2021-07-19 09:29:08 +08:00
Duo Zhang
51893b9ba3
HBASE-26029 It is not reliable to use nodeDeleted event to track region server's death ( #3430 )
...
Signed-off-by: Xin Sun <ddupgs@gmail.com>
2021-06-30 08:44:19 +08:00
Duo Zhang
eb242be674
HBASE-25976 Implement a master based ReplicationTracker ( #3390 )
...
Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
2021-06-17 18:24:49 +08:00
XinSun
d6aff6cbae
HBASE-25553 It is better for ReplicationTracker.getListOfRegionServers to return ServerName instead of String ( #2928 )
...
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
2021-02-07 17:13:47 +08:00
Duo Zhang
55a4eca9e6
HBASE-25452 Use MatcherAssert.assertThat instead of org.junit.Assert.assertThat ( #2826 )
...
Signed-off-by: Guanghao Zhang <zghao@apache.org>
2020-12-30 09:47:56 +08:00
Sandeep Pal
f600856a3b
HBASE-25383: Ability to update and remove peer base config
...
Closes #2778
Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
Signed-off-by: Geoffrey Jacoby <gjacoby@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
2020-12-18 14:19:17 +05:30
Andrew Purtell
1726160839
HBASE-24640 Purge use of VisibleForTesting ( #2695 )
...
Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
2020-11-25 14:10:12 -08:00
Michael Stack
70a947dc6b
HBASE-25067 Edit of log messages around async WAL Replication; checkstyle fixes; and a bugfix ( #2435 )
...
Editing logging around region replicas: shortening and adding context.
Checkstyle fixes in edited files while I was in there.
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2020-09-22 10:10:31 -07:00
ankitjain64
9c5dbb29c0
HBASE-24764: Add support of adding default peer configs via hbase-site.xml for all replication peers. ( #2284 )
...
Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
2020-09-10 10:08:44 -07:00
Michael Stack
3e1cf00c71
HBASE-23993 Use loopback for zk standalone server in minizkcluster ( #1291 )
...
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
Have client and server use loopback instead of 'localhost'
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Jan Hentschel <janh@apache.org>
2020-03-17 20:26:06 -07:00
XinSun
27cfe1bb27
HBASE-23345 Table need to replication unless all of cfs are excluded ( #881 )
...
Signed-off-by: stack <stack@apache.org>
Signed-off-by: Guanghao Zhang <zghao@apache.org>
2019-12-03 13:35:23 +08:00
chenxu14
17468efb88
HBASE-23293 [REPLICATION] make ship edits timeout configurable ( #825 )
...
Signed-off-by: Guangxu Cheng <gxcheng@apache.org>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
2019-11-26 19:05:53 +08:00
Viraj Jasani
0c8dc5d97e
HBASE-22633 remove redundant substring call with append for ZKReplicationQueueStorage
...
Signed-off-by: Sakthi <sakthivel.azhaku@gmail.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
2019-06-28 15:02:30 +02:00
Jan Hentschel
5da5deb59d
HBASE-22344 Documented the deprecation of public and limited private APIs ( #208 )
...
Signed-off-by: stack <stack@apache.org>
2019-06-17 22:02:23 +02:00
Jan Hentschel
e8ef8ad42f
HBASE-22357 Fixed remaining Checkstyle issues in hbase-replication
2019-06-10 00:06:35 +02:00
Duo Zhang
c8574ba3c5
HBASE-21420 Use procedure event to wake up the SyncReplicationReplayWALProcedures which wait for worker
2018-11-05 21:43:18 +08:00
Xu Cang
42aa3dd463
HBASE-18549 Add metrics for failed replication queue recovery
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2018-10-01 18:38:55 -07:00
zhangduo
a84cdbd579
HBASE-20783 Addendum fix broken TestSyncReplicationStandBy
2018-06-28 18:08:43 +08:00
zhangduo
f67763ffa0
HBASE-20424 Allow writing WAL to local and remote cluster concurrently
2018-06-28 18:08:43 +08:00
zhangduo
2d203c4479
HBASE-20434 Also remove remote wals when peer is in DA state
2018-06-28 18:08:43 +08:00
zhangduo
d91784e666
HBASE-20370 Also remove the wal file in remote cluster when we finish replicating a file
2018-06-28 18:08:43 +08:00
Guanghao Zhang
c7d1085fa2
HBASE-19999 Remove the SYNC_REPLICATION_ENABLED flag
2018-06-28 18:07:44 +08:00
zhangduo
0c97cda2a9
HBASE-19990 Create remote wal directory when transitting to state S
2018-06-28 18:07:44 +08:00
zhangduo
a41c549ca4
HBASE-19082 Reject read/write from client but accept write from replication in state S
2018-06-28 18:07:44 +08:00
zhangduo
39dd81a7c6
HBASE-19957 General framework to transit sync replication state
2018-06-28 18:07:44 +08:00
Guanghao Zhang
1481bd9481
HBASE-19864 Use protobuf instead of enum.ordinal to store SyncReplicationState
...
Signed-off-by: zhangduo <zhangduo@apache.org>
2018-06-28 18:07:44 +08:00
zhangduo
d8842dc3d4
HBASE-19857 Complete the procedure for adding a sync replication peer
2018-06-28 18:07:44 +08:00
Guanghao Zhang
2acebac00e
HBASE-19781 Add a new cluster state flag for synchronous replication
2018-06-28 18:07:44 +08:00
Guanghao Zhang
57c8671728
HBASE-20678 NPE in ReplicationSourceManager#NodeFailoverWorker
2018-06-05 14:37:52 +08:00
maoling
1b98a96caa
HBASE-19761:Fix Checkstyle errors in hbase-zookeeper
...
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
2018-06-02 10:08:15 +02:00
huzheng
e9a278adc6
HBASE-20475 Fix the flaky TestReplicationDroppedTables unit test - addendum
2018-04-27 21:38:15 +08:00
Sean Busbey
914de11416
HBASE-20442 clean up incorrect use of commons-collections 3
...
Signed-off-by: Umesh Agashe <uagashe@cloudera.com>
Signed-off-by: Yu Li <liyu@apache.org>
2018-04-20 07:30:34 -05:00
BELUGA BEHR
d866e7c658
HBASE-19488 Move to using Apache commons CollectionUtils
...
Signed-off-by: Apekshit Sharma <appy@apache.org>
2018-04-04 14:12:19 -07:00
zhangduo
1e56938757
HBASE-20296 Remove last pushed sequence ids when removing tables from a peer
2018-04-01 21:14:31 +08:00
zhangduo
056c3395d9
HBASE-20285 Delete all last pushed sequence ids when removing a peer or removing the serial flag for a peer
2018-03-27 12:20:51 +08:00
huzheng
7a1d00c7a0
HBASE-20138 Find a way to deal with the conflicts when updating replication position
2018-03-26 21:07:22 +08:00
tianjingyun
e468b4022f
HBASE-20227 Add UT for ReplicationUtils.contains method
...
Signed-off-by: zhangduo <zhangduo@apache.org>
2018-03-24 22:12:52 +08:00
zhangduo
64061f896f
HBASE-20147 Serial replication will be stuck if we create a table with serial replication but add it to a peer after there are region moves
2018-03-23 14:31:20 +08:00
zhangduo
f346a144b9
HBASE-20116 addendum fix javadoc and also a simple optimization
2018-03-22 21:01:45 +08:00
huzheng
8ab7b20f48
HBASE-20116 Optimize the region last pushed sequence id layout on zk
2018-03-21 14:24:55 +08:00
zhangduo
67f013430c
HBASE-20206 WALEntryStream should not switch WAL file silently
2018-03-19 11:40:11 +08:00
zhangduo
00095a2ef9
Revert "HBASE-19665 Add table based replication peers/queues storage back"
...
This reverts commit 31978c31bb
.
Conflicts:
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/TableReplicationStorageBase.java
2018-03-17 20:25:27 +08:00
Michael Stack
bedf849d83
HBASE-20213 [LOGGING] Aligning formatting and logging less (compactions,
...
in-memory compactions)
Log less. Log using same format as used elsewhere in log.
Align logs in HFileArchiver with how we format elsewhere. Removed
redundant 'region' qualifiers, tried to tighten up the emissions so
easier to read the long lines.
M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ChunkCreator.java
Add a label for each of the chunkcreators we make (I was confused by
two chunk creater stats emissions in log file -- didn't know that one
was for data and the other index).
M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplit.java
Formatting. Log less.
M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreCompactionStrategy.java
Make the emissions in here trace-level. When more than a few regions,
log is filled with this stuff.
2018-03-16 13:16:49 -07:00