Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index wal edits should be written to the wal associated to index region instead main region wal #27

Open
chrajeshbabu opened this issue Sep 13, 2013 · 2 comments

Comments

@chrajeshbabu
Copy link
Member

  Long time = indexWALEdit.getKeyValues().get(0).getTimestamp();
  ctx.getEnvironment()
      .getWAL()
      .appendNoSync(indexRegion.getRegionInfo(), Bytes.toBytes(indexTableName), indexWALEdit,
        logKey.getClusterId(), time, indexRegion.getTableDesc());
@chrajeshbabu
Copy link
Member Author

Presently there is no problem. later if we support multi-WAL feature it will help.
Its minor only..

@anoopsjohn
Copy link

How I would like to see this in future when multi WAL comes is
Multi WAL will have a pluggable way of deciding the region group associated with one WAL
We will have an impl which will make sure both index region and actual region go to one group
Again core should support writing WAL data for more than one region together in one HLogEntry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants